diff --git a/libs/partners/openai/langchain_openai/chat_models/base.py b/libs/partners/openai/langchain_openai/chat_models/base.py index 2927427951..bfa293b446 100644 --- a/libs/partners/openai/langchain_openai/chat_models/base.py +++ b/libs/partners/openai/langchain_openai/chat_models/base.py @@ -909,7 +909,8 @@ class BaseChatOpenAI(BaseChatModel): kwargs["tool_choice"] = tool_choice return super().bind(tools=formatted_tools, **kwargs) - @overload + # TODO: Fix typing. + @overload # type: ignore[override] def with_structured_output( self, schema: Optional[_DictOrPydanticClass] = None,