Text token count no longer goes negative
@ai-sdk/openai-compatible@2.0.66
1 fixThis release1 fixBug fixesAI-tallied from the release notes
From the original release noteView original ↗
Patch Changes
- de18066: fix(provider/openai-compatible): clamp
outputTokens.textat 0 when a provider reportscompletion_tokens_details.reasoning_tokensgreater thancompletion_tokens(observed with Baseten serving reasoning models that hit the length stop mid-reasoning). The text share of completion tokens can never be negative;totalandreasoningremain as reported by the provider. - Updated dependencies [2171d15]
Fetched August 11, 2026


