adding vector model enabling and also test all using OpenAI model ...
This commit is contained in:
@@ -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;
|
||||
|
||||
Reference in New Issue
Block a user