Spaces:
Runtime error
Runtime error
Commit
·
d219a35
1
Parent(s):
d4efa5b
add back memory
Browse files
app.py
CHANGED
@@ -809,7 +809,7 @@ Thought: I now know the final answer
|
|
809 |
Final Answer: the final answer to the original input question"""
|
810 |
|
811 |
FORMAT_INSTRUCTIONS_3 = """Each time to use a tool, you must define 'Action' and 'Action Input'.
|
812 |
-
please use the following format:
|
813 |
'''
|
814 |
Thought: you should always think about what to do
|
815 |
Action: the action to take, should be one of [{tool_names}]
|
@@ -904,8 +904,8 @@ agent_ZEROSHOT_REACT_2 = initialize_agent(tools_remote, GPTfake,
|
|
904 |
agent_kwargs={
|
905 |
'prefix': PREFIX_2,
|
906 |
'format_instructions': FORMAT_INSTRUCTIONS_3,
|
907 |
-
'suffix':
|
908 |
-
|
909 |
},
|
910 |
# input_variables = input_variables,
|
911 |
# agent_kwargs={
|
|
|
809 |
Final Answer: the final answer to the original input question"""
|
810 |
|
811 |
FORMAT_INSTRUCTIONS_3 = """Each time to use a tool, you must define 'Action' and 'Action Input'.
|
812 |
+
When you will use tools, please use the following format:
|
813 |
'''
|
814 |
Thought: you should always think about what to do
|
815 |
Action: the action to take, should be one of [{tool_names}]
|
|
|
904 |
agent_kwargs={
|
905 |
'prefix': PREFIX_2,
|
906 |
'format_instructions': FORMAT_INSTRUCTIONS_3,
|
907 |
+
'suffix': SUFFIX2,
|
908 |
+
'input_variables': input_variables,
|
909 |
},
|
910 |
# input_variables = input_variables,
|
911 |
# agent_kwargs={
|