Skip to content

Commit

Permalink
Refactor method call formatting in ServiceCollectionExtensions
Browse files Browse the repository at this point in the history
Updated the formatting of the AddAiClient method call to improve readability by splitting parameters onto multiple lines. This change does not alter functionality but enhances code clarity and maintainability.
  • Loading branch information
rodion-m committed Jul 28, 2024
1 parent f65b388 commit b382773
Showing 1 changed file with 5 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,11 @@ public static IServiceCollection AddChatGptIntegrationCore(this IServiceCollecti
services.AddSingleton<ITimeProvider, TimeProviderUtc>();
services.Add(new ServiceDescriptor(typeof(ChatGPTFactory), typeof(ChatGPTFactory), gptFactoryLifetime));

services.AddAiClient(configuration, credentialsConfigSectionPath, azureOpenAiCredentialsConfigSectionPath, openRouterCredentialsConfigSectionPath, validateAiClientProviderOnStart);
services.AddAiClient(configuration,
credentialsConfigSectionPath,
azureOpenAiCredentialsConfigSectionPath,
openRouterCredentialsConfigSectionPath,
validateAiClientProviderOnStart);

return services;
}
Expand Down

0 comments on commit b382773

Please sign in to comment.