last ...
This commit is contained in:
@@ -9,6 +9,7 @@ using xAiApi.Extensions;
|
||||
using xAiApi.Interfaces;
|
||||
using xAiService.Helpers;
|
||||
using System.ClientModel;
|
||||
using xCommons.Providers;
|
||||
using xCommons.Extensions;
|
||||
using xAiModels.Constants;
|
||||
using xAiModels.Extensions;
|
||||
@@ -22,7 +23,6 @@ using System.Collections.Generic;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xAiApi.Interfaces.Extractors;
|
||||
using System.ClientModel.Primitives;
|
||||
using xCommons.Providers;
|
||||
|
||||
namespace xAiApi.Providers
|
||||
{
|
||||
@@ -44,12 +44,12 @@ namespace xAiApi.Providers
|
||||
IXFileContentExtractor fileContentExtractor,
|
||||
string embeddingModelName = XAiApiConstants.XAiEmbeddingModelName
|
||||
) : base(
|
||||
fileProvider,
|
||||
dataProvider,
|
||||
logger,
|
||||
configuration,
|
||||
validationProvider,
|
||||
fileContentExtractor,
|
||||
fileProvider,
|
||||
dataProvider,
|
||||
logger,
|
||||
configuration,
|
||||
validationProvider,
|
||||
fileContentExtractor,
|
||||
null
|
||||
)
|
||||
{
|
||||
@@ -199,7 +199,7 @@ namespace xAiApi.Providers
|
||||
new OpenAIClientOptions
|
||||
{
|
||||
Endpoint = new Uri(descriptor.Url),
|
||||
Transport = new HttpClientPipelineTransport(GetHttpClient(descriptor.Url))
|
||||
Transport = new HttpClientPipelineTransport(descriptor.Url.GetHttpClient())
|
||||
}
|
||||
);
|
||||
result = openAiClient
|
||||
|
||||
Reference in New Issue
Block a user