feat: replace the end user column in the web page Log & Ann. with the… (#653)

Co-authored-by: Hao Fu <hao.fu@helloklarity.com>
This commit is contained in:
TheFu527
2023-07-27 12:48:43 +08:00
committed by GitHub
parent f9412f5fdb
commit 94b54b7ca9
4 changed files with 11 additions and 2 deletions

View File

@@ -412,7 +412,7 @@ const ConversationList: FC<IConversationList> = ({ logs, appDetail, onRefresh })
</thead>
<tbody className="text-gray-500">
{logs.data.map((log) => {
const endUser = log.from_end_user_id?.slice(0, 8)
const endUser = log.from_end_user_session_id
const leftValue = get(log, isChatMode ? 'summary' : 'message.query')
const rightValue = get(log, isChatMode ? 'message_count' : 'message.answer')
return <tr

View File

@@ -79,6 +79,7 @@ export type CompletionConversationGeneralDetail = {
status: 'normal' | 'finished'
from_source: 'api' | 'console'
from_end_user_id: string
from_end_user_session_id: string
from_account_id: string
read_at: Date
created_at: number