Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -636,7 +636,12 @@ Your goal: Provide the EXACT answer in the EXACT format requested.
|
|
| 636 |
model_name="openai/gpt-oss-120b",
|
| 637 |
max_tokens=4096,
|
| 638 |
timeout=60
|
| 639 |
-
).bind_tools(
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 640 |
print("β
Main LLM (llama-3.3-70b-versatile with tools) initialized.")
|
| 641 |
|
| 642 |
except Exception as e:
|
|
|
|
| 636 |
model_name="openai/gpt-oss-120b",
|
| 637 |
max_tokens=4096,
|
| 638 |
timeout=60
|
| 639 |
+
).bind_tools(
|
| 640 |
+
self.tools,
|
| 641 |
+
# This setting forces the model to call one of the bound tools.
|
| 642 |
+
# 'auto' is the default, but 'any' is stricter for an agent.
|
| 643 |
+
tool_choice="any"
|
| 644 |
+
)
|
| 645 |
print("β
Main LLM (llama-3.3-70b-versatile with tools) initialized.")
|
| 646 |
|
| 647 |
except Exception as e:
|