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)}");