refactor: Fixed redundant blank characters in message content

This commit is contained in:
choizhang
2025-04-22 01:25:18 +08:00
parent 522080e44f
commit 333c43fbdf
2 changed files with 5 additions and 6 deletions

View File

@@ -333,7 +333,6 @@ export const queryTextStream = async (
try {
const parsed = JSON.parse(line);
if (parsed.response) {
console.log('Received chunk:', parsed.response); // Log for debugging
onChunk(parsed.response);
} else if (parsed.error && onError) {
onError(parsed.error);