Azure-Samples / azure-search-openai-demo-csharp

A sample app for the Retrieval-Augmented Generation pattern running in Azure, using Azure Cognitive Search for retrieval and Azure OpenAI large language models to power ChatGPT-style and Q&A experiences.
MIT License
612 stars 401 forks source link

Deployment prompts for openAIApiKey #295

Open luisquintanilla opened 7 months ago

luisquintanilla commented 7 months ago

By default, the parameters file defaults to Azure OpenAI.

https://github.com/Azure-Samples/azure-search-openai-demo-csharp/blob/02cdc13efa2d9f1b1e0a441e65e8cc29c757b3cc/infra/main.parameters.json#L83-L85

However, when deploying the app, it prompts for the openAIApiKey.

Is this expected?

image

karol-pieciukiewicz commented 5 months ago

The quick fix for it can be: @description('OpenAI API Key') param openAIApiKey string = ''