wrigleyDan commited on
Commit
deb35ad
·
verified ·
1 Parent(s): 2e1f1ed

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +4 -2
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: