microsoft / vscode-copilot-vision

Exploration into leveraging vision capabilities of an LLM
MIT License
21 stars 1 forks source link

Invalid Key: Not working with both Azure OpenAI and OpenAI #82

Open ambilykk opened 2 hours ago

ambilykk commented 2 hours ago

Hello Team

I have created an Azure OpenAI resource and passed the endpoint through the extension settings. But, @vision throws invalid API key message.

Tried by OpenAI Key, but the result is same - "Invalid Key"

Image

justschen commented 2 hours ago

@ambilykk hey! sorry our documentation needs a little updating, but in both scenarios, there has to be a positive $ of credit in the account for it to work.

ambilykk commented 2 hours ago

@justschen I have an Azure subscription with a credit balance and have set up Azure OpenAI within the same subscription.

justschen commented 2 hours ago

@ambilykk in the azure open ai studio, can you double check that you're using the correct endpoint (target uri) and that the deployment names match up?

ambilykk commented 1 hour ago

Thank you @justschen; I am able to configure the Vision extension.

Initially I have passed the OpenAII endpoint from Azure portal. That doesn't work. Now, I have used the URL from the deployment; something like the below https://xxxx.openai.azure.com/openai/deployments/gpt-4/chat/completions?api-version=2024-08-01-preview

Please update the document with the expected API URL details.