logancyang / obsidian-copilot

THE Copilot in Obsidian
GNU Affero General Public License v3.0
2.72k stars 190 forks source link

Getting `Error: Azure OpenAI API instance name not found` when I'm not using Azure OpenAI #324

Open LesterThomas opened 7 months ago

LesterThomas commented 7 months ago

Describe the bug I'm trying the default settings using my Open-API Key (that I have tested in other applications). In the console, I'm getting an error Error: Azure OpenAI API instance name not found at new ChatOpenAI (plugin:copilot:70359:15) even though I have not set any of the Azure Open AI settings. In the Obsidian UI, Im'm getting a Error creating model: GPT-4 Turbo error.

To Reproduce New install of Copilot 2.4.18 Click Reset to Default Settings then apply OpenAI API Key, then click Save and Reload Error creating model: GPT-4 Turbo error shown in black box in UI, and Error: Azure OpenAI API instance name not found at new ChatOpenAI (plugin:copilot:70359:15) shown in console window.

logancyang commented 7 months ago

Hmm, I tried and couldn't reproduce this. What else did you do? @LesterThomas

Anyone else seeing this?

petery789 commented 7 months ago

Was following this: Reset to Default Settings, Apply OpenAI API Key, Save and Reload

Not seeing an error from my side, either. Are you able to get a screen recording? Thanks

My version of copilot: 2.4.18

LesterThomas commented 7 months ago

Many thanks for looking into this - I’ll do a screen recording and post here.