Don't split multiswipes unless requested (#4703)

2175ccbf1eb67758b78b6cd8fd1f6aa1a2687922

Cohee <18619528+Cohee1207@users.noreply.github.com>

Signed
1 files changed, +1 -1Showing whitespace changes
public/scripts/openai.js+1 -1
@@ -2516,7 +2516,7 @@ async function sendOpenAIRequest(type, messages, signal, { jsonSchema = null } =
25162516 tryParseStreamingError(response, rawData);
25172517 const parsed = JSON.parse(rawData);
25182518
25192519 if (canMultiSwipe && Array.isArray(parsed?.choices) && parsed?.choices?.[0]?.index > 0) {
25202520 const swipeIndex = parsed.choices[0].index - 1;
25212521 // FIXME: state.reasoning should be an array to support multi-swipe
25222522 swipes[swipeIndex] = (swipes[swipeIndex] || '') + getStreamingReply(parsed, state, { overrideShowThoughts: false });