Output text tokens clamped at zero; never negative
@ai-sdk/openai-compatible@3.0.28
1 fixThis release1 fixBug fixesAI-tallied from the release notes
Patch Changes
- 83e6510: 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.
Fetched August 9, 2026
