Skip to content

Can't verify the chat model using Azure API key. #1377

@doin4

Description

@doin4
  • Disable all other plugins besides Copilot (required)
  • Screenshot of note + Copilot chat pane + dev console added (required)

Copilot version:

(Bug report without the above will be closed)

Describe how to reproduce
I can't add Chat Models using Azure API key. I'm pretty sure I have the right API key and URL end point, but below error occurred. Besides, I'm confused about the Model Name, Instance Name and Deployment Name. I don't know how to fill those names. Once I changed the Instance Name, then I only got aborted error with on error in API key or end point (sadly still with an error).

Now I know I need to fill the right Instance Name to get the right URL, and I changed it to the right name, but it still occurred the error of 401 unauthorized. Again, I'm pretty sure the key and URL is correct. Appreciate it if anyone can give me any advise.

After this fail, I tried to add an embedding model also hosted by Azure, and I don't know why it worked.

UPDATE: I try to write a python script myself, and find that I can use the very API key and endpoint to access Azure model, don't know why it doesn't work on Obsidian.

Expected behavior
I want to verify my chat model using Azure API key.

Screenshots

Image

Image

Additional context
Add any other context about the problem here.

Metadata

Metadata

Assignees

No one assigned

    Labels

    questionFurther information is requested

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions