OpenAI API Key Connection Failed
Hi, I have entered a correct API Key on an ChatGPT Plus account. There is no firewall. It starts with sk- but on Test it just says "Connection failed. HTTP 429: Invalid key or insufficient credits. What am I doing wrong?
maybe check if the api is right but doing a sample API call directly based on OpenAI documentation ? It works for me usually.
Not sure if this is the same issue, but I was unable to get LMStudio on a local lan computer connected, because though the field says API Key is optional, the "Save" button will not activate if the field is blank.
@Howardgr - you can add any random string to make it 'non empty' and it would work! I use LM Studio as well and it works well!
@Ikearegal75 - closing this issue for now. Please lmk if you still face issues. The error either means wrong key ( check for spaces etc before or after entry of api key) or add credits to your openai account! Or you can use free providers like groq, cerebras or google :) or run a local model your mac if you have >16GB Ram!
Fixed this now for once and for all! supports all models upto 5 and 5.1 - OpenAI.
#45
http://localhost:1234/v1/chat/completions is what you need to put in the AI settings provider field - as I eventually discovered.