Update agent.py
Browse files
agent.py
CHANGED
@@ -27,9 +27,11 @@ YOUR FINAL ANSWER should be a number OR as few words as possible OR a comma sepa
|
|
27 |
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
28 |
"""
|
29 |
|
30 |
-
api_key = os.getenv("OPENAI_API_KEY")
|
|
|
31 |
|
32 |
-
model = ChatOpenAI(model="gpt-4o-mini", api_key=api_key, temperature=0)
|
|
|
33 |
|
34 |
@tool
|
35 |
def search_wiki(query: str, max_results: int = 2) -> str:
|
|
|
27 |
Your answer should only start with "FINAL ANSWER: ", then follows with the answer.
|
28 |
"""
|
29 |
|
30 |
+
#api_key = os.getenv("OPENAI_API_KEY")
|
31 |
+
api_key = os.getenv("GEMINI_API_KEY")
|
32 |
|
33 |
+
#model = ChatOpenAI(model="gpt-4o-mini", api_key=api_key, temperature=0)
|
34 |
+
model = ChatGoogleGenerativeAI(model="gemini-2.5-flash", temperature=0, api_key=api_key)
|
35 |
|
36 |
@tool
|
37 |
def search_wiki(query: str, max_results: int = 2) -> str:
|