mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-12 00:11:17 +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.
|
||||
warnings.warn("Streaming with Pydantic response_format not yet supported.")
|
||||
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.
|
||||
return False
|
||||
|
||||
|
Reference in New Issue
Block a user