Merge branch 'main' into main

This commit is contained in:
glay
2025-02-11 09:06:33 +08:00
committed by GitHub
27 changed files with 413 additions and 34 deletions

View File

@@ -576,7 +576,7 @@ export function streamWithThink(
try {
const chunk = parseSSE(text, runTools);
// Skip if content is empty
if (!chunk?.content || chunk.content.trim().length === 0) {
if (!chunk?.content || chunk.content.length === 0) {
return;
}
// Check if thinking mode changed