Merro1 commited on
Commit
66faf26
·
verified ·
1 Parent(s): 54972ae

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +6 -6
app.py CHANGED
@@ -189,12 +189,12 @@ class BasicAgent:
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(
 
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. Answer each question as directly and briefly as possible.
194
+ Return only the answer, with no extra text, no punctuation, and no justification.
195
+ If the answer is a list, return it as a comma-separated list with no brackets or bullets.
196
+ If the answer is a number, write it in digits with no units.
197
+ If the answer is a string, use lowercase and no articles or abbreviations.
198
  """
199
 
200
  model = InferenceClientModel(