from langchain_openai import OpenAIEmbeddings embeddings=OpenAIEmbeddings(model="text-embedding-3-large", dimensions=256)

### Checked other resources

- [x] This is a bug, not a usage question.
- [x] I added a clear and descriptive title that summarizes this issue.
- [x] I used the GitHub search to find a similar question and didn't find it.
- [x] I am sure that this is a bug in LangChain rather than my code.
- [x] The bug is not resolved by updating to the latest stable version of LangChain (or the specific integration package).
- [x] This is not related to the langchain-community package.
- [x] I read what a minimal reproducible example is (https://stackoverflow.com/help/minimal-reproducible-example).
- [x] I posted a self-contained, minimal, reproducible example. A maintainer can copy it and run it AS IS.

### Example Code

from langchain_openai import OpenAIEmbeddings
embeddings=OpenAIEmbeddings(model="text-embedding-3-large", dimensions=256)

### Error Message and Stack Trace (if applicable)

---------------------------------------------------------------------------
ImportError                               Traceback (most recent call last)
Cell In[36], [line 1](vscode-notebook-cell:?execution_count=36&line=1)
----> [1](vscode-notebook-cell:?execution_count=36&line=1) from langchain_openai import OpenAIEmbeddings
      [2](vscode-notebook-cell:?execution_count=36&line=2) embeddings=OpenAIEmbeddings(model="text-embedding-3-large", dimensions=256)

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/__init__.py:3
      [1](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/__init__.py:1) """Module for OpenAI integrations."""
----> [3](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/__init__.py:3) from langchain_openai.chat_models import AzureChatOpenAI, ChatOpenAI
      [4](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/__init__.py:4) from langchain_openai.embeddings import AzureOpenAIEmbeddings, OpenAIEmbeddings
      [5](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/__init__.py:5) from langchain_openai.llms import AzureOpenAI, OpenAI

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/__init__.py:3
      [1](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/__init__.py:1) """Module for OpenAI chat models."""
----> [3](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/__init__.py:3) from langchain_openai.chat_models.azure import AzureChatOpenAI
      [4](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/__init__.py:4) from langchain_openai.chat_models.base import ChatOpenAI
      [6](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/__init__.py:6) __all__ = ["AzureChatOpenAI", "ChatOpenAI"]

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py:12
     [10](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py:10) import openai
     [11](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py:11) from langchain_core.language_models import LanguageModelInput
---> [12](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py:12) from langchain_core.language_models.chat_models import LangSmithParams
     [13](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py:13) from langchain_core.outputs import ChatGenerationChunk, ChatResult
     [14](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_openai/chat_models/azure.py:14) from langchain_core.runnables import Runnable

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:47
     [37](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:37) from langchain_core.messages import (
     [38](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:38)     AIMessage,
     [39](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:39)     AIMessageChunk,
   (...)
     [44](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:44)     message_chunk_to_message,
     [45](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:45) )
     [46](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:46) from langchain_core.messages import content as types
---> [47](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:47) from langchain_core.messages.block_translators.openai import (
     [48](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:48)     convert_to_openai_image_block,
     [49](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:49) )
     [50](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:50) from langchain_core.output_parsers.openai_tools import (
     [51](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:51)     JsonOutputKeyToolsParser,
     [52](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:52)     PydanticToolsParser,
     [53](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:53) )
     [54](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:54) from langchain_core.outputs import (
     [55](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:55)     ChatGeneration,
     [56](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:56)     ChatGenerationChunk,
   (...)
     [60](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:60)     RunInfo,
     [61](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/language_models/chat_models.py:61) )

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:111
    [107](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:107)     _register_groq_translator()
    [108](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:108)     _register_openai_translator()
--> [111](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:111) _register_translators()

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:95, in _register_translators()
     [89](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:89) from langchain_core.messages.block_translators.google_genai import (  # noqa: PLC0415
     [90](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:90)     _register_google_genai_translator,
     [91](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:91) )
     [92](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:92) from langchain_core.messages.block_translators.google_vertexai import (  # noqa: PLC0415
     [93](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:93)     _register_google_vertexai_translator,
     [94](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:94) )
---> [95](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:95) from langchain_core.messages.block_translators.groq import (  # noqa: PLC0415
     [96](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:96)     _register_groq_translator,
     [97](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:97) )
     [98](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:98) from langchain_core.messages.block_translators.openai import (  # noqa: PLC0415
     [99](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:99)     _register_openai_translator,
    [100](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:100) )
    [102](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/__init__.py:102) _register_bedrock_translator()

File ~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:9
      [7](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:7) from langchain_core.messages import AIMessage, AIMessageChunk
      [8](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:8) from langchain_core.messages import content as types
----> [9](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:9) from langchain_core.messages.base import _extract_reasoning_from_additional_kwargs
     [12](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:12) def _populate_extras(
     [13](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:13)     standard_block: types.ContentBlock, block: dict[str, Any], known_fields: set[str]
     [14](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:14) ) -> types.ContentBlock:
     [15](https://file+.vscode-resource.vscode-cdn.net/Users/amarjitkumar/Inter/Self/efficient-rag/~/miniconda3/envs/rag-benchmarking/lib/python3.10/site-packages/langchain_core/messages/block_translators/groq.py:15)     """Mutate a block, populating extras."""

ImportError: cannot import name '_extract_reasoning_from_additional_kwargs' from 'langchain_core.messages.base'

### Description

Bug

### System Info

langchain-core==1.0.0
langchain-openai==1.0.0

Labels: bug
State: closed