Patch Changes
-
a9672c3: feat(alibaba): reasoning effort, prompt cache TTL, video input, and
qwen4-max- The top-level
reasoningoption is sent asreasoning_effortinstead ofenable_thinkingandthinking_budget, so it works on newer models such asqwen4-max, Qwen 3.8, and the DeepSeek, Kimi, and GLM models on Model Studio, some of which ignore or rejectthinking_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) mapmaxtoxhigh, andglm-5.3accepts onlylow,high, andmax. Older Qwen models that ignorereasoning_effort(such asqwen-plus,qwen-flash,qwen3-*, andqwq-*) still receive a thinking budget. - New
reasoningEffortprovider option, sent asreasoning_effortas given. - New
promptCacheOptionsprovider option, sent asprompt_cache_optionsfor automatic caching and a 5-minute or 1-hour cache TTL.cacheControlbreakpoints also acceptttl, and thecache_creationsplit of cache writes by TTL is declared onAlibabaUsage. - Video file parts (
video/*) are sent as Alibabavideo_urlcontent, 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 threwUnsupportedFunctionalityError. qwen4-maxis added to the model catalog with JSON Schema structured output andpreserveThinkingon by default, as Alibaba documents for the model.
- The top-level