()
| 49 | * 结束思考(对应 think_chunk_end 事件) |
| 50 | */ |
| 51 | const endThinking = () => { |
| 52 | if (currentMessageId.value && currentThought.value) { |
| 53 | addStep(currentMessageId.value, { |
| 54 | type: "reasoning", |
| 55 | content: currentThought.value, |
| 56 | timestamp: Date.now(), |
| 57 | }); |
| 58 | } |
| 59 | currentThought.value = ""; |
| 60 | currentMessageId.value = null; |
| 61 | isThinking.value = false; |
| 62 | }; |
| 63 | |
| 64 | /** |
| 65 | * 添加思维步骤 |