mirror of
https://gitee.com/hhyykk/ipms-sjy-ui.git
synced 2025-07-15 03:15:07 +08:00
【新增】AI:聊天更新的窗口
This commit is contained in:
@ -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 })
|
||||
},
|
||||
|
||||
|
@ -9,8 +9,7 @@ export interface ChatRoleVO {
|
||||
category: string // 角色类别
|
||||
sort: number // 角色排序
|
||||
description: string // 角色描述
|
||||
welcomeMessage: string // 角色欢迎语
|
||||
systemMessage: string // 角色上下文
|
||||
systemMessage: string // 角色设定
|
||||
publicStatus: boolean // 是否公开
|
||||
status: number // 状态
|
||||
}
|
||||
|
Reference in New Issue
Block a user