Skip to content

@ai-sdk/alibaba@1.0.80

Latest

Choose a tag to compare

@github-actions github-actions released this 03 Dec 22:25
· 3749 commits to main since this release
1b3522c

Patch Changes

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

    • New reasoningEffort provider option, sent as reasoning_effort as given, so models such as qwen4-max can use named effort levels.
    • 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. The usage schema keeps undeclared fields, so the cache_creation split of cache writes by TTL and cache_type reach usage.raw; cache_creation 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.
    • Adds the qwen4-max model ID and capability lists: JSON Schema structured output and preserveThinking on by default, as Alibaba documents for the model.