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.86k stars 697 forks source link

Invalid OpenAI API Key #426

Closed dkhodan closed 5 months ago

dkhodan commented 6 months ago

sgpt --version: 1.0.1

Installation went OK. When I try to test it, it throws me an error: "404 Client Error: Not Found for url: https://api.openai.com/v1/chat/completions" that referring API key is wrong.

I did update API key already few times and double checked if it is set properly in configs.

Additionally, on unwinded stack I'm actually able to see reply from model gpt-4-1106-preview.

TheR1D commented 5 months ago

@dkhodan thank you for reporting this issue, latest release 1.1.0 provides enhanced error details with possible solutions.