Skip to content
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

Error: The following AI output couldn't be converted to a JSON: #2229

Closed
1 of 2 tasks
hamariana opened this issue Apr 17, 2023 · 10 comments
Closed
1 of 2 tasks

Error: The following AI output couldn't be converted to a JSON: #2229

hamariana opened this issue Apr 17, 2023 · 10 comments

Comments

@hamariana
Copy link

⚠️ Search for existing issues first ⚠️

  • I have searched the existing issues, and there is no existing issue for my problem

GPT-3 or GPT-4

  • I am using Auto-GPT with GPT-3 (GPT-3.5)

Steps to reproduce 🕹

AI Name: Hama
Hama here! I am at your service.
Describe your AI's role: For example, 'an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.'
Hama is: An AI created to teach AZ 305 courses to students who only have basic knowledge of Azure and are expected to pass the certification after the training.
Enter up to 5 goals for your AI: For example: Increase net worth, Grow Twitter Account, Develop and manage multiple businesses autonomously'
Enter nothing to load defaults, enter nothing when finished.
Goal 1: Provide comprehensive and engaging AZ 305 lessons to students with limited prior knowledge of Azure.
Goal 2: Ensure that students understand all the key concepts and technologies covered in the AZ 305 certification exam.
Goal 3: Foster students' ability to apply their knowledge of Azure in real-world scenarios.
Goal 4: Provide students with regular opportunities to practice and test their knowledge through quizzes, exercises, and other interactive activities.
Goal 5: Help students prepare effectively for the AZ 305 certification exam, including offering guidance on best practices for taking the exam and providing access to relevant study materials.
Using memory of type: LocalCache
Using Browser: chrome
| Thinking...

[....]

Let's use the "message_agent" command to delegate a task to the GPT agent we just started. We should provide the agent's key and a message containing the task we want it to perform.
NEXT ACTION: COMMAND = start_agent ARGUMENTS = {'name': 'AZ305_GPT_Agent', 'task': 'Creating quizzes, generating lecture materials, and providing guidance on best practices for taking the AZ 305 certification exam', 'prompt': 'What specific task would you like me to perform?'}
SYSTEM: Command start_agent returned: Agent AZ305_GPT_Agent created with key 7. First response: As an AI language model, I don't have any specific task for you to perform. However, if you have any questions or need any assistance, feel free to ask me.

Current behavior 😯

error.log
No matter what Input is added, loop into that result :*
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ...
Input:CHANGE THE REQUEST FOR CHAT GPT IN THE NEXT ACTION
SYSTEM: Human feedback: CHANGE THE REQUEST FOR CHAT GPT IN THE NEXT ACTION
Error: The following AI output couldn't be converted to a JSON:
I'm sorry, but I'm not sure what you mean by "CHANGE THE REQUEST FOR CHAT GPT IN THE NEXT ACTION". Can you please provide more context or clarify your request?
NEXT ACTION: COMMAND = human_feedback ARGUMENTS = {'name': 'AZ305_GPT_Agent', 'task': 'Creating quizzes, generating lecture materials, and providing guidance on best practices for taking the AZ 305 certification exam', 'prompt': 'What specific task would you like me to perform?'}
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ...
Input:

Expected behavior 🤔

No response

Your prompt 📝

# Paste your prompt here
@k-boikov
Copy link
Contributor

Seems related to #21

@GoSpinBoy
Copy link

GoSpinBoy commented Apr 18, 2023

I'm having the same issue:

-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
SYSTEM: Command write_to_file returned: Error: Attempted to access path 'C:\Users\conta\Desktop\Players.xlsx' outside of working directory 'C:\AutoGPT\Auto-GPT\auto_gpt_workspace'.
Error: The following AI output couldn't be converted to a JSON:
I apologize for the previous errors. It seems that the working directory is not set correctly. Before proceeding with the next command, I will set the working directory to the correct path using the "change_directory" command. Please confirm the correct path to the working directory.
NEXT ACTION: COMMAND = write_to_file ARGUMENTS = {'file': 'C:/Users/XXXXXX/Desktop/XXXXXX.xlsx', 'text': 'The text provides comprehensive player statistics for various categories such as Strokes Gained, Birdie Average, Driving Distance, Greens in Regulation Percentage, Scrambling, and SG: Putting.'}
Enter 'y' to authorise command, 'y -N' to run N continuous commands, 'n' to exit program, or enter feedback for ...
Input:n

@k-boikov
Copy link
Contributor

: Attempted to access pat

Attempted to access path outside of working directory is related to #2278

@Chcornel411
Copy link

Are there any resolution to this error. I am facing the same issue. ALthough I might mention that my bot is telling me to check that I have a PAID OpenAI API Account, which I don't have.
PLease Help. And do not tell me to pay for a API account...lol.
These people make billions of dollars and they just want more...

@namba06530
Copy link

same error here:

2023-04-18 20:26:22,597 ERROR logs:_log:120 Error: The following AI output couldn't be converted to a JSON:

i'm running on docker open api paid account try gpt-3 and 4

@hasnocool
Copy link

Tell ChatGPT to write you a UI to access the web version ;) thank me later peace

@Chcornel411
Copy link

HI, can you kindly be more specific? I am a newbie

@ntindle
Copy link
Member

ntindle commented Apr 21, 2023

Duplicate #21 #2278

@imsamehahmed
Copy link

Error: The following AI output couldn't be converted to a JSON:

@Sahnesiguzel33
Copy link

'y -N'

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

9 participants