diff --git a/public/scripts/openai.js b/public/scripts/openai.js index 98e61f303..a2f8eec42 100644 --- a/public/scripts/openai.js +++ b/public/scripts/openai.js @@ -2234,7 +2234,8 @@ async function sendOpenAIRequest(type, messages, signal) { if (Array.isArray(parsed?.choices) && parsed?.choices?.[0]?.index > 0) { const swipeIndex = parsed.choices[0].index - 1; - swipes[swipeIndex] = (swipes[swipeIndex] || '') + getStreamingReply(parsed, state); + // FIXME: state.reasoning should be an array to support multi-swipe + swipes[swipeIndex] = (swipes[swipeIndex] || '') + getStreamingReply(parsed, state, { overrideShowThoughts: false }); } else { text += getStreamingReply(parsed, state); }