Update app.py
Browse files
app.py
CHANGED
|
@@ -46,7 +46,7 @@ def parse_action(string: str):
|
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
-
VERBOSE =
|
| 50 |
MAX_HISTORY = 100
|
| 51 |
MAX_DATA = 20000
|
| 52 |
|
|
@@ -229,7 +229,7 @@ def compress_history(purpose, task, history):
|
|
| 229 |
def call_main(purpose, task, history, action_input):
|
| 230 |
resp = run_gpt(
|
| 231 |
FINDER,
|
| 232 |
-
stop_tokens=[
|
| 233 |
max_tokens=2048,
|
| 234 |
seed=random.randint(1,1000000000),
|
| 235 |
purpose=purpose,
|
|
@@ -245,7 +245,7 @@ def call_main(purpose, task, history, action_input):
|
|
| 245 |
if line.startswith("action: COMPLETE"):
|
| 246 |
print("COMPLETE called")
|
| 247 |
return "COMPLETE", None, history, task
|
| 248 |
-
if line.startswith("action:"):
|
| 249 |
action_name, action_input = parse_action(line)
|
| 250 |
print(f'ACTION::{action_name} -- INPUT :: {action_input}')
|
| 251 |
history += "{}\n".format(line)
|
|
|
|
| 46 |
|
| 47 |
|
| 48 |
|
| 49 |
+
VERBOSE = False
|
| 50 |
MAX_HISTORY = 100
|
| 51 |
MAX_DATA = 20000
|
| 52 |
|
|
|
|
| 229 |
def call_main(purpose, task, history, action_input):
|
| 230 |
resp = run_gpt(
|
| 231 |
FINDER,
|
| 232 |
+
stop_tokens=[],
|
| 233 |
max_tokens=2048,
|
| 234 |
seed=random.randint(1,1000000000),
|
| 235 |
purpose=purpose,
|
|
|
|
| 245 |
if line.startswith("action: COMPLETE"):
|
| 246 |
print("COMPLETE called")
|
| 247 |
return "COMPLETE", None, history, task
|
| 248 |
+
if line.startswith("action: "):
|
| 249 |
action_name, action_input = parse_action(line)
|
| 250 |
print(f'ACTION::{action_name} -- INPUT :: {action_input}')
|
| 251 |
history += "{}\n".format(line)
|