From 1d964f59a63f3c98c5d70eec62d713f54e57dfba Mon Sep 17 00:00:00 2001 From: Jicheng Lu <103353@smsassist.com> Date: Sun, 22 Dec 2024 16:37:08 -0600 Subject: [PATCH] clean code --- .../BotSharp.Plugin.OpenAI/Providers/ProviderHelper.cs | 4 ---- 1 file changed, 4 deletions(-) diff --git a/src/Plugins/BotSharp.Plugin.OpenAI/Providers/ProviderHelper.cs b/src/Plugins/BotSharp.Plugin.OpenAI/Providers/ProviderHelper.cs index 1f73a71d..b385b380 100644 --- a/src/Plugins/BotSharp.Plugin.OpenAI/Providers/ProviderHelper.cs +++ b/src/Plugins/BotSharp.Plugin.OpenAI/Providers/ProviderHelper.cs @@ -9,10 +9,6 @@ public class ProviderHelper { var settingsService = services.GetRequiredService(); var settings = settingsService.GetSetting(provider, model); - //var options = string.IsNullOrEmpty(settings.Endpoint) - // ? null - // : new OpenAIClientOptions { Endpoint = new Uri(settings.Endpoint) }; - //return new OpenAIClient(new ApiKeyCredential(settings.ApiKey), options); var client = new OpenAIClient(new ApiKeyCredential(settings.ApiKey)); return client; }