mirror of
https://github.com/hwchase17/langchain.git
synced 2025-09-07 14:03:26 +00:00
openai: release 0.2.9, o1 streaming (#28197)
This commit is contained in:
@@ -993,9 +993,6 @@ 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 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
|
||||
|
Reference in New Issue
Block a user