ka1kuk commited on
Commit
ca34ca1
1 Parent(s): c70f382

Update main.py

Browse files
Files changed (1) hide show
  1. main.py +1 -4
main.py CHANGED
@@ -32,11 +32,8 @@ tools = [
32
  ),
33
  ]
34
 
35
- memory = ConversationBufferMemory(memory_key="chat_history", return_messages=True)
36
-
37
  llm = G4F(model=model)
38
- agent_chain = initialize_agent(tools, llm, agent="chat-conversational-react-description",
39
- verbose=True, memory=memory)
40
 
41
 
42
  @app.get("/")
 
32
  ),
33
  ]
34
 
 
 
35
  llm = G4F(model=model)
36
+ agent_chain = initialize_agent(tools, llm, agent=AgentType.OPENAI_FUNCTIONS, verbose=True)
 
37
 
38
 
39
  @app.get("/")