johann22 commited on
Commit
e0a0ec8
1 Parent(s): 29fca04

Update app.py

Browse files
Files changed (1) hide show
  1. app.py +3 -3
app.py CHANGED
@@ -90,7 +90,7 @@ def compress_history(purpose, task, history, directory):
90
  resp = run_gpt(
91
  COMPRESS_HISTORY_PROMPT,
92
  stop_tokens=["observation:", "task:", "action:", "thought:"],
93
- max_tokens=2048,
94
  purpose=purpose,
95
  task=task,
96
  history=history,
@@ -122,8 +122,8 @@ def call_search(purpose, task, history, directory, action_input):
122
  def call_main(purpose, task, history, directory, action_input):
123
  resp = run_gpt(
124
  ACTION_PROMPT,
125
- stop_tokens=["observation:", "task:", "action:","thought:"],
126
- max_tokens=512,
127
  purpose=purpose,
128
  task=task,
129
  history=history,
 
90
  resp = run_gpt(
91
  COMPRESS_HISTORY_PROMPT,
92
  stop_tokens=["observation:", "task:", "action:", "thought:"],
93
+ max_tokens=1024,
94
  purpose=purpose,
95
  task=task,
96
  history=history,
 
122
  def call_main(purpose, task, history, directory, action_input):
123
  resp = run_gpt(
124
  ACTION_PROMPT,
125
+ stop_tokens=["observation:", "task:"],
126
+ max_tokens=256,
127
  purpose=purpose,
128
  task=task,
129
  history=history,