chore: sync main with Zoo-Code-Org upstream (2026-05-19)#7
Merged
Conversation
* refactor(core): extract monolith helpers Refs #8 * fix: address PR 27 review feedback * fix: defensively copy pending edit images * fix: preserve reasoning summary field * test: cover api conversation edge cases * docs: clarify reasoning summary fallback
* FEATURE: Add Xiaomi MiMo as a first-class API provider - New MimoHandler with reasoning_content passthrough for multi-turn tool calling - Custom message conversion preserving MiMo's interleaved thinking chain - Strip OpenAI-specific extensions (strict, additionalProperties) from tool schemas - Models: mimo-v2.5-pro, mimo-v2.5, mimo-v2-flash with official pricing - UI settings with 4 base URL options (3 Token Plan regions + Pay-as-you-go) - Full wiring: types, schema, model picker, i18n, provider config * Update openrouter.ts * Preserve Mimo reasoning fields & switch AMS endpoint Update Mimo provider config and UI to use the token-plan-ams endpoint instead of the old FRA host. Allow Mimo assistant messages with string content to include and preserve a reasoning_content field when present. Also avoid attaching mapped reasoning_details when converting messages for Mimo models (skip mapping if modelId matches /mimo/i) to preserve the provider's original shape. Types, API handler, transform logic, and the settings UI were updated to keep Mimo-specific reasoning data intact and align the endpoint selection. * Add MiMo i18n translations to all 17 locales and unit tests Also hide the "not sure which model" hint for the MiMo provider since it's a static model list, not fetched dynamically. * Address CodeRabbit review feedback Fix Japanese translation consistency, strengthen base URL tests to verify actual values, and add ModelPicker test for MiMo hint hiding. * Expand MiMo test coverage and remove dev/null files from PR Added tests for tool_call_partial streaming, cache token usage, API error handling, message conversion pipeline, empty delta chunks, and tools parameter presence/absence. Removed dev/null/ hook files that were accidentally included in the branch. * Use data-testid for automaticFetch hint instead of i18n key matching * Remove mimo-v2-flash model that no longer supports thinking mode * Replace mimo-v2-flash with mimo-v2-pro model * Drop mimo-v2-flash since it doesn't support thinking mode * Address maintainer feedback: revert unrelated changes, add i18n, fix stream_options * Update doc links to use puter developer URLs * Fix i18n: JP spacing, FR translations, add multimodal support to message conversion * Add docstrings and document mimo-v2-flash exclusion rationale * Address edelauna review: sanitize tool IDs, use handleProviderError, fix prompt cache, clean up comments * Fold text into last tool message to preserve reasoning continuity * Refactor: use shared convertToR1Format, processToolCalls, cleanup unused imports/props * Remove dead temperature param, add 2-tier pricing, clarify strict stripping * Remove strict/additionalProperties stripping — proxy no longer rejects it * Use longContextPricing instead of tiers for cost calculation * Remove stale convertToolsForOpenAI tests (stripping removed)
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
Syncs
proyectoauraorg/Zoo-Codemain branch with the latest upstream changes fromZoo-Code-Org/Zoo-Code.Changes from upstream
c2f77db10feat: Add Xiaomi MiMo as a first-class API provider (Upstream/feature/Add Xiaomi MiMo as a first-class API provider Zoo-Code-Org/Zoo-Code#81)72456803fRefactor core monolith helpers (Refactor core monolith helpers Zoo-Code-Org/Zoo-Code#27)Notes