Skip to content

Commit db38916

Browse files
committed
feat: AI Chat Interface Optimization
1 parent 9ccdd81 commit db38916

50 files changed

Lines changed: 2128 additions & 2034 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

‎ui/src/api/admin/workspace/conversation.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,10 @@ const getConversationPage = (page: number, size: number, applicationId?: string)
2929
return get(`/workspace/${wsId}/historical_conversation/${page}/${size}`)
3030
}
3131

32+
33+
const getConversationRecordDetail = (chatId: string, chatRecordId: string, applicationId?: string) =>
34+
get(`/workspace/${getWorkspaceId()}/application/${applicationId}/chat/${chatId}/chat_record/${chatRecordId}`)
35+
3236
/** 获取会话记录分页。 */
3337
const getConversationRecordPage = (chatId: string, page: number, size: number, applicationId?: string) => {
3438
const wsId = getWorkspaceId()
@@ -66,6 +70,7 @@ export default {
6670
postCancelConversationMessage,
6771
postResumeConversationMessage,
6872
getConversationPage,
73+
getConversationRecordDetail,
6974
getConversationRecordPage,
7075
deleteConversation,
7176
putConversation,

‎ui/src/api/chat/conversation.ts‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,10 @@ const postResumeConversationMessage = (chatId: string, chatRecordId: string) =>
1717
/** 获取历史会话分页。 */
1818
const getConversationPage = (page: number, size: number) => get(`/historical_conversation/${page}/${size}`)
1919

20+
/** 获取单条会话记录详情(含执行详情 execution_details、知识来源、tokens、耗时)。 */
21+
const getConversationRecordDetail = (chatId: string, chatRecordId: string) =>
22+
get(`/historical_conversation/${chatId}/record/${chatRecordId}`)
23+
2024
/** 获取会话记录分页。 */
2125
const getConversationRecordPage = (chatId: string, page: number, size: number) => get(`/historical_conversation_record/${chatId}/${page}/${size}`)
2226

@@ -35,6 +39,7 @@ export default {
3539
postCancelConversationMessage,
3640
postResumeConversationMessage,
3741
getConversationPage,
42+
getConversationRecordDetail,
3843
getConversationRecordPage,
3944
deleteConversation,
4045
putConversation,

0 commit comments

Comments
 (0)