last ...
This commit is contained in:
@@ -0,0 +1,35 @@
|
||||
using xAiApi.Constants;
|
||||
using xAiApi.Interfaces;
|
||||
using xAiModels.Interfaces;
|
||||
using xAiApi.Configurations;
|
||||
using Microsoft.Extensions.Logging;
|
||||
using Microsoft.Extensions.AI;
|
||||
using xCommons.Extensions;
|
||||
|
||||
namespace xAiApi.Providers
|
||||
{
|
||||
public class XDefaultThinkingAiService : XAIServiceBase, IXDefaultThinkingAiService
|
||||
{
|
||||
public XDefaultThinkingAiService(
|
||||
IXAiDataProvider dataProvider,
|
||||
ILogger<XAIServiceBase> logger,
|
||||
XAiApiConfiguration configuration,
|
||||
ReasoningEffort effort = ReasoningEffort.Medium,
|
||||
ReasoningOutput output = ReasoningOutput.Full
|
||||
) : base(
|
||||
dataProvider,
|
||||
logger,
|
||||
configuration,
|
||||
XAiApiConstants.XAiDefaultThinkingModelName
|
||||
)
|
||||
{
|
||||
//
|
||||
// Preparing Reasoning ...
|
||||
Options.Reasoning = new ReasoningOptions
|
||||
{
|
||||
Output = output,
|
||||
Effort = effort,
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user