Spaces:
Running
Running
Update app.py
Browse files
app.py
CHANGED
@@ -56,7 +56,7 @@ else:
|
|
56 |
verbose=True,
|
57 |
allow_delegation=False,
|
58 |
tools=[search_tool],
|
59 |
-
|
60 |
# You can pass an optional llm attribute specifying what mode you wanna use.
|
61 |
# It can be a local model through Ollama / LM Studio or a remote
|
62 |
# model like OpenAI, Mistral, Antrophic of others (https://python.langchain.com/docs/integrations/llms/)
|
@@ -75,7 +75,7 @@ else:
|
|
75 |
verbose=True,
|
76 |
allow_delegation=True,
|
77 |
tools=[search_tool],
|
78 |
-
|
79 |
# (optional) llm=ollama_llm
|
80 |
)
|
81 |
|
|
|
56 |
verbose=True,
|
57 |
allow_delegation=False,
|
58 |
tools=[search_tool],
|
59 |
+
llm=ChatOpenAI(model_name="gpt-4-1106-preview", api_key=OPENAI_API_KEY),
|
60 |
# You can pass an optional llm attribute specifying what mode you wanna use.
|
61 |
# It can be a local model through Ollama / LM Studio or a remote
|
62 |
# model like OpenAI, Mistral, Antrophic of others (https://python.langchain.com/docs/integrations/llms/)
|
|
|
75 |
verbose=True,
|
76 |
allow_delegation=True,
|
77 |
tools=[search_tool],
|
78 |
+
llm=ChatOpenAI(model_name="gpt-4-1106-preview", api_key=OPENAI_API_KEY),
|
79 |
# (optional) llm=ollama_llm
|
80 |
)
|
81 |
|