Spaces:
Running
Running
Update agent_service.py
Browse files- agent_service.py +1 -1
agent_service.py
CHANGED
|
@@ -316,7 +316,7 @@ class AgentService:
|
|
| 316 |
response = await client.chat_completion(
|
| 317 |
messages=messages,
|
| 318 |
model="Qwen/Qwen2.5-72B-Instruct", # Best for Vietnamese + tool calling
|
| 319 |
-
max_tokens=
|
| 320 |
temperature=0.7,
|
| 321 |
tools=tools,
|
| 322 |
tool_choice="auto" # Let model decide when to use tools
|
|
|
|
| 316 |
response = await client.chat_completion(
|
| 317 |
messages=messages,
|
| 318 |
model="Qwen/Qwen2.5-72B-Instruct", # Best for Vietnamese + tool calling
|
| 319 |
+
max_tokens=2048, # Increased to prevent truncation
|
| 320 |
temperature=0.7,
|
| 321 |
tools=tools,
|
| 322 |
tool_choice="auto" # Let model decide when to use tools
|