Don't split multiswipes unless requested (#4703)
Signed| @@ -2516,7 +2516,7 @@ async function sendOpenAIRequest(type, messages, signal, { jsonSchema = null } = | ||
| 2516 | 2516 | tryParseStreamingError(response, rawData); |
| 2517 | 2517 | const parsed = JSON.parse(rawData); |
| 2518 | 2518 | |
| 2519 | 2519 | if (canMultiSwipe && Array.isArray(parsed?.choices) && parsed?.choices?.[0]?.index > 0) { |
| 2520 | 2520 | const swipeIndex = parsed.choices[0].index - 1; |
| 2521 | 2521 | // FIXME: state.reasoning should be an array to support multi-swipe |
| 2522 | 2522 | swipes[swipeIndex] = (swipes[swipeIndex] || '') + getStreamingReply(parsed, state, { overrideShowThoughts: false }); |