Skip to content

(google llm): strip thought summaries#6428

Merged
tinalenguyen merged 4 commits into
mainfrom
tina/gemini-strip-thought-summaries
Jul 15, 2026
Merged

(google llm): strip thought summaries#6428
tinalenguyen merged 4 commits into
mainfrom
tina/gemini-strip-thought-summaries

Conversation

@tinalenguyen

Copy link
Copy Markdown
Member

todo: expose in separate field in chatitem ?

@tinalenguyen
tinalenguyen requested a review from a team as a code owner July 15, 2026 03:27
devin-ai-integration[bot]

This comment was marked as resolved.

@davidzhao

Copy link
Copy Markdown
Member

exposing as an attribute sounds good. let's do that as a separate one

# Drop thought summaries: when include_thoughts is enabled Gemini streams its
# reasoning back as parts flagged part.thought=True. These must not reach
# ChoiceDelta.content, otherwise TTS would speak the model's internal reasoning.
if getattr(part, "thought", None):

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

do we need to use getattr? maybe it's an exposed attribute if we bump their sdk?

@tinalenguyen
tinalenguyen merged commit 9dc8f86 into main Jul 15, 2026
23 checks passed
@tinalenguyen
tinalenguyen deleted the tina/gemini-strip-thought-summaries branch July 15, 2026 17:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants