From d103bc44710564dc643c9dc0028b92db3d1d5c53 Mon Sep 17 00:00:00 2001 From: Luciana Regina Lino Date: Fri, 28 Jun 2024 14:56:02 -0300 Subject: [PATCH] fix: adjust OpenAi cartridge namespaces. --- .../Extensions/IServiceCollectionExtension.cs | 1 - .../Liquid.ChatCompletions.OpenAi.csproj | 2 +- src/Liquid.ChatCompletions.OpenAi/OpenAiClientFactory.cs | 5 ++--- 3 files changed, 3 insertions(+), 5 deletions(-) diff --git a/src/Liquid.ChatCompletions.OpenAi/Extensions/IServiceCollectionExtension.cs b/src/Liquid.ChatCompletions.OpenAi/Extensions/IServiceCollectionExtension.cs index 75f3be8..18203bf 100644 --- a/src/Liquid.ChatCompletions.OpenAi/Extensions/IServiceCollectionExtension.cs +++ b/src/Liquid.ChatCompletions.OpenAi/Extensions/IServiceCollectionExtension.cs @@ -2,7 +2,6 @@ using Liquid.Core.Settings; using Microsoft.Extensions.Configuration; using Microsoft.Extensions.DependencyInjection; -using Pixel.Platform.Infra.OpenAi; using System.Diagnostics.CodeAnalysis; namespace Liquid.ChatCompletions.OpenAi.Extensions diff --git a/src/Liquid.ChatCompletions.OpenAi/Liquid.ChatCompletions.OpenAi.csproj b/src/Liquid.ChatCompletions.OpenAi/Liquid.ChatCompletions.OpenAi.csproj index 7af7ab2..68d8199 100644 --- a/src/Liquid.ChatCompletions.OpenAi/Liquid.ChatCompletions.OpenAi.csproj +++ b/src/Liquid.ChatCompletions.OpenAi/Liquid.ChatCompletions.OpenAi.csproj @@ -13,7 +13,7 @@ Avanade 2019 https://github.com/Avanade/Liquid-Application-Framework logo.png - 8.0.0-beta-02 + 8.0.0-beta-03 true true Full diff --git a/src/Liquid.ChatCompletions.OpenAi/OpenAiClientFactory.cs b/src/Liquid.ChatCompletions.OpenAi/OpenAiClientFactory.cs index e1225a5..ca5fd10 100644 --- a/src/Liquid.ChatCompletions.OpenAi/OpenAiClientFactory.cs +++ b/src/Liquid.ChatCompletions.OpenAi/OpenAiClientFactory.cs @@ -1,13 +1,12 @@ using Azure; using Azure.AI.OpenAI; using Azure.Core; -using Liquid.ChatCompletions.OpenAi; using Liquid.Core.Entities; using Liquid.Core.Settings; using Microsoft.Extensions.Options; using System.Diagnostics.CodeAnalysis; -namespace Pixel.Platform.Infra.OpenAi +namespace Liquid.ChatCompletions.OpenAi { /// [ExcludeFromCodeCoverage] @@ -29,7 +28,7 @@ public OpenAiClientFactory(IOptions settings) /// public OpenAIClient GetOpenAIClient(string clientId) - { + { var settings = _settings.Value.Settings.Where(x => x.ClientId == clientId).ToList(); if (settings.Count == 0)