-
Notifications
You must be signed in to change notification settings - Fork 221
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
Buffer for OpenAI API Key is not big enough (AEGHB-969) #181
Comments
I calculated it, it should be 51 bytes, why you will get 160 byes? |
They changed the key size, please test it your self try to get a new project API key or user API Key
|
I tried it, you are right, I will modify the corresponding component immediately, thanks. |
Just, follow up did you apply changes, thanks |
I also increased the key length in the commit of the github workflow action. Please confirm. Thank you very much. |
Checklist
How often does this bug occurs?
always
Expected behavior
The Api Key Size buffer define in ChatGPT demo is 64 bytes while OpenAI API Key is well over 160 byes
#define KEY_SIZE 64
Suggest to increase it to 256
Actual behavior (suspected bug)
When testing ChatGPT demo this message appears
"code": invalid_api_key!
Error logs or terminal output
Steps to reproduce the behavior
"code": invalid_api_key!
Project release version
latest
System architecture
Intel/AMD 64-bit (modern PC, older Mac)
Operating system
MacOS
Operating system version
MacOS
Shell
Bash
Additional context
No response
The text was updated successfully, but these errors were encountered: