---
title: "langchain-openai 1.8.3 Breaking Changes on PyPI | Since.dev"
description: "What each langchain-openai release removed, renamed or changed: 44 breaking changes in 18 versions on PyPI, each with its source."
canonical_url: https://since.dev/packages/pypi/langchain-openai
last_updated: 2026-12-04
---

# langchain-openai breaking changes

langchain-openai 1.8.3 (November 19, 2026) is its newest release with breaking changes. The first: Removed langchain_openai.chat_models.codex.logger. Every breaking API change we have recorded in langchain-openai on PyPI: 44 breaking changes in 18 versions. Below, its 18 versions with breaking changes, newest first, removals and renames first, each with its source.

Updated December 4, 2026

Latest version `1.8.7`, released December 4, 2026. [Source repository](https://github.com/langchain-ai/langchain)

Packages on PyPI run on Python. [Python end of life dates](https://since.dev/calendar/python.md).

- From [0.3.35](#v-0-3-35) to [1.8.3](#v-1-8-3): 12 breaking changes in 7 versions.
- From [0.1.24](#v-0-1-24) to [1.8.3](#v-1-8-3): 40 breaking changes in 17 versions.

## langchain-openai 1.8.3 breaking changes

langchain-openai 1.8.3, released November 19, 2026: 1 breaking change.

- **Removed** `langchain_openai.chat_models.codex.logger`  

langchain_openai.chat_models.codex.logger was removed in langchain-openai 1.8.3 [pypi.org](https://pypi.org/project/langchain-openai/1.8.3/)

## langchain-openai 1.7.4 breaking changes

langchain-openai 1.7.4, released November 4, 2026: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.base.OpenAIRefusalError`  

Was class OpenAIRefusalError(Exception); now class OpenAIRefusalError(ModelRefusalError). [pypi.org](https://pypi.org/project/langchain-openai/1.7.4/)

## langchain-openai 1.1.9 breaking changes

langchain-openai 1.1.9, released February 10, 2026: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.get_num_tokens_from_messages`  

Was def get_num_tokens_from_messages(self, messages: Sequence\[BaseMessage\], tools: Sequence\[dict\[str, Any\] | type | Callable | BaseTool\] | None = None) -> int; now def get_num_tokens_from_messages(self, messages: Sequence\[BaseMessage\]... [pypi.org](https://pypi.org/project/langchain-openai/1.1.9/)

## langchain-openai 1.1.2 breaking changes

langchain-openai 1.1.2, released December 11, 2025: 1 breaking change.

- **Signature changed** `langchain_openai.ChatOpenAI.with_structured_output`  

Was def with_structured_output(self, schema: \_DictOrPydanticClass | None = None, \*, method: Literal\['function_calling', 'json_mode', 'json_schema'\] = 'json_schema', include_raw: bool = False, strict: bool | None = None, \*\*kwargs: Any) ->... [pypi.org](https://pypi.org/project/langchain-openai/1.1.2/)

## langchain-openai 1.0.3 breaking changes

langchain-openai 1.0.3, released November 15, 2025: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.bind_tools`  

Was def bind_tools(self, tools: Sequence\[dict\[str, Any\] | type | Callable | BaseTool\], \*, tool_choice: dict | str | bool | None = None, strict: bool | None = None, parallel_tool_calls: bool | None = None, \*\*kwargs: Any) ->... [pypi.org](https://pypi.org/project/langchain-openai/1.0.3/)

## langchain-openai 1.0.1 breaking changes

langchain-openai 1.0.1, released October 21, 2025: 3 breaking changes.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.openai_api_key`  

Was openai_api_key: SecretStr | None; now openai_api_key: SecretStr | None | Callable\[\[\], str\] | Callable\[\[\], Awaitable\[str\]\]. [pypi.org](https://pypi.org/project/langchain-openai/1.0.1/)
- **Signature changed** `langchain_openai.llms.azure.BaseOpenAI.openai_api_key`  

Was openai_api_key: SecretStr | None; now openai_api_key: SecretStr | None | Callable\[\[\], str\]. [pypi.org](https://pypi.org/project/langchain-openai/1.0.1/)
- **Signature changed** `langchain_openai.OpenAIEmbeddings.openai_api_key`  

Was openai_api_key: SecretStr | None; now openai_api_key: SecretStr | None | Callable\[\[\], str\] | Callable\[\[\], Awaitable\[str\]\]. [pypi.org](https://pypi.org/project/langchain-openai/1.0.1/)

## Older versions

12 older versions, each with its first changes. [Sign up to see every change](https://app.since.dev/login?mode=signup&src=package-page)

### langchain-openai 1.0.0 breaking changes

langchain-openai 1.0.0, released October 17, 2025: 4 breaking changes.

- **Removed** `langchain_openai.chat_models.azure.BaseChatOpenAI.bind_functions`  

BaseChatOpenAI.bind_functions was removed in langchain-openai 1.0.0 [pypi.org](https://pypi.org/project/langchain-openai/1.0.0/)
- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.bind_tools`  

Was def bind_tools(self, tools: Sequence\[Union\[dict\[str, Any\], type, Callable, BaseTool\]\], \*, tool_choice: Optional\[Union\[dict, str, Literal\['auto', 'none', 'required', 'any'\], bool\]\] = None, strict: Optional\[bool\] = None... [pypi.org](https://pypi.org/project/langchain-openai/1.0.0/)

And 2 more in this version.

### langchain-openai 0.3.35 breaking changes

langchain-openai 0.3.35, released October 6, 2025: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.stream_usage`  

Was stream_usage: bool; now stream_usage: Optional\[bool\]. [pypi.org](https://pypi.org/project/langchain-openai/0.3.35/)

### langchain-openai 0.3.17 breaking changes

langchain-openai 0.3.17, released May 15, 2025: 4 breaking changes.

- **Signature changed** `langchain_openai.OpenAIEmbeddings.aembed_documents`  

Was async def aembed_documents(self, texts: list\[str\], chunk_size: int | None = None) -> list\[list\[float\]\]; now async def aembed_documents(self, texts: list\[str\], chunk_size: Optional\[int\] = None, \*\*kwargs: Any) -> list\[list\[float\]\]. [pypi.org](https://pypi.org/project/langchain-openai/0.3.17/)
- **Signature changed** `langchain_openai.OpenAIEmbeddings.aembed_query`  

Was async def aembed_query(self, text: str) -> list\[float\]; now async def aembed_query(self, text: str, \*\*kwargs: Any) -> list\[float\]. [pypi.org](https://pypi.org/project/langchain-openai/0.3.17/)

And 2 more in this version.

### langchain-openai 0.3.13 breaking changes

langchain-openai 0.3.13, released April 15, 2025: 1 breaking change.

- **Signature changed** `langchain_openai.llms.azure.BaseOpenAI.allowed_special`  

Was allowed_special: Union\[Literal\['all'\], AbstractSet\[str\]\]; now allowed_special: Union\[Literal\['all'\], set\[str\]\]. [pypi.org](https://pypi.org/project/langchain-openai/0.3.13/)

### langchain-openai 0.3.12 breaking changes

langchain-openai 0.3.12, released April 2, 2025: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.with_structured_output`  

Was def with_structured_output(self, schema: Optional\[\_DictOrPydanticClass\] = None, \*, method: Literal\['function_calling', 'json_mode', 'json_schema'\] = 'function_calling', include_raw: bool = False, strict: Optional\[bool\] = None... [pypi.org](https://pypi.org/project/langchain-openai/0.3.12/)

### langchain-openai 0.3.6 breaking changes

langchain-openai 0.3.6, released February 15, 2025: 1 breaking change.

- **Removed** `langchain_openai.chat_models.azure.BaseChatOpenAI.validate_disable_streaming`  

BaseChatOpenAI.validate_disable_streaming was removed in langchain-openai 0.3.6 [pypi.org](https://pypi.org/project/langchain-openai/0.3.6/)

### langchain-openai 0.3.5 breaking changes

langchain-openai 0.3.5, released February 11, 2025: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.bind_tools`  

Was def bind_tools(self, tools: Sequence\[Union\[Dict\[str, Any\], Type, Callable, BaseTool\]\], \*, tool_choice: Optional\[Union\[dict, str, Literal\['auto', 'none', 'required', 'any'\], bool\]\] = None, strict: Optional\[bool\] = None, \*\*kwargs: Any)... [pypi.org](https://pypi.org/project/langchain-openai/0.3.5/)

### langchain-openai 0.3.0 breaking changes

langchain-openai 0.3.0, released January 10, 2025: 5 breaking changes.

- **Signature changed** `langchain_openai.AzureChatOpenAI.with_structured_output`  

Was def with_structured_output(self, schema: Optional\[\_DictOrPydanticClass\] = None, \*, method: Literal\['function_calling', 'json_mode', 'json_schema'\] = 'function_calling', include_raw: bool = False, strict: Optional\[bool\] = None... [pypi.org](https://pypi.org/project/langchain-openai/0.3.0/)
- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.max_retries`  

Was max_retries: int; now max_retries: Optional\[int\]. [pypi.org](https://pypi.org/project/langchain-openai/0.3.0/)

And 3 more in this version.

### langchain-openai 0.2.8 breaking changes

langchain-openai 0.2.8, released November 12, 2024: 1 breaking change.

- **Signature changed** `langchain_openai.chat_models.azure.BaseChatOpenAI.get_num_tokens_from_messages`  

Was def get_num_tokens_from_messages(self, messages: List\[BaseMessage\]) -> int; now def get_num_tokens_from_messages(self, messages: List\[BaseMessage\], tools: Optional\[Sequence\[Union\[Dict\[str, Any\], Type, Callable, BaseTool\]\]\] = None) ->... [pypi.org](https://pypi.org/project/langchain-openai/0.2.8/)

### langchain-openai 0.2.1 breaking changes

langchain-openai 0.2.1, released September 26, 2024: 4 breaking changes.

- **Signature changed** `langchain_openai.AzureChatOpenAI.bind_tools`  

Was def bind_tools(self, tools: Sequence\[Union\[Dict\[str, Any\], Type, Callable, BaseTool\]\], \*, tool_choice: Optional\[Union\[dict, str, Literal\['auto', 'none', 'required', 'any'\], bool\]\] = None, \*\*kwargs: Any) -> Runnable\[LanguageModelInput... [pypi.org](https://pypi.org/project/langchain-openai/0.2.1/)
- **Signature changed** `langchain_openai.AzureChatOpenAI.with_structured_output`  

Was def with_structured_output(self, schema: Optional\[\_DictOrPydanticClass\] = None, \*, method: Literal\['function_calling', 'json_mode'\] = 'function_calling', include_raw: bool = False, \*\*kwargs: Any) -> Runnable\[LanguageModelInput... [pypi.org](https://pypi.org/project/langchain-openai/0.2.1/)

And 2 more in this version.

### langchain-openai 0.2.0 breaking changes

langchain-openai 0.2.0, released September 13, 2024: 9 breaking changes.

- **Removed** `langchain_openai.chat_models.azure.BaseChatOpenAI.Config`  

langchain_openai.chat_models.azure.BaseChatOpenAI.Config was removed in langchain-openai 0.2.0 [pypi.org](https://pypi.org/project/langchain-openai/0.2.0/)
- **Removed** `langchain_openai.llms.azure.BaseOpenAI.Config`  

langchain_openai.llms.azure.BaseOpenAI.Config was removed in langchain-openai 0.2.0 [pypi.org](https://pypi.org/project/langchain-openai/0.2.0/)

And 7 more in this version.

### langchain-openai 0.1.24 breaking changes

langchain-openai 0.1.24, released September 13, 2024: 4 breaking changes.

- **Signature changed** `langchain_openai.AzureChatOpenAI.openai_api_type`  

Was openai_api_type: str; now openai_api_type: Optional\[str\]. [pypi.org](https://pypi.org/project/langchain-openai/0.1.24/)
- **Signature changed** `langchain_openai.AzureChatOpenAI.openai_api_version`  

Was openai_api_version: str; now openai_api_version: Optional\[str\]. [pypi.org](https://pypi.org/project/langchain-openai/0.1.24/)

And 2 more in this version.

## Read the guide

- [What model does ChatOpenAI use by default?](https://since.dev/guides/chatopenai-default-model.md)

## Related packages

- [langchain-core](https://since.dev/packages/pypi/langchain-core.md)
- [langchain-chroma](https://since.dev/packages/pypi/langchain-chroma.md)
- [langchain-text-splitters](https://since.dev/packages/pypi/langchain-text-splitters.md)
- [langchain-mistralai](https://since.dev/packages/pypi/langchain-mistralai.md)
- [langchain-groq](https://since.dev/packages/pypi/langchain-groq.md)
- [langchain](https://since.dev/packages/pypi/langchain.md)

## Check your code

These are the changes. To see which of them reach your code, [scan a public repository](https://since.dev/scan.md), or have your coding agent call `check_code` with your manifest or lockfile over [MCP](https://since.dev/docs.md#mcp). [The API](https://since.dev/docs.md#api) reads every change in every version. A fix pull request opens for the changes that reach a connected repository. Nothing merges or deploys.

## Put your code on continuous maintenance.

Scan a public repository now, or give your agent one line.

[Scan a repository](https://since.dev/scan.md). Any public GitHub repository. No sign-in.

### Tell your agent what changed since it was trained.

`claude mcp add --transport http since https://api.since.dev/mcp`

[Get an API key](https://app.since.dev/login?mode=signup)

Codex, Cursor and any MCP client use https://api.since.dev/mcp.

---

Every page on this site as Markdown: https://since.dev/sitemap.md. For agents: https://since.dev/llms.txt.
