Skip to content

Add explicit truncation detection#141

Merged
jnu merged 2 commits into
mainfrom
fix-trunc
May 14, 2026
Merged

Add explicit truncation detection#141
jnu merged 2 commits into
mainfrom
fix-trunc

Conversation

@jnu
Copy link
Copy Markdown
Contributor

@jnu jnu commented May 14, 2026

Our token limit determination broke with the upgrade to the Responses API in 6ed38ad. The Responses API gives truncation in a stop_reason which we can detect and act accordingly.

This has not affected any production deployments, as the Responses API refactor is still in pre-release in blind-charging-api.

@jnu jnu merged commit 3e48182 into main May 14, 2026
5 checks passed
@jnu jnu deleted the fix-trunc branch May 14, 2026 15:08
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