Spaces:
Sleeping
Sleeping
Update app.py
Browse files
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.
|
| 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):
|