fix bug of stream for ask_tool

This commit is contained in:
liangxinbing
2025-03-30 23:05:17 +08:00
parent 5e479d7777
commit ae83bc7370
+2 -1
View File
@@ -735,8 +735,9 @@ class LLM:
temperature if temperature is not None else self.temperature
)
params["stream"] = False # Always use non-streaming for tool requests
response: ChatCompletion = await self.client.chat.completions.create(
**params, stream=False
**params
)
# Check if response is valid