Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions ui/src/api/admin/workspace/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,10 @@ const getConversationPage = (page: number, size: number, applicationId?: string)
return get(`/workspace/${wsId}/historical_conversation/${page}/${size}`)
}


const getConversationRecordDetail = (chatId: string, chatRecordId: string, applicationId?: string) =>
get(`/workspace/${getWorkspaceId()}/application/${applicationId}/chat/${chatId}/chat_record/${chatRecordId}`)

/** 获取会话记录分页。 */
const getConversationRecordPage = (chatId: string, page: number, size: number, applicationId?: string) => {
const wsId = getWorkspaceId()
Expand Down Expand Up @@ -66,6 +70,7 @@ export default {
postCancelConversationMessage,
postResumeConversationMessage,
getConversationPage,
getConversationRecordDetail,
getConversationRecordPage,
deleteConversation,
putConversation,
Expand Down
5 changes: 5 additions & 0 deletions ui/src/api/chat/conversation.ts
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,10 @@ const postResumeConversationMessage = (chatId: string, chatRecordId: string) =>
/** 获取历史会话分页。 */
const getConversationPage = (page: number, size: number) => get(`/historical_conversation/${page}/${size}`)

/** 获取单条会话记录详情(含执行详情 execution_details、知识来源、tokens、耗时)。 */
const getConversationRecordDetail = (chatId: string, chatRecordId: string) =>
get(`/historical_conversation/${chatId}/record/${chatRecordId}`)

/** 获取会话记录分页。 */
const getConversationRecordPage = (chatId: string, page: number, size: number) => get(`/historical_conversation_record/${chatId}/${page}/${size}`)

Expand All @@ -35,6 +39,7 @@ export default {
postCancelConversationMessage,
postResumeConversationMessage,
getConversationPage,
getConversationRecordDetail,
getConversationRecordPage,
deleteConversation,
putConversation,
Expand Down
Loading
Loading