Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -902,7 +902,7 @@ REMEMBER: One tool per turn. No reasoning without tools. Exact answer format.
|
|
| 902 |
# huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
|
| 903 |
# max_new_tokens=2048, # Increased token limit for potentially longer reasoning/tool use
|
| 904 |
# temperature=0.01, # Keep temperature low for factual tasks
|
| 905 |
-
|
| 906 |
self.llm_with_tools = ChatGroq(
|
| 907 |
temperature=0,
|
| 908 |
groq_api_key=GROQ_API_KEY,
|
|
|
|
| 902 |
# huggingfacehub_api_token=HUGGINGFACEHUB_API_TOKEN,
|
| 903 |
# max_new_tokens=2048, # Increased token limit for potentially longer reasoning/tool use
|
| 904 |
# temperature=0.01, # Keep temperature low for factual tasks
|
| 905 |
+
#Use tool_choice="any" to FORCE tool usage
|
| 906 |
self.llm_with_tools = ChatGroq(
|
| 907 |
temperature=0,
|
| 908 |
groq_api_key=GROQ_API_KEY,
|