| 3958 | | 3958 | |
| 3959 | const promptReasoning = new PromptReasoning(); | 3959 | const promptReasoning = new PromptReasoning(); |
| 3960 | for (let i = coreChat.length - 1; i >= 0; i--) { | 3960 | for (let i = coreChat.length - 1; i >= 0; i--) { |
| 3961 | const depth = coreChat.length - i - 1; | 3961 | const depth = coreChat.length - i - (isContinue ? 2 : 1); |
| 3962 | const isPrefix = isContinue && i === coreChat.length - 1; | 3962 | const isPrefix = isContinue && i === coreChat.length - 1; |
| 3963 | coreChat[i] = { | 3963 | coreChat[i] = { |
| 3964 | ...coreChat[i], | 3964 | ...coreChat[i], |