bstraehle commited on
Commit
f13a9ee
·
1 Parent(s): d2062a1

Update agent_llamaindex.py

Browse files
Files changed (1) hide show
  1. agent_llamaindex.py +1 -3
agent_llamaindex.py CHANGED
@@ -12,9 +12,7 @@ def date_tool(text: str) -> str:
12
  Any date mathematics should occur outside this function."""
13
  return str(date.today())
14
 
15
- def agent_llamaindex(model, temperature, openai_api_key, prompt):
16
- os.environ["OPENAI_API_KEY"] = openai_api_key
17
-
18
  llm = OpenAI(
19
  model = model,
20
  temperature = temperature)
 
12
  Any date mathematics should occur outside this function."""
13
  return str(date.today())
14
 
15
+ def agent_llamaindex(model, temperature, prompt):
 
 
16
  llm = OpenAI(
17
  model = model,
18
  temperature = temperature)