Comments (8)
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.
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.
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.
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.
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.
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.
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.
from auto-gpt.
closing as outdated.
from auto-gpt.
Related Issues (20)
- Auto
- Multidict dependency does nor compile on MacOS Sonoma 14.4.1 after "./run agent start [AGENTNAME] HOT 7
- Image slider
- Sign in with Google error (" 400: redirect_uri_mismatch".) (also with Github sign in)
- Keyboard shortcut for 'Send a single message'
- Unable to install on mac (Poetry Issue, Old Bug Fixes did not work) HOT 4
- how to change the port and the localhost to other HOT 1
- Can Anyone help to run this project in docker HOT 1
- [SSL: CERTIFICATE_VERIFY_FAILED]
- AutoGPT fails with new OpenAI Project Keys HOT 1
- Allow for Azure Blob Storage file storage backend HOT 1
- Support GitHub Fine-grained Access Token or Add Description to Document
- Apple Silicone Neural Engine: Core ML model package format support HOT 6
- Autogpt
- ./run agent start autogpt error HOT 1
- Security issue - Docker-compose persisted volumes HOT 1
- Tried to install AutoGPT since 5 days HOT 2
- agent have started ,but the website is empty,and in the gitpod env, it can not be installed and can not HOT 1
- Use Azure OpenAI with AutoGPT latest version, return 'Invalid OpenAI API key' error. Where Can I set Azure key? HOT 7
- should upgrade dependency for multidict when python3.12 HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from auto-gpt.