feat: add Xiaomi MiMo provider#1
Draft
AdityaVG13 wants to merge 1 commit into
Draft
Conversation
f372c54 to
d17f3d8
Compare
Adds native xiaomi-mimo provider configuration, auth/env aliases, model registry entries, TUI request handling, tests, and docs. Keeps credentials in existing provider-scoped config/env/keyring paths and uses placeholders only in docs.
d17f3d8 to
5a1a78e
Compare
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
https://api.xiaomimimo.com/v1andmimo-v2.5-pro.mimo-v2.5-proandmimo-v2.5.max_completion_tokensand mapping reasoning control to MiMo'sthinkingfield.[vision_model]/image_analyzepath and usesmimo-v2.5for image input per Xiaomi's current image-understanding docs.Related upstream scan:
docs/provider-registry-2201-20260526,fix/1656-local-http-provider.Testing
cargo fmt --all -- --checkgit diff --checkcargo check -p codewhale-tuicargo clippy -p codewhale-tui --all-targets --all-features(passes with existing unrelated warnings)cargo test -p codewhale-agent xiaomi_mimo --libcargo test -p codewhale-config xiaomi_mimo --libcargo test -p codewhale-secrets xiaomi_mimo --libcargo test -p codewhale-cli build_tui_command_forwards_provider_keyring_env_vars_for_all_providers --libcargo test -p codewhale-tui xiaomi_mimocargo test -p codewhale-tui vision::tools::testscargo test -p codewhale-tui reasoning_effort_uses_xiaomi_mimo_thinking_parameter_onlycargo test -p codewhale-tui provider_capability_xiaomi_mimo_has_thinking_no_cacheLocal hygiene checks:
public_hygiene_scan.py --repo-root . --mode review-onlyrun; it reports inherited repo-wide baseline findings, but no credible new secret/personal/dotdir leak was found in this PR diffChecklist
Notes:
Hmbown/CodeWhale.cargo test --workspace --all-featurespreviously hit existing local/upstream-sensitive failures unrelated to Xiaomi MiMo; focused provider and vision coverage is passing.