Repository navigation
feat(providers): add Xiaomi and Z.AI direct APIs - #944
Merged
Merged
Conversation
zhiiw
force-pushed
the
codex/add-xiaomi-zai-providers
branch
from
July 14, 2026 03:07
11eeed7 to
fab6354
Compare
zhiiw
marked this pull request as ready for review
July 14, 2026 03:33
This was referenced Jul 14, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
xiaomiprovider using the models.dev API base and exactmimo-v2.5model IDzaiprovider usingglm-5.2, separate from the existing Z.AI Coding Plan connectionWhy
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-planbecause the products use different endpoints and credentials.Validation
npm run typechecknpm run test:scriptsnpm --workspace @maka/core testnpm --workspace @maka/desktop run e2e -- --grep "adds (Xiaomi|Z\.AI)" --workers=1npm run check:stalegit diff --checkCredentialed 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