Skip to content

Commit

Permalink
openai[patch]: fix azure oai stream check (#28048)
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Nov 12, 2024
1 parent 9611f0b commit 139881b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libs/partners/openai/langchain_openai/chat_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -977,7 +977,7 @@ def _should_stream(
# 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

Expand Down

0 comments on commit 139881b

Please sign in to comment.