Skip to content

Commit

Permalink
Add null check in configuration filter
Browse files Browse the repository at this point in the history
  • Loading branch information
codingbandit committed Jul 17, 2024
1 parent 0836f56 commit f4e273c
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 f4e273c

Please sign in to comment.