fix: include thinking_millsec in message block creation (#5685)

This commit is contained in:
SuYao 2025-05-06 08:09:25 +08:00 committed by GitHub
parent 5097e24dee
commit 2fce1b58c8

View File

@ -115,6 +115,7 @@ export async function upgradeToV7(tx: Transaction): Promise<void> {
if (oldMessage.reasoning_content?.trim()) {
const block = createThinkingBlock(oldMessage.id, oldMessage.reasoning_content, {
createdAt: oldMessage.createdAt,
thinking_millsec: oldMessage?.metrics?.time_thinking_millsec,
status: MessageBlockStatus.SUCCESS // Thinking block is complete content
})
blocksToCreate.push(block)