Skier8402 commited on
Commit
32e2079
·
verified ·
1 Parent(s): 42fb4ab

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +2 -2
app.py CHANGED
@@ -56,7 +56,7 @@ else:
56
  verbose=True,
57
  allow_delegation=False,
58
  tools=[search_tool],
59
- # llm=ChatOpenAI(model_name=selected_model, api_key=selected_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,7 +75,7 @@ else:
75
  verbose=True,
76
  allow_delegation=True,
77
  tools=[search_tool],
78
- # llm=ChatOpenAI(model_name=selected_model, api_key=selected_key),
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