diff --git a/model/provider/openai_official.py b/model/provider/openai_official.py index e5c5248a7..af528080b 100644 --- a/model/provider/openai_official.py +++ b/model/provider/openai_official.py @@ -336,12 +336,14 @@ class ProviderOpenAIOfficial(Provider): if tools: completion_coro = self.client.chat.completions.create( messages=contexts, + stream=False, tools=tools, **conf ) else: completion_coro = self.client.chat.completions.create( messages=contexts, + stream=False, **conf ) try: