Skip to content
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

Can't use Azure OpenAI endpoint #173

Closed
allenwoods opened this issue May 21, 2024 · 3 comments
Closed

Can't use Azure OpenAI endpoint #173

allenwoods opened this issue May 21, 2024 · 3 comments
Labels
bug Something isn't working

Comments

@allenwoods
Copy link

Describe the bug
I have configured the endpoint and model name for Azure OpenAI in the settings (which work fine in other software), and after inputting the "reset chat" command, I pasted the OpenAI API key, but it shows "API invalid".

To Reproduce
As described above.

Expected behavior
The chat interface should display normally.

Screenshots
image

image

Desktop (please complete the following information):

  • OS: MacOS X
  • Desktop App
@allenwoods allenwoods added the bug Something isn't working label May 21, 2024
@JerryI
Copy link
Owner

JerryI commented May 21, 2024

You can also have an access to it directly from a cell

SystemCredential["OPENAI_API_KEY"]

please, check if it shows your valid API key. If not, you can also reset it from the settings.

Also we validate the length of it. We set it to be

StringLength[token] > 41

Does Azure OpenAI have the same length as OpenAI's keys?

@allenwoods
Copy link
Author

Thanks for the prompt reply! It did show my API key, but the Azure OpenAI API key consists of only 32 characters.

@JerryI
Copy link
Owner

JerryI commented May 22, 2024

Fixed in #wljs-snippets

Please force update check from settings menu and then on the next start of an app it will fetch a new version.

@JerryI JerryI closed this as completed May 25, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants