mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/per-boe/java-servers.git
synced 2025-12-11 03:46:50 +08:00
fix: 停止会话接口改get
This commit is contained in:
@@ -59,13 +59,13 @@ public class CaseAiChatApi extends ApiBaseController {
|
|||||||
// 获取当前用户
|
// 获取当前用户
|
||||||
return caseAiChatService.chat(caseAiChatDto, getCurrent());
|
return caseAiChatService.chat(caseAiChatDto, getCurrent());
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* 停止当前聊天输出
|
* 停止当前聊天输出
|
||||||
* @param conversationId 会话ID
|
* @param conversationId 会话ID
|
||||||
* @return 是否成功停止
|
* @return 是否成功停止
|
||||||
*/
|
*/
|
||||||
@PostMapping("/stop")
|
@GetMapping("/stop")
|
||||||
public JsonResponse<Boolean> stopChat(@RequestParam String conversationId) {
|
public JsonResponse<Boolean> stopChat(@RequestParam String conversationId) {
|
||||||
try {
|
try {
|
||||||
boolean result = caseAiChatService.stopChatOutput(conversationId);
|
boolean result = caseAiChatService.stopChatOutput(conversationId);
|
||||||
|
|||||||
Reference in New Issue
Block a user