mirror of
https://github.com/Significant-Gravitas/AutoGPT.git
synced 2026-04-08 03:00:28 -04:00
Adds additional debug info if assistant thoughts in wrong fromat.
This commit is contained in:
@@ -144,9 +144,11 @@ def print_assistant_thoughts(assistant_reply):
|
||||
print("CRITICISM: " + assistant_thoughts_criticism, flush=True)
|
||||
except json.decoder.JSONDecodeError:
|
||||
print("Error: Invalid JSON", flush=True)
|
||||
print(assistant_reply, flush=True)
|
||||
# All other errors, return "Error: + error message"
|
||||
except Exception as e:
|
||||
print("Error: " + str(e), flush=True)
|
||||
print(assistant_reply, flush=True)
|
||||
|
||||
# Initialize variables
|
||||
full_message_history = []
|
||||
|
||||
Reference in New Issue
Block a user