last ...
This commit is contained in:
@@ -47,9 +47,11 @@ namespace xAiService.Controllers
|
||||
try
|
||||
{
|
||||
//
|
||||
var tokens = Ex();
|
||||
var result = await aiService
|
||||
.GetTextResponseAsync(
|
||||
prompt: prompt,
|
||||
tokens: tokens,
|
||||
cancellationToken: cancellationToken
|
||||
);
|
||||
|
||||
@@ -63,6 +65,15 @@ namespace xAiService.Controllers
|
||||
return result;
|
||||
}
|
||||
}
|
||||
|
||||
[HttpGet("AskStream")]
|
||||
public async Task AskAIStream(
|
||||
[FromQuery] string prompt,
|
||||
CancellationToken cancellationToken = default
|
||||
)
|
||||
{
|
||||
|
||||
}
|
||||
#endregion
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user