mirror of
https://github.com/ChatGPTNextWeb/ChatGPT-Next-Web.git
synced 2025-05-19 20:20:16 +09:00
fix display issue when a single newline appears after <think> tag
This commit is contained in:
parent
a899e9aceb
commit
6a25bdcf2d
@ -615,7 +615,8 @@ export function streamWithThink(
|
||||
if (chunk.content.includes("\n\n")) {
|
||||
const lines = chunk.content.split("\n\n");
|
||||
remainText += lines.join("\n\n> ");
|
||||
} else {
|
||||
} else if (chunk.content != "\n") {
|
||||
// deal with single newline after <think> tag
|
||||
remainText += chunk.content;
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user