Spaces:
Runtime error
Runtime error
Update app.py
Browse files
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=
|
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:"
|
126 |
-
max_tokens=
|
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,
|