HTTPError: 401 Client Error: Unauthorized for url: https://api.openai.com/v1/completions #33
-
╭─────────────────────────────── Traceback (most recent call last) ────────────────────────────────╮ |
Beta Was this translation helpful? Give feedback.
Replies: 6 comments 3 replies
-
This happens since you provided ":)" as your API key. Follow these steps to change your API key. |
Beta Was this translation helpful? Give feedback.
-
Now I cannot access chatgpt |
Beta Was this translation helpful? Give feedback.
-
Hiya, I've ran into the same problem, and maybe I can help with the situation? I had to make sure one I messed this up that I removed all traces of Shell GPT.
Then, I noticed after a clean installation, that the same api string was still being used. After some looking around, I found my .config file.. You must either edit this, or completely delete it and start fresh :) If you would like to remove it, use Otherwise ... this will also work If you're still having anymore trouble, double check your path extension. I notice that it might not automatically be added everytime, but it's seriously such an easy fix. The extension can be added by using the following:
The later choice might be your best option. After I did this, it worked. Every instance in one terminal, in different shells, in two sperate terminals, etc. I have noticed a 500 Error, but these, and other related issues are because of the OpenAI API. Kudos to the creator for this. I can imagine how overwhelming these can get, so hopefully this helps @tanmay-veer? |
Beta Was this translation helpful? Give feedback.
-
Ig no problem now using shellg bur I am not able to access chatgpt :() |
Beta Was this translation helpful? Give feedback.
-
is there any guide for prompt engineering or doc for text-davinci-003 |
Beta Was this translation helpful? Give feedback.
-
@tanmay-veer yeah, there might be more around the internet refer to this website for the help with completions, and refer to this website for models. I would recommend still using davinci because of its token cost. |
Beta Was this translation helpful? Give feedback.
Hiya, I've ran into the same problem, and maybe I can help with the situation?
I had to make sure one I messed this up that I removed all traces of Shell GPT.
I removed all related packages from (they are labeled accordingly)
Then, I noticed after a clean installation, that the same api string was still being used. After some looking around, I found my .config file.. You must either edit this, or completely delete it and start fresh :)
If you would like to remove it, use
ls -a
, and open your .config directory. It is a hidden directory. From here you will see t…