mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Fix reasoning content bleeding into multi-swipes
This commit is contained in:
@ -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);
|
||||
}
|
||||
|
Reference in New Issue
Block a user