From 4adff9ec14b63dd3c3cdc03caae9797aeb224c04 Mon Sep 17 00:00:00 2001 From: Rodion Mostovoi <36400912+rodion-m@users.noreply.github.com> Date: Sat, 27 Jul 2024 21:26:07 +0500 Subject: [PATCH] Fix typo in method name for throwing unknown provider exception Corrected the spelling mistake from `ThrowUnkownProviderException` to `ThrowUnknownProviderException`. This ensures consistency and prevents potential confusion or errors related to method naming. --- src/OpenAI.ChatGpt.AspNetCore/AiClientFromConfiguration.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/OpenAI.ChatGpt.AspNetCore/AiClientFromConfiguration.cs b/src/OpenAI.ChatGpt.AspNetCore/AiClientFromConfiguration.cs index 9f64fd3..a489d55 100644 --- a/src/OpenAI.ChatGpt.AspNetCore/AiClientFromConfiguration.cs +++ b/src/OpenAI.ChatGpt.AspNetCore/AiClientFromConfiguration.cs @@ -26,7 +26,7 @@ public AiClientFromConfiguration( provider ??= OpenAiProvider; if (!Providers.Contains(provider)) { - ThrowUnkownProviderException(provider); + ThrowUnknownProviderException(provider); } _client = provider switch { @@ -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)}");