diff --git a/src/dotnet/Orchestration/Services/LLMOrchestrationServiceManager.cs b/src/dotnet/Orchestration/Services/LLMOrchestrationServiceManager.cs index a74b6066a7..f027dce02a 100644 --- a/src/dotnet/Orchestration/Services/LLMOrchestrationServiceManager.cs +++ b/src/dotnet/Orchestration/Services/LLMOrchestrationServiceManager.cs @@ -67,7 +67,7 @@ private async Task Initialize() DefaultAuthentication.ServiceIdentity!); _externalOrchestrationServiceSettings = apiEndpoint - .Where(eos => eos.APIKeyConfigurationName.StartsWith(AppConfigurationKeySections.FoundationaLLM_ExternalAPIs)) + .Where(eos => eos.APIKeyConfigurationName is not null && eos.APIKeyConfigurationName.StartsWith(AppConfigurationKeySections.FoundationaLLM_ExternalAPIs)) .ToDictionary( eos => eos.Name, eos => new APISettingsBase