| 2234 | | 2234 | |
| 2235 | if (Array.isArray(parsed?.choices) && parsed?.choices?.[0]?.index > 0) { | 2235 | if (Array.isArray(parsed?.choices) && parsed?.choices?.[0]?.index > 0) { |
| 2236 | const swipeIndex = parsed.choices[0].index - 1; | 2236 | const swipeIndex = parsed.choices[0].index - 1; |
| 2237 | swipes[swipeIndex] = (swipes[swipeIndex] || '') + getStreamingReply(parsed, state); | 2237 | // FIXME: state.reasoning should be an array to support multi-swipe |
| | 2238 | swipes[swipeIndex] = (swipes[swipeIndex] || '') + getStreamingReply(parsed, state, { overrideShowThoughts: false }); |
| 2238 | } else { | 2239 | } else { |
| 2239 | text += getStreamingReply(parsed, state); | 2240 | text += getStreamingReply(parsed, state); |
| 2240 | } | 2241 | } |