Skip to content

Commit 4b0880d

Browse files
committed
Change scope
1 parent b8f6134 commit 4b0880d

File tree

3 files changed

+3
-3
lines changed
  • src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web
  • test/Libraries

3 files changed

+3
-3
lines changed

src/ProjectTemplates/Microsoft.Extensions.AI.Templates/src/ChatWithCustomData/ChatWithCustomData-CSharp.Web/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,7 @@
6363
var azureOpenAIEndpoint = new Uri(new Uri(builder.Configuration["AzureOpenAI:Endpoint"] ?? throw new InvalidOperationException("Missing configuration: AzureOpenAi:Endpoint. See the README for details.")), "/openai/v1");
6464
#if (IsManagedIdentity)
6565
var azureOpenAi = new OpenAIClient(
66-
new BearerTokenPolicy(new DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"),
66+
new BearerTokenPolicy(new DefaultAzureCredential(), "https://ai.azure.com/.default"),
6767
new OpenAIClientOptions { Endpoint = azureOpenAIEndpoint });
6868
#else
6969
var openAIOptions = new OpenAIClientOptions { Endpoint = azureOpenAIEndpoint };

test/Libraries/Microsoft.Extensions.AI.Evaluation.Integration.Tests/Setup.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ private static OpenAI.Chat.ChatClient GetOpenAIClient()
3535
new OpenAIClient(
3636
new BearerTokenPolicy(
3737
new ChainedTokenCredential(new AzureCliCredential(), new DefaultAzureCredential()),
38-
"https://cognitiveservices.azure.com/.default"),
38+
"https://ai.azure.com/.default"),
3939
options);
4040

4141
return client.GetChatClient(Settings.Current.DeploymentName);

test/Libraries/Microsoft.Extensions.AI.OpenAI.Tests/IntegrationTestHelpers.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ internal static class IntegrationTestHelpers
3030
return apiKey is not null ?
3131
new OpenAIClient(new ApiKeyCredential(apiKey), options) :
3232
new OpenAIClient(
33-
new BearerTokenPolicy(new DefaultAzureCredential(), "https://cognitiveservices.azure.com/.default"),
33+
new BearerTokenPolicy(new DefaultAzureCredential(), "https://ai.azure.com/.default"),
3434
options);
3535
}
3636
else if (apiKey is not null)

0 commit comments

Comments
 (0)