Skip to content

feat: add Xiaomi MiMo provider#1

Draft
AdityaVG13 wants to merge 1 commit into
mainfrom
feat/add-xiaomi-mimo-provider
Draft

feat: add Xiaomi MiMo provider#1
AdityaVG13 wants to merge 1 commit into
mainfrom
feat/add-xiaomi-mimo-provider

Conversation

@AdityaVG13
Copy link
Copy Markdown
Owner

@AdityaVG13 AdityaVG13 commented May 27, 2026

Summary

  • Adds Xiaomi MiMo as a first-class provider across config parsing, CLI forwarding, key storage, TUI provider switching, picker UI, request shaping, docs, and examples.
  • Uses Xiaomi MiMo's OpenAI-compatible endpoint defaults: https://api.xiaomimimo.com/v1 and mimo-v2.5-pro.
  • Keeps CodeWhale's static Xiaomi MiMo model list focused on current V2.5 models: mimo-v2.5-pro and mimo-v2.5.
  • Handles MiMo-specific request fields by sending max_completion_tokens and mapping reasoning control to MiMo's thinking field.
  • Documents MiMo vision through CodeWhale's existing [vision_model] / image_analyze path and uses mimo-v2.5 for image input per Xiaomi's current image-understanding docs.
  • Updates English, Chinese, and Japanese README provider examples, provider docs, config examples, and static model metadata.

Related upstream scan:

Testing

  • cargo fmt --all -- --check
  • git diff --check
  • cargo check -p codewhale-tui
  • cargo clippy -p codewhale-tui --all-targets --all-features (passes with existing unrelated warnings)
  • cargo test -p codewhale-agent xiaomi_mimo --lib
  • cargo test -p codewhale-config xiaomi_mimo --lib
  • cargo test -p codewhale-secrets xiaomi_mimo --lib
  • cargo test -p codewhale-cli build_tui_command_forwards_provider_keyring_env_vars_for_all_providers --lib
  • cargo test -p codewhale-tui xiaomi_mimo
  • cargo test -p codewhale-tui vision::tools::tests
  • cargo test -p codewhale-tui reasoning_effort_uses_xiaomi_mimo_thinking_parameter_only
  • cargo test -p codewhale-tui provider_capability_xiaomi_mimo_has_thinking_no_cache

Local hygiene checks:

  • Added-line secret/local marker scan: 0 hits after excluding placeholders
  • Dotfile/dotdir path changes: 0 changed paths
  • Public hygiene packet generated outside repo
  • public_hygiene_scan.py --repo-root . --mode review-only run; it reports inherited repo-wide baseline findings, but no credible new secret/personal/dotdir leak was found in this PR diff

Checklist

  • Updated docs or comments as needed
  • Added or updated tests where relevant
  • Verified TUI behavior manually if UI changes

Notes:

  • This is a fork-local staging PR for review before opening anything against Hmbown/CodeWhale.
  • Full cargo test --workspace --all-features previously hit existing local/upstream-sensitive failures unrelated to Xiaomi MiMo; focused provider and vision coverage is passing.

@AdityaVG13 AdityaVG13 force-pushed the feat/add-xiaomi-mimo-provider branch from f372c54 to d17f3d8 Compare May 27, 2026 02:15
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.
@AdityaVG13 AdityaVG13 force-pushed the feat/add-xiaomi-mimo-provider branch from d17f3d8 to 5a1a78e Compare May 27, 2026 03:03
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.

1 participant