mirror of
https://github.com/hwchase17/langchain
synced 2024-11-13 19:10:52 +00:00
openai[patch]: fix azure oai stream check (#28048)
This commit is contained in:
parent
9611f0b55d
commit
139881b108
@ -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
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user