When I change the LLM Setting for different model , it always return error.
It happened when I use os.environ to save my 'OPENAI_API_KEY', it consistently retrieves the incorrect value, such as 'GOOGLE_API_KEY' , or groq...etc
Here's one of my error code received after execute the latest version 0.13.0 , event I saved my OpenAI API Key via the GPT computer assistant interface.
File "C:\Users\adam\anaconda3\envs\gpt_comp_env\Lib\site-packages\openai_base_client.py", line 1020, in _request
raise self._make_status_error_from_response(err.response) from None
openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: AIzaSys8. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
Updating from thread EXCEPTION: Error code: 401 - {'error': {'message': 'Incorrect API key provided: AIzaSys8. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}}
State updated: idle
When I change the LLM Setting for different model , it always return error. It happened when I use os.environ to save my 'OPENAI_API_KEY', it consistently retrieves the incorrect value, such as 'GOOGLE_API_KEY' , or groq...etc
Here's one of my error code received after execute the latest version 0.13.0 , event I saved my OpenAI API Key via the GPT computer assistant interface.
File "C:\Users\adam\anaconda3\envs\gpt_comp_env\Lib\site-packages\openai_base_client.py", line 1020, in _request raise self._make_status_error_from_response(err.response) from None openai.AuthenticationError: Error code: 401 - {'error': {'message': 'Incorrect API key provided: AIzaSys8. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} Updating from thread EXCEPTION: Error code: 401 - {'error': {'message': 'Incorrect API key provided: AIzaSys8. You can find your API key at https://platform.openai.com/account/api-keys.', 'type': 'invalid_request_error', 'param': None, 'code': 'invalid_api_key'}} State updated: idle