Fixes #695.
Xiaomi renamed the five API reference pages to *-post.md. The old paths 404, so every models poll and the next spec sync fail. XIAOMI_SCHEMA_URLS now points at the new paths. There is no fallback to the old URLs.
Fixtures are the live pages fetched on 2026-11-20. Speech recognition and TTS are byte-identical. Chat, Responses, and Anthropic pages drop mimo-v2.5 and mimo-v2.5-pro from the model lists.
pnpm run rederive -- xiaomi (run with Node's type transform, because plain node does not expand import.meta.glob) matches the six schema content hashes already stored for Xiaomi. The next sync will record the new source URL and source hash. The bundled schemas do not change.
Tests: pnpm exec vitest run src/server/providers/adapters/xiaomi.test.ts (10 passed).
Summary by CodeRabbit#
- Documentation
- Updated Xiaomi API compatibility details to list only the three MiMo v2.6 models; MiMo v2.5 and v2.5 Pro are no longer listed for the documented capabilities.
- Updated the referenced API documentation pages and clarified their fetch dates.
No actionable comments were generated in the recent review.
Walkthrough
The Xiaomi API reference URLs now use the
-post.mdpaths. The README and API fixtures were updated, and the malformed-address test now uses the renamed OpenAI fixture.Changes: Xiaomi API documentation
src/server/providers/xiaomi-docs.ts,src/server/providers/fixtures/xiaomi/*,src/server/providers/adapters/xiaomi.test.ts-post.mdnames. The OpenAI, Responses, and Anthropic fixture documentation removesmimo-v2.5models from the described capabilities and parameter behavior. The malformed-address test uses the renamed OpenAI fixture.Estimated code review effort: 2 (Simple) | ~10 minutes
Change: Bug fix · Severity of issue fixed: Medium
Merge Risk:
Minimal · up to
6b54bThis updates Xiaomi API reference URLs to the renamed pages and refreshes the matching fixtures. No concrete merge-blocking risk was identified, and the change is low risk to merge.
Pre-merge checks:
4
#695requires these coding changes: (1) point the five API reference URLs to the*-post.mdpaths; (2) refresh fixtures andfixtures/xiaomi/README.md; (3) add no fallback to the old paths. At…#695. The changes are: the URL constant inxiaomi-docs.ts; the test input path inxiaomi.test.ts; the fixture README; and the five refreshed fixture files. The fixture …Full details: Title check
Explanation
The title states the main change: XIAOMI_SCHEMA_URLS and the related fixtures now point at Xiaomi's renamed -post.md API reference pages. The raw summary and PR objectives both confirm this is the core change. The title is short, specific, and accurate.
Full details: Linked Issues check
Explanation
Issue
#695requires these coding changes: (1) point the five API reference URLs to the*-post.mdpaths; (2) refresh fixtures andfixtures/xiaomi/README.md; (3) add no fallback to the old paths. At head,XIAOMI_SCHEMA_URLSinsrc/server/providers/xiaomi-docs.tslistsopenai-api-post.md,responses-post.md,anthropic-api-post.md,Speech-Recognition-post.md, andtts-post.md. The old URLs are removed, and no fallback logic was added in the diff. The fixture directory at head contains the five-postfixture files plus the README, and the README paths are updated per the raw summary. The test file now readsopenai-api-post.md, and the malformed-tree/address/error expectation is unchanged. Fixture content was not checked against live pages. Thepnpm run rederive -- xiaomiresult (six matching stored hashes, no bundled-schema change) is author-reported and was not independently run, so that check rests on the PR description. The coding requirements are met by the reviewed code. [#695]Full details: Out of Scope Changes check
Explanation
All changed files relate to
#695. The changes are: the URL constant inxiaomi-docs.ts; the test input path inxiaomi.test.ts; the fixture README; and the five refreshed fixture files. The fixture content edits removemimo-v2.5andmimo-v2.5-profrom model lists and update the token-default text. The issue requires refreshing fixtures from live pages, and the PR states these edits come from the 2026-11-20 fetch. The README date split is a documentation change that supports the fixture refresh. No unrelated code changes appear in the reviewed file list.Finishing Touches
Generate unit tests (beta)
Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.
Share
0d085241-72d7-4dc2-bd9d-19b550508fe7Reviewing files that changed from the base of the PR and between 0f713db74d22e1bc1646e0f6423460ebe3c6d4dc and 6b54b479024376e7536623d8d921a773268b515e.
src/server/providers/adapters/xiaomi.test.tssrc/server/providers/fixtures/xiaomi/README.mdsrc/server/providers/fixtures/xiaomi/Speech-Recognition-post.md.txtsrc/server/providers/fixtures/xiaomi/anthropic-api-post.md.txtsrc/server/providers/fixtures/xiaomi/openai-api-post.md.txtsrc/server/providers/fixtures/xiaomi/responses-post.md.txtsrc/server/providers/fixtures/xiaomi/tts-post.md.txtsrc/server/providers/xiaomi-docs.tsIncluded review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.