Skip to content

fix: safely extract text in summarize_history#204

Open
loading2332 wants to merge 1 commit intoshareAI-lab:mainfrom
loading2332:fix/s06-compact-thinking-block
Open

fix: safely extract text in summarize_history#204
loading2332 wants to merge 1 commit intoshareAI-lab:mainfrom
loading2332:fix/s06-compact-thinking-block

Conversation

@loading2332
Copy link
Copy Markdown

Previously, the code directly read response.content[0].text, which causes an AttributeError when models return a ThinkingBlock first. Fixed by reusing the extract_text utility.

image

Previously, the code directly read response.content[0].text, which causes an AttributeError when models return a ThinkingBlock first. Fixed by reusing the extract_text utility.
@vercel
Copy link
Copy Markdown

vercel bot commented Apr 10, 2026

@loading2332 is attempting to deploy a commit to the crazyboym's projects Team on Vercel.

A member of the Team first needs to authorize it.

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.

1 participant