Skip to content

Commit

Permalink
openai: release 0.2.9, o1 streaming (#28197)
Browse files Browse the repository at this point in the history
  • Loading branch information
efriis authored Nov 18, 2024
1 parent cbeb860 commit d9d6895
Show file tree
Hide file tree
Showing 3 changed files with 73 additions and 76 deletions.
3 changes: 0 additions & 3 deletions libs/partners/openai/langchain_openai/chat_models/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -993,9 +993,6 @@ 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 is not None and self.model_name.startswith("o1"):
# TODO: Add support for streaming with o1 once supported.
return False

return super()._should_stream(
async_api=async_api, run_manager=run_manager, **kwargs
Expand Down
Loading

0 comments on commit d9d6895

Please sign in to comment.