Skip to content

Commit 9fc08cc

Browse files
committed
fix(cf): keep scanning NDJSON until valid image urls
1 parent 1d7e91c commit 9fc08cc

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

src/grok/processor.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -465,7 +465,7 @@ export async function parseOpenAiFromGrokNdjson(
465465
}
466466

467467
// If upstream emits placeholder/empty generatedImageUrls in intermediate frames, keep scanning.
468-
if (Array.isArray(rawUrls) && rawUrls.length > 0) continue;
468+
if (Array.isArray(rawUrls)) continue;
469469

470470
// For normal chat replies, the first modelResponse is enough.
471471
break;

0 commit comments

Comments
 (0)