-
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 IN VALIDATING VALID OPEN AI KEY #1
Comments
Huh, I just ran it on my system and it worked (with the same key) with its config.txt file set to: set_openai_model|gpt-3.5-turbo So not sure what's wrong. Try gpt-4? If it's an older key I'd try generating a new one, there is some weirdness with legacy systems needing a different endpoint, but I think that only applies to gpt-3.5-turbo-instruct, etc. |
Thank you, Seth. The key is recent and functional, so I don't understand
what the issue might be. Perhaps it's a syntax problem on my end in the
config file. Would you be so kind as to send me an example of how the
'openai' key should be set in the config file, along with a piece of code?
Congratulations also on your activities, including those related to sports.
I'm actually involved in developing VR apps for Oculus Quest (my website is
www.fitnessvr.it, you can also find them on SidequestVR and Itch, such as
Boxing Trainer VR and City Run VR). I'm very interested in your
application; if I manage to get it working, maybe we can collaborate on a
project based on some of the functionalities you've implemented. Regards,
Mauro
Il giorno mar 21 nov 2023 alle ore 00:17 Seth Robinson <
***@***.***> ha scritto:
… Huh, I just ran it on my system and it worked (with the same key) with its
config.txt file set to:
set_openai_model|gpt-3.5-turbo
or
set_openai_model|gpt-4
or
set_openai_model|gpt-4-1106-preview
So not sure what's wrong. Try gpt-4?
If it's an older key I'd try generating a new one, there is some weirdness
with legacy systems needing a different endpoint, but I think that only
applies to gpt-3.5-turbo-instruct, etc.
—
Reply to this email directly, view it on GitHub
<#1 (comment)>,
or unsubscribe
<https://github.com/notifications/unsubscribe-auth/A2YRSIEPDYC23DDUPKEP6YLYFPQG7AVCNFSM6AAAAAA7S5M2LOVHI2DSMVQWIX3LMV43OSLTON2WKQ3PNVWWK3TUHMYTQMJZHE2TONBRGU>
.
You are receiving this because you authored the thread.Message ID:
***@***.***>
|
Sure, here is how my (redacted) key is set in the config.txt file:
BTW, running it directly from Unity will cause it to write .txt files of the actual request (not just the error) to OpenAI which might be useful for debugging what's wrong, might see a weird extra space or invisible character at the end or something. I believe you can put an ending | to make sure there isn't a rogue CR or linefeed being added by your editor (windows vs linux type editing thing?) Good luck with your VR apps! |
Good morning Seth, I'm Mauro from Rome. First of all, I wanted to compliment you on your projects; truly remarkable and innovative. I was trying your interesting GPT Avatar project, but even after inserting a valid key in the appropriate field (between open and closed parentheses) and saving the file as config.txt, I'm encountering the following error:
{
"error": {
"message": "Incorrect API key provided: \u******-***********************************************mi\u003e. You can find your API key at https://platform.openai.com/account/api-keys.",
"type": "invalid_request_error",
"param": null,
"code": "invalid_api_key"
}
}
Would you be so kind as to suggest a solution so I can test your project? P.S: The key is valid and has access to the GPT 3.5 Chat API. Warm regards and congratulations again on your work. Mauro from Rome.
The text was updated successfully, but these errors were encountered: