TheR1D / shell_gpt

A command-line productivity tool powered by AI large language models like GPT-4, will help you accomplish your tasks faster and more efficiently.
MIT License
8.81k stars 693 forks source link

Unable to use OpenAI API key #579

Open cody151 opened 3 weeks ago

cody151 commented 3 weeks ago

I created an API key in my dev dashboard yet sgpt refuses to use it saying "NotFoundError: Error code: 404 - {'error': {'message': 'The model gpt-4-1106-preview does not exist or you do not have access to it.', 'type': 'invalid_request_error', 'param': None, 'code': 'model_not_found'}}" However, I do not have GPT-4 access I still should be able to use GPT-3.5?

Robinsane commented 1 week ago

You should probably look into setting the env variable "DEFAULT_MODEL". alternatively you can directly adjust it in config.py It used to be GPT-4 it tried to access by default, however very recently the default model it tries to call is gpt-4o

I believe your problem should be fixed if you fill in the correct model name to make calls to gpt-3.5