.NET: Update models used in dotnet samples to gpt-5.4-mini (#5080)

* Update models used in dotnet samples to gpt-5.4-mini

* Fix additional missed sample
This commit is contained in:
westey
2026-04-07 15:34:00 +00:00
committed by GitHub
parent 826d8db84c
commit e224f06e60
199 changed files with 239 additions and 239 deletions
@@ -16,7 +16,7 @@ static string GetWeather([Description("The location to get the weather for.")] s
AITool tool = AIFunctionFactory.Create(GetWeather);
string endpoint = Environment.GetEnvironmentVariable("AZURE_AI_PROJECT_ENDPOINT") ?? throw new InvalidOperationException("AZURE_AI_PROJECT_ENDPOINT is not set.");
string deploymentName = Environment.GetEnvironmentVariable("AZURE_AI_MODEL_DEPLOYMENT_NAME") ?? "gpt-4o-mini";
string deploymentName = Environment.GetEnvironmentVariable("AZURE_AI_MODEL_DEPLOYMENT_NAME") ?? "gpt-5.4-mini";
// WARNING: DefaultAzureCredential is convenient for development but requires careful consideration in production.
// In production, consider using a specific credential (e.g., ManagedIdentityCredential) to avoid