last ...
This commit is contained in:
@@ -17,7 +17,7 @@ using OllamaSharp;
|
||||
|
||||
namespace xAiApi.Providers
|
||||
{
|
||||
public abstract class XAIServiceBase : IXAIServiceBase
|
||||
public abstract class XAIServiceBase : IXAiServiceBase
|
||||
{
|
||||
private readonly IXAiDataProvider dataProvider;
|
||||
private readonly ILogger<XAIServiceBase> logger;
|
||||
@@ -273,7 +273,7 @@ namespace xAiApi.Providers
|
||||
// Preparing Introduction Prompt ...
|
||||
var introductionPrompt = new ChatMessage(
|
||||
ChatRole.System,
|
||||
PromptHelper.GetIntroductionPrompt().Prompt
|
||||
configuration.GetPrompt()
|
||||
);
|
||||
|
||||
//
|
||||
@@ -307,7 +307,7 @@ namespace xAiApi.Providers
|
||||
// Preparing Introduction Prompt ...
|
||||
var introductionPrompt = new ChatMessage(
|
||||
ChatRole.System,
|
||||
PromptHelper.GetIntroductionPrompt().Prompt
|
||||
configuration.GetPrompt()
|
||||
);
|
||||
|
||||
//
|
||||
|
||||
@@ -0,0 +1,21 @@
|
||||
using Microsoft.Extensions.Logging;
|
||||
using xAiApi.Configurations;
|
||||
using xAiApi.Interfaces;
|
||||
using xAiModels.Interfaces;
|
||||
|
||||
namespace xAiApi.Providers
|
||||
{
|
||||
public class XDefaultAiService : XAIServiceBase, IXDefaultAiService
|
||||
{
|
||||
public XDefaultAiService(
|
||||
IXAiDataProvider dataProvider,
|
||||
ILogger<XAIServiceBase> logger,
|
||||
XAiApiConfiguration configuration
|
||||
) : base(
|
||||
dataProvider,
|
||||
logger,
|
||||
configuration
|
||||
)
|
||||
{ }
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user