You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on May 29, 2026. It is now read-only.
When I try to run explain_puzzles.ipynb, It is telling me I didn't provide an API key. But I the api key is already set in the os.environ["OPENAI_API_KEY"] from having added the API key to both ~/.zshrc and ~/.bash_profile as suggested here: https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safety
And I have tried removing the key from those files and manually setting it in the notebook as suggested, and the error persists.
Output:
puzzle_name='colors'
{'error': {'message': 'The model: `gpt-4` does not exist', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}
and this error:
HTTPStatusError: Client error '404 Not Found' for url 'https://api.openai.com/v1/chat/completions'
For more information check: https://httpstatuses.com/404
That url displays the following error:
"You didn't provide an API key. You need to provide your API key in an Authorization header using Bearer auth (i.e. Authorization: Bearer YOUR_KEY), or as the password field (with blank username) if you're accessing the API from your browser and are prompted for a username and password. You can obtain an API key from https://platform.openai.com/account/api-keys."
I am getting this error whether I run the notebook with jupyter labs or jupyter notebook.
When I try to run explain_puzzles.ipynb, It is telling me I didn't provide an API key. But I the api key is already set in the
os.environ["OPENAI_API_KEY"]from having added the API key to both~/.zshrcand~/.bash_profileas suggested here: https://help.openai.com/en/articles/5112595-best-practices-for-api-key-safetyAnd I have tried removing the key from those files and manually setting it in the notebook as suggested, and the error persists.
Output:
and this error:
That url displays the following error:
I am getting this error whether I run the notebook with jupyter labs or jupyter notebook.