diff --git a/src/api/ai/chat/conversation/index.ts b/src/api/ai/chat/conversation/index.ts index f0921e83..e0ee8501 100644 --- a/src/api/ai/chat/conversation/index.ts +++ b/src/api/ai/chat/conversation/index.ts @@ -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 }) }, diff --git a/src/api/ai/model/chatRole/index.ts b/src/api/ai/model/chatRole/index.ts index e573b667..5e81110b 100644 --- a/src/api/ai/model/chatRole/index.ts +++ b/src/api/ai/model/chatRole/index.ts @@ -9,8 +9,7 @@ export interface ChatRoleVO { category: string // 角色类别 sort: number // 角色排序 description: string // 角色描述 - welcomeMessage: string // 角色欢迎语 - systemMessage: string // 角色上下文 + systemMessage: string // 角色设定 publicStatus: boolean // 是否公开 status: number // 状态 } diff --git a/src/views/ai/chat/components/ChatConversationUpdateForm.vue b/src/views/ai/chat/components/ChatConversationUpdateForm.vue new file mode 100644 index 00000000..0a754dd8 --- /dev/null +++ b/src/views/ai/chat/components/ChatConversationUpdateForm.vue @@ -0,0 +1,124 @@ + + + + diff --git a/src/views/ai/chat/index.vue b/src/views/ai/chat/index.vue index 306b031a..a1d1816e 100644 --- a/src/views/ai/chat/index.vue +++ b/src/views/ai/chat/index.vue @@ -67,7 +67,8 @@ {{ useConversation?.title }}