Skip to content

Commit

Permalink
Fix typo in method name for throwing unknown provider exception
Browse files Browse the repository at this point in the history
Corrected the spelling mistake from `ThrowUnkownProviderException` to `ThrowUnknownProviderException`. This ensures consistency and prevents potential confusion or errors related to method naming.
  • Loading branch information
rodion-m committed Jul 27, 2024
1 parent 7ecb0f8 commit 4adff9e
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/OpenAI.ChatGpt.AspNetCore/AiClientFromConfiguration.cs
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ public AiClientFromConfiguration(
provider ??= OpenAiProvider;
if (!Providers.Contains(provider))
{
ThrowUnkownProviderException(provider);
ThrowUnknownProviderException(provider);
}
_client = provider switch
{
Expand All @@ -38,7 +38,7 @@ public AiClientFromConfiguration(
}


private static void ThrowUnkownProviderException(string provider)
private static void ThrowUnknownProviderException(string provider)
{
throw new ArgumentException($"Unknown AI provider: {provider}. " +
$"Supported providers: {string.Join(", ", Providers)}");
Expand Down

0 comments on commit 4adff9e

Please sign in to comment.