【优化】AI:聊天消息的 Service 实现

This commit is contained in:
YunaiV
2024-05-22 13:12:54 +08:00
parent 3b02bcf4f8
commit a482876113
13 changed files with 198 additions and 227 deletions

View File

@ -30,8 +30,8 @@ public interface ErrorCodeConstants {
ErrorCode CHAT_CONVERSATION_UPDATE_MAX_TOKENS_ERROR = new ErrorCode(1_040_003_002, "更新对话失败,最大 Token 超过上限");
ErrorCode CHAT_CONVERSATION_UPDATE_MAX_CONTEXTS_ERROR = new ErrorCode(1_040_003_002, "更新对话失败,最大 Context 超过上限");
// chat
ErrorCode AI_CHAT_MESSAGE_NOT_EXIST = new ErrorCode(1_022_000_100, "提问的 MessageId 不存在!");
// ========== API 聊天消息 1-040-004-000 ==========
ErrorCode AI_CHAT_MESSAGE_NOT_EXIST = new ErrorCode(1_040_004_000, "消息不存在!");
// midjourney