This commit is contained in:
2026-04-16 16:02:26 +03:30
parent ed9ddfd47b
commit 509acc1488
3 changed files with 7 additions and 6 deletions
+3 -2
View File
@@ -10,6 +10,7 @@ using xAiApi.Base;
using xCommons.Configurations;
using xCommons.Extensions;
using xCommons.Providers;
using xIdentityHelper;
using xIdentityService.Interfaces;
namespace xAiApi.Controllers.V1
@@ -36,8 +37,8 @@ namespace xAiApi.Controllers.V1
//
#region Actions ...
[AllowAnonymous]
[HttpGet("AskAI")]
[Authorize(Policy = XPolicies.EnabledUser)]
public async Task<ActionResult<string>> AskAI(
[FromQuery] string prompt,
CancellationToken cancellationToken = default
@@ -65,8 +66,8 @@ namespace xAiApi.Controllers.V1
}
}
[AllowAnonymous]
[HttpGet("AskAIStream")]
[Authorize(Policy = XPolicies.EnabledUser)]
public async Task AskAIStream(
[FromQuery] string prompt,
CancellationToken cancellationToken = default