Significant-Gravitas / AutoGPT

AutoGPT is the vision of accessible AI for everyone, to use and to build on. Our mission is to provide the tools, so that you can focus on what matters.
https://agpt.co
Other
168.45k stars 44.44k forks source link

error OpenAi key #8068

Open wp-coin opened 2 months ago

wp-coin commented 2 months ago

⚠️ Search for existing issues first ⚠️

Which Operating System are you using?

Windows

Which version of AutoGPT are you using?

Latest Release

What LLM Provider do you use?

Other (detail in issue)

Which area covers your issue best?

Installation and setup

What commit or version are you using?

0.5.1

Describe your issue.

I get an error when installing and runing on docker (docker compose run --rm auto-gpt serve )

ERROR Invalid OpenAI API key! Please set your OpenAI API key in .env or as an environment variable.

my new openai key does not start with sk-proj-

Upload Activity Log Content

2024-09-16 23:04:32,981 ERROR config.py:329 Invalid OpenAI API key! Please set your OpenAI API key in .env or as an environment variable. 2024-09-16 23:10:00,502 ERROR config.py:329 Invalid OpenAI API key! Please set your OpenAI API key in .env or as an environment variable.

Upload Error Log Content

Path /benchmark for agbenchmark does not exist plugins_config.yaml does not exist, creating base config. 2024-09-16 23:10:00,502 ERROR Invalid OpenAI API key! Please set your OpenAI API key in .env or as an environment variable. 2024-09-16 23:10:00,504 INFO You can get your key from https://platform.openai.com/account/api-keys

wp-coin commented 2 months ago

is this being fixed? I cannot use the new api key in openAi...

ntindle commented 1 month ago

Does the old keys work for you?

wp-coin commented 1 month ago

yes

jkpjkpjkp commented 2 weeks ago

same issue, working api key responded by 'Invalid OpenAI API key'