Update app.py
Browse files
app.py
CHANGED
|
@@ -38,7 +38,7 @@ class BasicAgent:
|
|
| 38 |
if not api_key:
|
| 39 |
raise ValueError("OPENAI_API_KEY not set in environment variables!")
|
| 40 |
model = LiteLLMModel(
|
| 41 |
-
model_id="gpt-4.1-
|
| 42 |
api_key=api_key
|
| 43 |
)
|
| 44 |
|
|
@@ -71,9 +71,9 @@ class BasicAgent:
|
|
| 71 |
You are now taking a rigorous exam testing your ability to solve real-world problems.
|
| 72 |
You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.
|
| 73 |
You have two tools:
|
| 74 |
-
1.
|
| 75 |
-
2.
|
| 76 |
-
Use wikipedia_search first. Only if that fails, use
|
| 77 |
If your first search yields no result, always attempt the other tool before giving up.
|
| 78 |
When you are ready to submit your answer, ONLY output your final answer in the exact format required by the question. DO NOT add any extra context.
|
| 79 |
If you cannot answer,return the word 'unknown'.
|
|
|
|
| 38 |
if not api_key:
|
| 39 |
raise ValueError("OPENAI_API_KEY not set in environment variables!")
|
| 40 |
model = LiteLLMModel(
|
| 41 |
+
model_id="gpt-4.1-mini",
|
| 42 |
api_key=api_key
|
| 43 |
)
|
| 44 |
|
|
|
|
| 71 |
You are now taking a rigorous exam testing your ability to solve real-world problems.
|
| 72 |
You may freely think, reason, and use tools or your own knowledge as needed to solve the problem.
|
| 73 |
You have two tools:
|
| 74 |
+
1. WikipediaSearchTool()— for factual queries from English Wikipedia.
|
| 75 |
+
2. DuckDuckGoSearchTool() — for general web searches when Wikipedia isn't enough.
|
| 76 |
+
Use wikipedia_search first. Only if that fails, use duckduckgosearch.
|
| 77 |
If your first search yields no result, always attempt the other tool before giving up.
|
| 78 |
When you are ready to submit your answer, ONLY output your final answer in the exact format required by the question. DO NOT add any extra context.
|
| 79 |
If you cannot answer,return the word 'unknown'.
|