fix: o1-series model encounters an error when the generate mode is blocking (#8363)

pull/8372/head
takatost 2 years ago committed by GitHub
parent 6613b8f2e0
commit 24af4b9313
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

@ -615,8 +615,10 @@ class OpenAILargeLanguageModel(_CommonOpenAI, LargeLanguageModel):
block_as_stream = False
if model.startswith("o1"):
if stream:
block_as_stream = True
stream = False
if "stream_options" in extra_model_kwargs:
del extra_model_kwargs["stream_options"]

Loading…
Cancel
Save