manoj1hcl commited on
Commit
900cbb4
·
verified ·
1 Parent(s): 7574234

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +1 -1
app.py CHANGED
@@ -31,7 +31,7 @@ tools = [
31
  #define llm with temperature 0
32
  llm = ChatOpenAI(temperature=0.7, model=MODEL)
33
  # define an agent using athe tool that we have defined above
34
- agent = initialize_agent(tools, llm, agent=AgentType.ZERO_SHOT_REACT_DESCRIPTION, handle_parsing_errors=True, verbose=True)
35
 
36
  # chat bot definition with history
37
  def chatbot(user_input):
 
31
  #define llm with temperature 0
32
  llm = ChatOpenAI(temperature=0.7, model=MODEL)
33
  # define an agent using athe tool that we have defined above
34
+ agent = initialize_agent(tools, llm, agent=AgentType.OPENAI_FUNCTIONS, handle_parsing_errors=True, verbose=True)
35
 
36
  # chat bot definition with history
37
  def chatbot(user_input):