last ...
This commit is contained in:
@@ -10,7 +10,7 @@ namespace xAiApi.Interfaces
|
||||
/// <summary>
|
||||
/// Describe a Base Service Actions of any Ai Based Services ...
|
||||
/// </summary>
|
||||
public interface IXAIServiceBase : IDisposable
|
||||
public interface IXAiServiceBase : IDisposable
|
||||
{
|
||||
/// <summary>
|
||||
/// Base Method for Communicate with LLM ...
|
||||
@@ -0,0 +1,21 @@
|
||||
using System.Threading;
|
||||
using System.Threading.Tasks;
|
||||
using Microsoft.AspNetCore.Mvc;
|
||||
|
||||
namespace xAiApi.Interfaces
|
||||
{
|
||||
public interface IXAiServiceControllerBase
|
||||
{
|
||||
/// <summary>
|
||||
/// Ask Question and Get Response ...
|
||||
/// </summary>
|
||||
/// <param name="question"></param>
|
||||
/// <param name="cancellationToken"></param>
|
||||
/// <returns></returns>
|
||||
[HttpGet("Ask")]
|
||||
Task<ActionResult<string>> Ask(
|
||||
[FromQuery] string question,
|
||||
CancellationToken cancellationToken = default
|
||||
);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,5 @@
|
||||
namespace xAiApi.Interfaces
|
||||
{
|
||||
public interface IXDefaultAiService : IXAiServiceBase
|
||||
{ }
|
||||
}
|
||||
Reference in New Issue
Block a user