Fix: Process all parts in response chunks when thought is first (#13539)

This commit is contained in:
Pyry Takala
2026-01-19 13:04:45 -08:00
committed by GitHub
parent afe7be8338
commit 6b29f2d0ba
3 changed files with 113 additions and 10 deletions
+1 -1
View File
@@ -81,7 +81,7 @@ export function getResponseText(
candidate.content.parts.length > 0
) {
return candidate.content.parts
.filter((part) => part.text)
.filter((part) => part.text && !part.thought)
.map((part) => part.text)
.join('');
}