releases.sh

Output text tokens clamped at zero; never negative

@ai-sdk/openai-compatible@3.0.28

August 9, 2026AI SDKView original ↗
1 fixThis release1 fixBug fixesAI-tallied from the release notes

Patch Changes

  • 83e6510: fix(provider/openai-compatible): clamp outputTokens.text at 0 when a provider reports completion_tokens_details.reasoning_tokens greater than completion_tokens (observed with Baseten serving reasoning models that hit the length stop mid-reasoning). The text share of completion tokens can never be negative; total and reasoning remain as reported by the provider.

Fetched August 9, 2026

Output text tokens clamped at zero; never negative… — releases.sh