Spaces:
Sleeping
Sleeping
Update app.py
Browse files
app.py
CHANGED
|
@@ -189,20 +189,13 @@ class BasicAgent:
|
|
| 189 |
def __init__(self):
|
| 190 |
print("BasicAgent initialized.")
|
| 191 |
token=os.environ["OPENROUTER_API_KEY"]
|
| 192 |
-
self.system_prompt= """
|
| 193 |
-
|
| 194 |
-
|
| 195 |
-
|
| 196 |
-
|
| 197 |
-
|
| 198 |
-
|
| 199 |
-
|
| 200 |
-
Always make sure to answer to only what was asked.
|
| 201 |
-
|
| 202 |
-
You should always return your answer as :
|
| 203 |
-
"your answer here"
|
| 204 |
-
|
| 205 |
-
"""
|
| 206 |
|
| 207 |
model = InferenceClientModel(
|
| 208 |
model_id="deepseek/deepseek-r1:free", # Correct OpenRouter model ID
|
|
|
|
| 189 |
def __init__(self):
|
| 190 |
print("BasicAgent initialized.")
|
| 191 |
token=os.environ["OPENROUTER_API_KEY"]
|
| 192 |
+
self.system_prompt= """
|
| 193 |
+
You are a helpful assistant tasked with answering questions using a set of tools.
|
| 194 |
+
Now, I will ask you a question. Report your thoughts, and finish your answer with the following template:
|
| 195 |
+
FINAL ANSWER: [YOUR FINAL ANSWER].
|
| 196 |
+
YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma separated list of numbers and/or strings. If you are asked for a number, don't use comma to write your number neither use units such as $ or percent sign unless specified otherwise. If you are asked for a string, don't use articles, neither abbreviations (e.g. for cities), and write the digits in plain text unless specified otherwise. If you are asked for a comma separated list, apply the above rules depending of whether the element to be put in the list is a number or a string.
|
| 197 |
+
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
| 198 |
+
"""
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
| 199 |
|
| 200 |
model = InferenceClientModel(
|
| 201 |
model_id="deepseek/deepseek-r1:free", # Correct OpenRouter model ID
|