Giter Site home page Giter Site logo

Comments (8)

SunilWarrier avatar SunilWarrier commented on May 31, 2024

Upgrade to openAI solved these issues
pip install --upgrade openai

Now got a new issue
File \AppData\Local\Programs\Python\Python311\Lib\site-packages\openai\util.py", line 186, in default_api_key
raise openai.error.AuthenticationError(
openai.error.AuthenticationError: No API key provided. You can set your API key in code using 'openai.api_key = ', or you can set the environment variable OPENAI_API_KEY=).

from auto-gpt.

SunilWarrier avatar SunilWarrier commented on May 31, 2024

Again dumb me should have read the readme.md correctly renamed the .env file
Now getting error
openai.error.InvalidRequestError: The model: gpt-4 does not exist
I am a paid user in OpenAI and chatGPT

from auto-gpt.

SunilWarrier avatar SunilWarrier commented on May 31, 2024

Maybe I am not allowed, so I revisited and applied for it. Then I changed it to gpt-3.5turbo
it stated working but stuck with
Error: Invalid JSON
What task would you like me to perform?
NEXT ACTION: COMMAND = Error: ARGUMENTS = Invalid JSON
Enter 'y' to authorise command or 'n' to exit program...
Input:y
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
SYSTEM: Command Error: returned: Unknown command Error:
Error: Invalid JSON
I am ready for your next command. What would you like me to do?
NEXT ACTION: COMMAND = Error: ARGUMENTS = Invalid JSON
Enter 'y' to authorise the command or 'n' to exit the program...
Input:
I am trying to figure out how to fix this.
any suggestions?

from auto-gpt.

Torantulino avatar Torantulino commented on May 31, 2024

This last erorr looks like it's due to a bad prompt, try the default one and see if it's any different.

Also please make sure you're on the latest version.

from auto-gpt.

SunilWarrier avatar SunilWarrier commented on May 31, 2024

I tried the defaults and got the same error.
Let me try to debug the JSON at that time. I am not a Python programer, but I can understand.

[32mWelcome to Auto-GPT! ←[0mEnter the name of your AI and its role below. Entering nothing will load defaults.
←[32mName your AI: ←[0mFor example, 'Entrepreneur-GPT'
AI Name: Entrepreneur-GPT
←[94mEntrepreneur-GPT here! ←[0mI am at your service.
←[32mDescribe your AI's role: ←[0mFor example, 'an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.'
Entrepreneur-GPT is: an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
←[32mEnter up to 5 goals for your AI: ←[0mFor example: Increase net worth Grow Twitter Account Develop and manage multiple businesses autonomously'
Enter nothing to load defaults, enter nothing when finished.
←[94mGoal←[0m 1:
Error: Prompt file not found
←[31mError: Invalid JSON
←[0mPlease provide a command for me to execute.
←[36mNEXT ACTION: ←[0mCOMMAND = ←[36mError:←[0m ARGUMENTS = ←[36mInvalid JSON←[0m
Enter 'y' to authorise command or 'n' to exit program...
←[35mInput:←[0m

from auto-gpt.

SunilWarrier avatar SunilWarrier commented on May 31, 2024

When I run it in MS Code, I get the colours, and it will load the prompt file.
When I print that I get
Assistant reply JSON: What would you like the next command to be?
Not sure from where this is coming.

PS C:\development\PythonDevelopment\Auto-GPT\scripts> & C:/Users/sunil/AppData/Local/Programs/Python/Python311/python.exe c:/development/PythonDevelopment/Auto-GPT/scripts/main.py
Welcome to Auto-GPT! Enter the name of your AI and its role below. Entering nothing will load defaults.
Name your AI: For example, 'Entrepreneur-GPT'
AI Name: Entrepreneur-GPT
Entrepreneur-GPT 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.'
Entrepreneur-GPT is: an AI designed to autonomously develop and run businesses with the sole goal of increasing your net worth.
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:
Assistant reply JSON: What would you like the next command to be?
Error: Invalid JSON
NEXT ACTION: COMMAND = Error: ARGUMENTS = Invalid JSON
Enter 'y' to authorise command or 'n' to exit program...
Input:y
-=-=-=-=-=-=-= COMMAND AUTHORISED BY USER -=-=-=-=-=-=-=
SYSTEM: Command Error: returned: Unknown command Error:
Assistant reply JSON: What would you like the next command to be?
Error: Invalid JSON
What would you like the next command to be?
NEXT ACTION: COMMAND = Error: ARGUMENTS = Invalid JSON
Enter 'y' to authorise command or 'n' to exit program...
Input:

from auto-gpt.

SunilWarrier avatar SunilWarrier commented on May 31, 2024

I can see we are getting assistant_reply from the OpenAI response.

assistant_reply = response.choices[0].message["content"] in the response is a JSON but the content variable is just a string.
How can we try to load assistant_reply_json = json.loads(assistant_reply) as json in print_assistant_thoughts function?

Here the response is from gpt-3.5-turbo

I have tried the option also - python scripts/main.py --gpt3only but the same results.

Any clue to fix this? Thanks.

AutoGPT

from auto-gpt.

richbeales avatar richbeales commented on May 31, 2024

closing as outdated.

from auto-gpt.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.