Spaces:
Running
Running
Update agent_llamaindex.py
Browse files- 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,
|
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)
|