johann22 commited on
Commit
0b976d6
·
1 Parent(s): ba90625

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +4 -2
app.py CHANGED
@@ -205,8 +205,10 @@ def run_action(purpose, task, history, directory, action_name, action_input):
205
  print(f'action_name::{action_name}')
206
  try:
207
  if "RESPONSE" in action_name or "COMPLETE" in action_name:
208
- action_name="COMPLETE"
209
- task="END"
 
 
210
  return action_name, "COMPLETE", history, task
211
 
212
  # compress the history when it is long
 
205
  print(f'action_name::{action_name}')
206
  try:
207
  if "RESPONSE" in action_name or "COMPLETE" in action_name:
208
+
209
+ action_name, action_input, history, task = end_fn(purpose, task, history, directory, action_input)
210
+ #action_name="COMPLETE"
211
+ #task="END"
212
  return action_name, "COMPLETE", history, task
213
 
214
  # compress the history when it is long