This commit is contained in:
saikidev
2025-03-02 23:02:34 +08:00
committed by GitHub
16 changed files with 581 additions and 1 deletions

View File

@@ -633,7 +633,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;
}
}