adding vector model enabling and also test all using OpenAI model ...

This commit is contained in:
2026-09-26 01:24:19 +03:30
parent 22de433023
commit 9afa413c6f
4 changed files with 112 additions and 22 deletions
+2 -2
View File
@@ -179,7 +179,7 @@ namespace xAiApi.Providers
case XAiModelProviderType.OpenAI:
//
// Instance Ollama Client using Custom HttpCLient ...
var llamaClient = new OpenAIClient(
var openAiClient = new OpenAIClient(
new ApiKeyCredential(apiKey.IsNullOrEmpty() ? XAiApiConstants.XOpenAINoKey : apiKey),
new OpenAIClientOptions
{
@@ -188,7 +188,7 @@ namespace xAiApi.Providers
}
);
result =
llamaClient
openAiClient
.GetChatClient(model)
.AsIChatClient();
break;