【新增】AI:聊天更新的窗口

This commit is contained in:
YunaiV
2024-05-15 13:00:31 +08:00
parent ebd593bf92
commit bd5262e21d
6 changed files with 156 additions and 36 deletions

View File

@ -20,12 +20,12 @@ export interface ChatConversationVO {
// AI 聊天会话 API
export const ChatConversationApi = {
// 获取 Conversation
get: async (id: string) => {
return await request.get({ url: `/ai/chat/conversation/get?id=${id}` })
// 获得【我的】聊天会话
getChatConversationMy: async (id: string) => {
return await request.get({ url: `/ai/chat/conversation/get-my?id=${id}` })
},
// 更新 Conversation
updateConversationMy: async (data: ChatConversationVO) => {
// 更新【我的】聊天会话
updateChatConversationMy: async (data: ChatConversationVO) => {
return await request.put({ url: `/ai/chat/conversation/update-my`, data })
},

View File

@ -9,8 +9,7 @@ export interface ChatRoleVO {
category: string // 角色类别
sort: number // 角色排序
description: string // 角色描述
welcomeMessage: string // 角色欢迎语
systemMessage: string // 角色上下文
systemMessage: string // 角色设定
publicStatus: boolean // 是否公开
status: number // 状态
}