Skip to content

@ai-sdk/openai-compatible@3.0.28

Choose a tag to compare

@github-actions github-actions released this 09 Aug 18:02
74abcdf

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.