mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 12:59:07 +00:00
openai[patch]: fix azure oai stream check (#28048)
This commit is contained in:
@@ -977,7 +977,7 @@ class BaseChatOpenAI(BaseChatModel):
|
|||||||
# TODO: Add support for streaming with Pydantic response_format.
|
# TODO: Add support for streaming with Pydantic response_format.
|
||||||
warnings.warn("Streaming with Pydantic response_format not yet supported.")
|
warnings.warn("Streaming with Pydantic response_format not yet supported.")
|
||||||
return False
|
return False
|
||||||
if self.model_name.startswith("o1"):
|
if self.model_name is not None and self.model_name.startswith("o1"):
|
||||||
# TODO: Add support for streaming with o1 once supported.
|
# TODO: Add support for streaming with o1 once supported.
|
||||||
return False
|
return False
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user