Skip to content

Commit

Permalink
Add a bit more context. Fixes #1065 (#1161)
Browse files Browse the repository at this point in the history
  • Loading branch information
IEvangelist committed Jun 27, 2024
1 parent fefa135 commit 65d5913
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions docs/azureai/azureai-openai-component.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
title: .NET Aspire Azure AI OpenAI component
description: Learn how to use the .NET Aspire Azure AI OpenAI component.
ms.topic: how-to
ms.date: 06/05/2024
ms.date: 06/26/2024
---

# .NET Aspire Azure AI OpenAI component
Expand Down Expand Up @@ -102,7 +102,7 @@ When using a connection string from the `ConnectionStrings` configuration sectio
builder.AddAzureAIOpenAI("openAiConnectionName");
```

And then the connection string will be retrieved from the `ConnectionStrings` configuration section:
The connection string is retrieved from the `ConnectionStrings` configuration section, and there are two supported formats, either the account endpoint used in conjunction with the default Azure credential or a connection string with the account key.

#### Account endpoint

Expand All @@ -123,7 +123,7 @@ Alternatively, a custom connection string can be used.
```json
{
"ConnectionStrings": {
"openaiConnectionName": "Endpoint=https://{account_name}.openai.azure.com/;Key={account_key};"
"openAiConnectionName": "Endpoint=https://{account_name}.openai.azure.com/;Key={account_key};"
}
}
```
Expand Down

0 comments on commit 65d5913

Please sign in to comment.