Skip to content

feat(providers): complete Qwen3.8 Max support for Alibaba Token Plan #3156

Description

@MoonOld

Problem

Alibaba Token Plan has promoted Qwen3.8 to the formal model id qwen3.8-max, but Maka does not include that id in the curated Token Plan fallback list. The list is authoritative for fresh connections when model discovery is unavailable or fails.

Alibaba now documents qwen3.8-max-preview as retired. The old id still routes to qwen3.8-max temporarily, with Credits and usage attributed to the formal model, and users are explicitly advised to update their configuration. Maka should therefore expose the formal id and migrate a persisted preview selection when a live inventory refresh supplies it, rather than offering the retired alias as a new choice.

A live China Token Plan /models check confirmed the current inventory contains qwen3.8-max and not the preview id.

Core support required

  1. Put qwen3.8-max first in the curated China and global Token Plan fallback catalogs.
  2. Treat qwen3.8-max-preview as a provider-scoped compatibility alias of qwen3.8-max for stored-selection reconciliation only.
  3. Preserve the documented model contract:
    • 1M context window and 131072 maximum output;
    • vision, reasoning, structured output, and function calling;
    • reasoning choices off, low, medium, and xhigh; off maps to reasoning_effort: none.
  4. Verify exact model-id preservation, Chat reasoning replay, and a two-step Maka tool loop.

Live findings

The formal model was verified on the China Token Plan service for:

  • streamed text and low / medium / xhigh;
  • two-step Function Calling with reasoning preserved across the tool result;
  • vision input;
  • thinking disabled with zero reasoning tokens;
  • JSON structured output;
  • a 34,960-input-token context probe;
  • Responses API native code interpreter.

Remaining protocol work

The service supports Responses and native Harness tools, but Maka currently uses the OpenAI-compatible Chat wire for Alibaba Token Plan. Responses reasoning replay and provider-executed web_search, web_extractor, code_interpreter, text/image search event mappings need separate implementation and durable tests before Maka advertises them.

The dashed OpenAI-compatible provider-options warning observed during the live run is already tracked by #1430 and should not be duplicated here.

Acceptance criteria

  • Fresh China and global Token Plan connections offer qwen3.8-max without relying on /models.
  • The retired preview id is not offered, while stored preview selections reconcile to the formal id on inventory refresh.
  • Model metadata and off / low / medium / xhigh choices match the current provider contract.
  • The formal id completes a streamed, multi-step Maka function loop with reasoning replay.
  • Responses and native Harness capabilities remain explicit follow-up work until implemented and tested.

References

简体中文

Token Plan 当前正式模型 ID 是 qwen3.8-maxqwen3.8-max-preview 已结束预览并下线,只作为服务端临时兼容别名继续路由到正式版,Credits 与用量也按正式版统计。Maka 应在新连接中只提供正式 ID,并在模型目录刷新时把已有 Preview 选择迁移到正式 ID。

本 Issue 的核心范围包括中国区/国际区目录、兼容别名迁移、视觉与 Function Calling 元数据、off/low/medium/xhigh 推理档位,以及真实两步 Maka 工具循环。Responses API 和百炼原生 Harness 工具需要单独完成推理续接与 provider-executed 事件映射后才能宣称支持。

Disclosure: this issue was drafted with OpenAI Codex assistance and reviewed and approved by the human contributor.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions