github vercel/ai @ai-sdk/alibaba@2.0.99

latest releases: @ai-sdk/alibaba@1.0.80, @ai-sdk/xai@5.0.57, @ai-sdk/google-vertex@5.0.154...
45 minutes ago

Patch Changes

  • a9672c3: feat(alibaba): reasoning effort, prompt cache TTL, video input, and qwen4-max

    • The top-level reasoning option is sent as reasoning_effort instead of enable_thinking and thinking_budget, so it works on newer models such as qwen4-max, Qwen 3.8, and the DeepSeek, Kimi, and GLM models on Model Studio, some of which ignore or reject thinking_budget. Models with known effort levels map an unsupported value to the nearest accepted one with a warning: Qwen 3.5 to 3.7 (including dated snapshots) map max to xhigh, and glm-5.3 accepts only low, high, and max. Older Qwen models that ignore reasoning_effort (such as qwen-plus, qwen-flash, qwen3-*, and qwq-*) still receive a thinking budget.
    • New reasoningEffort provider option, sent as reasoning_effort as given.
    • New promptCacheOptions provider option, sent as prompt_cache_options for automatic caching and a 5-minute or 1-hour cache TTL. cacheControl breakpoints also accept ttl, and the cache_creation split of cache writes by TTL is declared on AlibabaUsage.
    • Video file parts (video/*) are sent as Alibaba video_url content, from a URL or as a base64 data URL. Video URLs are passed to Alibaba instead of being downloaded. Previously every non-image file part threw UnsupportedFunctionalityError.
    • qwen4-max is added to the model catalog with JSON Schema structured output and preserveThinking on by default, as Alibaba documents for the model.

Don't miss a new ai release

NewReleases is sending notifications on new releases.