Skip to content

Commit dd3824a

Browse files
authored
Merge pull request #118474 from MikeAlhayek/patch-2
Update use-your-data-dotnet.md
2 parents 171849f + 40d4b2a commit dd3824a

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

articles/ai-services/openai/includes/use-your-data-dotnet.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ var chatCompletionsOptions = new ChatCompletionsOptions()
4444
new AzureCognitiveSearchChatExtensionConfiguration()
4545
{
4646
SearchEndpoint = new Uri(searchEndpoint),
47-
SearchKey = new AzureKeyCredential(searchKey),
47+
Key = searchKey,
4848
IndexName = searchIndex,
4949
},
5050
}
@@ -153,7 +153,7 @@ var chatCompletionsOptions = new ChatCompletionsOptions()
153153
new AzureCognitiveSearchChatExtensionConfiguration()
154154
{
155155
SearchEndpoint = new Uri(searchEndpoint),
156-
SearchKey = new AzureKeyCredential(searchKey),
156+
Key = searchKey,
157157
IndexName = searchIndex,
158158
},
159159
}

0 commit comments

Comments
 (0)