()
| 74 | const reasoningDeltaBatch: Record<string, string> = {} |
| 75 | let reasoningDeltaTimer: Timer | undefined |
| 76 | const flushReasoningDelta = async () => { |
| 77 | for (const [id, delta] of Object.entries(reasoningDeltaBatch)) { |
| 78 | const part = reasoningMap[id] |
| 79 | if (part && delta) { |
| 80 | await Session.updatePart({ part, delta }) |
| 81 | } |
| 82 | } |
| 83 | Object.keys(reasoningDeltaBatch).forEach((key) => { |
| 84 | reasoningDeltaBatch[key] = "" |
| 85 | }) |
| 86 | } |
| 87 | |
| 88 | for await (const value of stream.fullStream) { |
| 89 | input.abort.throwIfAborted() |
nothing calls this directly
no outgoing calls
no test coverage detected