Update main.py
Browse files
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=
|
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("/")
|