Azure-Samples / netaivideoanalyzer

This repository contains a series of samples on how to analyse a video using multimodal Large Language Models, like GPT-4o or GPT-4o-mini.
https://aka.ms/netaivideoanalyser
MIT License
8 stars 4 forks source link

OpenAI resources failed to list keys on the portal #9

Open zimuli157 opened 4 days ago

zimuli157 commented 4 days ago

Description When adding the user secrets, open openAi on the portal, click Keys and Endpoint, failed to list key, as follows: image

image

Repro steps

  1. Create a new Codespace.
  2. Run azd auth login.
  3. Run azd up(azd provision successful).
  4. Open openAi on the portal -> click Keys and Endpoint.

Expected behavior The keys of OpenAI can be listed on the portal.

Suggestion There are two suggestions:

  1. Change the value of disableLocalAuth to false in the infra\openai\openai.module.bicep file.
  2. Add the command to get the keys of openAi in Readme.md:
    az cognitiveservices account keys list --name "YourOpenAIResourceName" --resource-group "MyResourceGroup"

@elbruno and @hemarina for notification.

elbruno commented 2 days ago

Thanks for the suggestion @zimuli157 The azd up process is designed to deploy the services for the Blazor demo, that's why the AOAI resource does not provide any key. I'll add your 2 lines as part of the deploy / troubleshooting process, to explain that this change may also help to deploy AOAI resources to run the samples.

Best!

zimuli157 commented 1 day ago

@elbruno, Sorry, the screenshot we posted is from Azure OpenAI Services, but after reading README.md carefully, we found that it is the api key on OpenAI APIs. Just to confirm, if it is the api key on OpenAI APIs, we will close this issue.