This commit is contained in:
2026-04-14 16:54:41 +03:30
parent dc96e210e7
commit 5b90d694dc
16 changed files with 100 additions and 685 deletions
+11
View File
@@ -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
}
}