bstraehle commited on
Commit
1de188f
·
1 Parent(s): b1bfa22

Update agent.py

Browse files
Files changed (1) hide show
  1. agent.py +1 -2
agent.py CHANGED
@@ -13,10 +13,9 @@ def date_tool(text: str) -> str:
13
  Any date mathematics should occur outside this function."""
14
  return str(date.today())
15
 
16
- def invoke_agent(model, temperature, openai_api_key, prompt):
17
  llm = ChatOpenAI(
18
  model_name = model,
19
- openai_api_key = openai_api_key,
20
  temperature = temperature)
21
 
22
  tools = load_tools(["openweathermap-api"])
 
13
  Any date mathematics should occur outside this function."""
14
  return str(date.today())
15
 
16
+ def invoke_agent(model, temperature, prompt):
17
  llm = ChatOpenAI(
18
  model_name = model,
 
19
  temperature = temperature)
20
 
21
  tools = load_tools(["openweathermap-api"])