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 d8a8b434f6
commit 0a6f2e089f
3 changed files with 113 additions and 10 deletions

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('');
}