-
Notifications
You must be signed in to change notification settings - Fork 15
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The JSON object is invalid #2
Comments
I am having this issue also I have created a file named parse_broken_json.py on scripts directory to minimize the issue `#!/usr/bin/env python3 import decimal import ijson from typing import Any class JSONEventPartialItpr:
def remove_leading_unwanted_text(text: str) -> str:
def parse_json(text: str, allowed_keys: list[str]) -> Any:
|
AutoGPTDiscord - 0.1.0 - Discord plugin loaded!
2023-05-06 19:58:06 INFO discord.client logging in using static token
2023-05-06 19:58:06 INFO discord.gateway Shard ID None has connected to Gateway (Session ID: ).
Bot logged in as Auto-GPT#4918 (ID: )
The JSON object is invalid.
THOUGHTS: I am ready to receive your command.
REASONING: I am waiting for user input.
PLAN:
CRITICISM: I need to ensure that I am accurately interpreting user commands and providing appropriate responses.
NEXT ACTION: COMMAND = Error: ARGUMENTS = 'command' object is not a dictionary
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 's' to run self-feedback commands'n' to exit program, or enter feedback for ...
Asking user via keyboard..
upon running the code, via docker the json object issue appears, and the discord output is as follows:
{
"thoughts": {
"text": "I am ready to receive your command.",
"reasoning": "I am waiting for user input.",
"plan": "- Listen for user command\n- Parse command and arguments\n- Execute command\n- Return response",
"criticism": "I need to ensure that I am accurately interpreting user commands and providing appropriate responses.",
"speak": "I am ready to receive your command. Please enter a valid command."
},
"command": null
}
The text was updated successfully, but these errors were encountered: