Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -138,7 +138,7 @@ class BasicAgent:
|
|
| 138 |
|
| 139 |
# Groq model
|
| 140 |
self.model = RetryOpenAIModel(
|
| 141 |
-
model_id="openai/gpt-oss-
|
| 142 |
api_base="https://api.groq.com/openai/v1",
|
| 143 |
api_key=os.environ["GROQ_API_KEY"],
|
| 144 |
client_kwargs={
|
|
@@ -222,6 +222,17 @@ class BasicAgent:
|
|
| 222 |
- If the question requires a specific format, follow it exactly.
|
| 223 |
- Do not include markdown formatting unless requested.
|
| 224 |
- Do not call additional tools after obtaining sufficient evidence.
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 225 |
"""
|
| 226 |
)
|
| 227 |
|
|
|
|
| 138 |
|
| 139 |
# Groq model
|
| 140 |
self.model = RetryOpenAIModel(
|
| 141 |
+
model_id="openai/gpt-oss-120b",
|
| 142 |
api_base="https://api.groq.com/openai/v1",
|
| 143 |
api_key=os.environ["GROQ_API_KEY"],
|
| 144 |
client_kwargs={
|
|
|
|
| 222 |
- If the question requires a specific format, follow it exactly.
|
| 223 |
- Do not include markdown formatting unless requested.
|
| 224 |
- Do not call additional tools after obtaining sufficient evidence.
|
| 225 |
+
|
| 226 |
+
PYTHON TOOL RULES:
|
| 227 |
+
- The python_interpreter tool requires exactly one argument named "code".
|
| 228 |
+
- The "code" argument must contain Python source code as a JSON string.
|
| 229 |
+
- Never put raw Python code directly inside "arguments".
|
| 230 |
+
- All tool calls must contain valid JSON arguments.
|
| 231 |
+
- Call final_answer directly when finished.
|
| 232 |
+
|
| 233 |
+
Example:
|
| 234 |
+
{"name": "python_interpreter",
|
| 235 |
+
"arguments": {"code": "print(sum([10, 20, 30]))"}}
|
| 236 |
"""
|
| 237 |
)
|
| 238 |
|