fix: 支持ai转义功能
This commit is contained in:
@@ -23,7 +23,7 @@ namespace Yi.Framework.ChatHub.Application.Services
|
|||||||
/// <param name="chatContext"></param>
|
/// <param name="chatContext"></param>
|
||||||
/// <returns></returns>
|
/// <returns></returns>
|
||||||
[Authorize]
|
[Authorize]
|
||||||
[HttpPost("ai-chat/chat/{model}")]
|
[HttpPost("ai-chat/chat/{*model}")]
|
||||||
public async Task ChatAsync([FromRoute]string model, [FromBody] List<AiChatContextDto> chatContext)
|
public async Task ChatAsync([FromRoute]string model, [FromBody] List<AiChatContextDto> chatContext)
|
||||||
{
|
{
|
||||||
const int maxChar = 10;
|
const int maxChar = 10;
|
||||||
|
|||||||
Reference in New Issue
Block a user