mirror of
https://github.com/CherryHQ/cherry-studio.git
synced 2025-12-25 03:10:08 +08:00
fix: include thinking_millsec in message block creation (#5685)
This commit is contained in:
parent
5097e24dee
commit
2fce1b58c8
@ -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)
|
||||
|
||||
Loading…
Reference in New Issue
Block a user