()
| 148 | } |
| 149 | |
| 150 | function* closePartialText(): Generator<StreamChunk> { |
| 151 | if (partialTextStarted && partialTextMessageId) { |
| 152 | yield { |
| 153 | type: EventType.TEXT_MESSAGE_END, |
| 154 | messageId: partialTextMessageId, |
| 155 | model, |
| 156 | timestamp: now(), |
| 157 | } |
| 158 | } |
| 159 | partialTextStarted = false |
| 160 | partialTextMessageId = null |
| 161 | partialTextContent = '' |
| 162 | } |
| 163 | |
| 164 | function* closePartialReasoning(): Generator<StreamChunk> { |
| 165 | if (partialReasoningId) { |
no test coverage detected