-
Notifications
You must be signed in to change notification settings - Fork 25
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
error: HTTP Error 401: Unauthorized #1
Comments
Hello Cary, This is an interesting observation. From the OpenAI vision API documentation:
My assumption was that all OpenAI platform accounts with a balance > $0 and an API key had access, excluding Chat GPT+ customers, which is a separate API.
If neither turns out to be the case, here is the python script I use to troubleshoot image completions. Are you getting the same result after saving and running it?
|
Hi @cartertemm
According to the output above, although I can use GPT4 on chat.openai.com it doesn't mean I can use GPT4API. |
This OpenAI forum topic seems to suggest that in addition to maintaining a balance in your account, topping off on credits (i.e. $5) might trigger availability of the vision preview API. You mention ChatGPT... Purchasing Chat GPT plus does not automatically provide platform credits. Let me know if you have an account balance by going to https://platform.openai.com/usage. Here are the steps I'd recommend to troubleshoot further:
In either case, the add-on should've announced the error, so I'll get that working in the next release. |
When I call the api key using the code you gave, I do see the call to the API on this page. https://platform.openai.com/docs/api-reference
|
I entered the following web page and saw: Credit remaining $4.52 |
If you go to the billing overview page again: https://platform.openai.com/account/billing/overview And then click on billing history, what does it show as the date for your last invoice? From the link in the error response:
I'm not sure whether that includes the vision preview, but it would be good information to have. |
My guess is the credit on the account isn't money that @cary-rowen added, but trial credits that they have yet to use up. |
@cary-rowen were you able to get this working with @aaronr7734's suggestions and the steps provided above? I've gotten emails from a couple others who are getting the same message, so once we nail down a solution it would be good to add a snippet explaining it in the readme. |
I was having the same problem. I also assumed my chatgpt plus account would suffice. First I created my key, but it did not work. |
Thanks @cartertemm @aaronr7734 @mcsedmak Since I was in China and had to submit the request through a mirror, I used @cartertemm's code sample above and replaced the URL with my mirror address, which returned the results as expected.
Expected json data:
|
based on above:
Thanks |
I've been thinking about how we wish to address this problem for others that might want to use the add-on in China. Do you know if the API is unavailable across the entirety of China, or just your region? I've searched for information on this and am unfortunately coming up short. It would appear that the mirror you are using is working slightly differently, triggering an IOError of some kind. I am hesitant to modify the error handling logic for this specifically. request body: "The log fragment starts with a mark, then copy it once to the clipboard" Instead of supporting different mirrors (which could each inject other information into the response), would it help to allow for an HTTP or sox proxy? |
Hi @cartertemm
From what I've read, it's unavailable across the entirety of China.
I might want you to do this if it doesn't have negative consequences, but ultimately it's up to you.
But proxy servers may not be easy to obtain. |
I think the issue could be fixed if the addon used on the api the regular gpt-4turbo, as it's now out of preview and support vision. It might be helpful to add a selector on what openai model in case of any possible regressions in the newer model for some use cases. The http error, It might be usable on free credit since it's no longer preview. |
You can now choose between GPT4 turbo and GPT4 vision preview in the manage models dialogue, so it'd be an easy test. But I think the region-based limitation has more to do with a choice on the part of OpenAI itself, or perhaps it's being blocked by the firewall. |
Hi @cartertemm
I created a new key, I have a paid GPT4 account, and when I try to identify the current navigation object I get the following error:
error: HTTP Error 401: Unauthorized****
Is the visual description permission only provided to paid accounts? I have a key for a free account and have the same problem, so I don't know what to do now.
Thanks
Cary
The text was updated successfully, but these errors were encountered: