Skip to content

feat(providers): add Xiaomi and Z.AI direct APIs - #944

Merged
likun666661 merged 1 commit into
apache:mainfrom
zhiiw:codex/add-xiaomi-zai-providers
Jul 14, 2026
Merged

likun666661 merged 1 commit into
apache:mainfrom
zhiiw:codex/add-xiaomi-zai-providers

Conversation

@zhiiw

@zhiiw zhiiw commented Jul 14, 2026

Copy link
Copy Markdown
Contributor

Summary

  • add Xiaomi MiMo as the stable xiaomi provider using the models.dev API base and exact mimo-v2.5 model ID
  • add the Z.AI direct API as the stable zai provider using glm-5.2, separate from the existing Z.AI Coding Plan connection
  • support provider-scoped Desktop, CLI, and headless credentials
  • add deterministic model-discovery and two-stage tool-calling conformance coverage
  • add byte-identical Xiaomi MiMo and Z.AI brand assets with provenance, license inventory, and hash checks

Why

Xiaomi MiMo and the Z.AI direct API are claimed provider gaps in #860. Both providers use the existing OpenAI-compatible runtime adapter, Bearer authentication, protocol model discovery, and the same tool-call loop, so no provider-specific runtime override is needed. Z.AI direct API remains a distinct provider from zai-coding-plan because the products use different endpoints and credentials.

Validation

  • npm run typecheck
  • npm run test:scripts
  • npm --workspace @maka/core test
  • runtime provider conformance tests
  • CLI and headless credential/model-resolution tests
  • npm --workspace @maka/desktop run e2e -- --grep "adds (Xiaomi|Z\.AI)" --workers=1
  • npm run check:stale
  • git diff --check

Credentialed live smoke is intentionally left for a maintainer with valid Xiaomi MiMo and Z.AI keys; secrets and unsanitized response payloads must not be recorded.

Refs #860

@zhiiw
zhiiw force-pushed the codex/add-xiaomi-zai-providers branch from 11eeed7 to fab6354 Compare July 14, 2026 03:07
@zhiiw
zhiiw marked this pull request as ready for review July 14, 2026 03:33
@likun666661
likun666661 merged commit fb469d9 into apache:main Jul 14, 2026
3 checks passed
@zhiiw
zhiiw deleted the codex/add-xiaomi-zai-providers branch July 14, 2026 04:36
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants