fix: turn off openai api streaming mode

This commit is contained in:
Soulter
2024-09-23 10:49:57 -04:00
parent 353b6ed761
commit 37a756aeb3
+2
View File
@@ -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: