bstraehle commited on
Commit
f439d6e
·
1 Parent(s): ee95499

Update agent_llamaindex.py

Browse files
Files changed (1) hide show
  1. agent_llamaindex.py +1 -1
agent_llamaindex.py CHANGED
@@ -17,7 +17,7 @@ def agent_llamaindex(model, temperature, prompt):
17
  model = model,
18
  temperature = temperature)
19
 
20
- tool_spec = OpenWeatherMapToolSpec()
21
  tools = tool_spec.to_tool_list()
22
 
23
  dt_tool = FunctionTool.from_defaults(fn = date_tool)
 
17
  model = model,
18
  temperature = temperature)
19
 
20
+ tool_spec = OpenWeatherMapToolSpec(key = os.environ["OPENWEATHERMAP_API_KEY"])
21
  tools = tool_spec.to_tool_list()
22
 
23
  dt_tool = FunctionTool.from_defaults(fn = date_tool)