From 82624affb0251b75b62b35567d3eb260c06efe78 Mon Sep 17 00:00:00 2001
From: zhou zhou <3272660260@qq.com>
Date: 星期一, 23 三月 2026 12:48:07 +0800
Subject: [PATCH] #ai 代码优化
---
rsf-server/src/main/java/com/vincent/rsf/server/ai/service/AiChatService.java | 14 ++++++++++++--
1 files changed, 12 insertions(+), 2 deletions(-)
diff --git a/rsf-server/src/main/java/com/vincent/rsf/server/ai/service/AiChatService.java b/rsf-server/src/main/java/com/vincent/rsf/server/ai/service/AiChatService.java
index 27ecf4f..61b9bf1 100644
--- a/rsf-server/src/main/java/com/vincent/rsf/server/ai/service/AiChatService.java
+++ b/rsf-server/src/main/java/com/vincent/rsf/server/ai/service/AiChatService.java
@@ -3,17 +3,27 @@
import com.vincent.rsf.server.ai.dto.AiChatRequest;
import com.vincent.rsf.server.ai.dto.AiChatRuntimeDto;
import com.vincent.rsf.server.ai.dto.AiChatSessionDto;
+import com.vincent.rsf.server.ai.dto.AiChatSessionPinRequest;
+import com.vincent.rsf.server.ai.dto.AiChatSessionRenameRequest;
import org.springframework.web.servlet.mvc.method.annotation.SseEmitter;
import java.util.List;
public interface AiChatService {
- AiChatRuntimeDto getRuntime(String promptCode, Long sessionId, Long userId, Long tenantId);
+ AiChatRuntimeDto getRuntime(String promptCode, Long sessionId, Long aiParamId, Long userId, Long tenantId);
- List<AiChatSessionDto> listSessions(String promptCode, Long userId, Long tenantId);
+ List<AiChatSessionDto> listSessions(String promptCode, String keyword, Long userId, Long tenantId);
SseEmitter stream(AiChatRequest request, Long userId, Long tenantId);
void removeSession(Long sessionId, Long userId, Long tenantId);
+
+ AiChatSessionDto renameSession(Long sessionId, AiChatSessionRenameRequest request, Long userId, Long tenantId);
+
+ AiChatSessionDto pinSession(Long sessionId, AiChatSessionPinRequest request, Long userId, Long tenantId);
+
+ void clearSessionMemory(Long sessionId, Long userId, Long tenantId);
+
+ void retainLatestRound(Long sessionId, Long userId, Long tenantId);
}
--
Gitblit v1.9.1