Skip to content

Commit 02023a9

Browse files
committed
update
1 parent f205c3f commit 02023a9

1 file changed

Lines changed: 1 addition & 3 deletions

File tree

articles/azure-app-configuration/quickstart-chat-completion-go.md

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -165,14 +165,12 @@ The full sample source code is available in the [Azure App Configuration GitHub
165165
openAIClient := openai.NewClient(azure.WithEndpoint(aiConfig.AzureOpenAI.Endpoint, aiConfig.AzureOpenAI.APIVersion), azure.WithTokenCredential(tokenCredential))
166166
```
167167
168-
To access your Azure OpenAI resource with an API key, add the following code:
168+
To access your Azure OpenAI resource with an API key, add the following code. If the key _ChatApp:AzureOpenAI:ApiKey_ is a Key Vault reference in App Configuration, make sure to [grant your app access to Key Vault](./use-key-vault-references-dotnet-core.md#grant-your-app-access-to-key-vault).
169169
170170
```golang
171171
openAIClient := openai.NewClient(azure.WithAPIKey(aiConfig.AzureOpenAI.APIKey), azure.WithEndpoint(aiConfig.AzureOpenAI.Endpoint, aiConfig.AzureOpenAI.APIVersion))
172172
```
173173
174-
If the key _ChatApp:AzureOpenAI:ApiKey_ is a Key Vault reference in App Configuration, make sure to [grant your app access to Key Vault](./use-key-vault-references-dotnet-core.md#grant-your-app-access-to-key-vault).
175-
176174
1. Create a function to get AI responses from the OpenAI client:
177175
178176
```golang

0 commit comments

Comments
 (0)