Skip to content

Commit

Permalink
Merge pull request #255 from Avanade/feat/newcartridges
Browse files Browse the repository at this point in the history
fix: adjust OpenAi cartridge namespaces.
  • Loading branch information
lucianareginalino authored Jun 28, 2024
2 parents 546137b + d103bc4 commit f54405e
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@
<Copyright>Avanade 2019</Copyright>
<PackageProjectUrl>https://github.com/Avanade/Liquid-Application-Framework</PackageProjectUrl>
<PackageIcon>logo.png</PackageIcon>
<Version>8.0.0-beta-02</Version>
<Version>8.0.0-beta-03</Version>
<GenerateDocumentationFile>true</GenerateDocumentationFile>
<IsPackable>true</IsPackable>
<DebugType>Full</DebugType>
Expand Down
5 changes: 2 additions & 3 deletions src/Liquid.ChatCompletions.OpenAi/OpenAiClientFactory.cs
Original file line number Diff line number Diff line change
@@ -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
{
///<inheritdoc/>
[ExcludeFromCodeCoverage]
Expand All @@ -29,7 +28,7 @@ public OpenAiClientFactory(IOptions<GenAiOptions> settings)

///<inheritdoc/>
public OpenAIClient GetOpenAIClient(string clientId)
{
{
var settings = _settings.Value.Settings.Where(x => x.ClientId == clientId).ToList();

if (settings.Count == 0)
Expand Down

0 comments on commit f54405e

Please sign in to comment.