Skip to content

Commit

Permalink
Merge pull request #1239 from solliancenet/cp_add_null_check
Browse files Browse the repository at this point in the history
Add null check in configuration filter
  • Loading branch information
ciprianjichici authored Jul 18, 2024
2 parents d75568f + f4e273c commit 170fc6f
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 170fc6f

Please sign in to comment.