Skip to content

Point Xiaomi API docs at the renamed -post.md pages - #696

Merged
tombeckenham merged 1 commit into
mainfrom
695-xiaomi-api-reference-pages-renamed-to-post-md-all-five-old-u
Nov 19, 2026
Merged

tombeckenham merged 1 commit into
mainfrom
695-xiaomi-api-reference-pages-renamed-to-post-md-all-five-old-u

Conversation

@tombeckenham

@tombeckenham tombeckenham commented Nov 19, 2026 •

Copy link
Copy Markdown
Collaborator

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.

The five API reference URLs now 404. llms.txt lists the same pages as
*-post.md. Audio pages are unchanged. Chat, responses, and Anthropic
pages drop mimo-v2.5 from the model lists; the bundled schema hashes
match the schemas already stored for Xiaomi.
@coderabbitai

coderabbitai Bot commented Nov 19, 2026 •

Copy link
Copy Markdown

Explain Change →

No actionable comments were generated in the recent review.

Walkthrough

The Xiaomi API reference URLs now use the -post.md paths. The README and API fixtures were updated, and the malformed-address test now uses the renamed OpenAI fixture.

Changes: Xiaomi API documentation

Layer / File(s) Summary
Update API reference paths and fixtures
src/server/providers/xiaomi-docs.ts, src/server/providers/fixtures/xiaomi/*, src/server/providers/adapters/xiaomi.test.ts
The five configured API reference paths and README source paths now use the -post.md names. The OpenAI, Responses, and Anthropic fixture documentation removes mimo-v2.5 models 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 6b54b

This 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: Passed 4

Check name Status Explanation
Description Check Passed Check skipped - CodeRabbit’s high-level summary is enabled.
Title check Passed 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 cor…
Linked Issues check Passed Issue #695 requires these coding changes: (1) point the five API reference URLs to the *-post.md paths; (2) refresh fixtures and fixtures/xiaomi/README.md; (3) add no fallback to the old paths. At…
Out of Scope Changes check Passed All changed files relate to #695. The changes are: the URL constant in xiaomi-docs.ts; the test input path in xiaomi.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 #695 requires these coding changes: (1) point the five API reference URLs to the *-post.md paths; (2) refresh fixtures and fixtures/xiaomi/README.md; (3) add no fallback to the old paths. At head, XIAOMI_SCHEMA_URLS in src/server/providers/xiaomi-docs.ts lists openai-api-post.md, responses-post.md, anthropic-api-post.md, Speech-Recognition-post.md, and tts-post.md. The old URLs are removed, and no fallback logic was added in the diff. The fixture directory at head contains the five -post fixture files plus the README, and the README paths are updated per the raw summary. The test file now reads openai-api-post.md, and the malformed-tree /address/ error expectation is unchanged. Fixture content was not checked against live pages. The pnpm run rederive -- xiaomi result (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 in xiaomi-docs.ts; the test input path in xiaomi.test.ts; the fixture README; and the five refreshed fixture files. The fixture content edits remove mimo-v2.5 and mimo-v2.5-pro from 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)

  • Commit to this branch
  • Create a new PR
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

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

Recent review info

Run configuration

  • Source mode: Auto
  • Repository: Unavailable
  • Branch: Unavailable
  • File: No configuration file from this repository applied
  • Commit: Unavailable
  • Layers: defaults
  • Review profile: CHILL
  • Plan: Advanced
  • Run ID: 0d085241-72d7-4dc2-bd9d-19b550508fe7
Commits

Reviewing files that changed from the base of the PR and between 0f713db and 6b54b47.

Files selected for processing: 8

  • src/server/providers/adapters/xiaomi.test.ts
  • src/server/providers/fixtures/xiaomi/README.md
  • src/server/providers/fixtures/xiaomi/Speech-Recognition-post.md.txt
  • src/server/providers/fixtures/xiaomi/anthropic-api-post.md.txt
  • src/server/providers/fixtures/xiaomi/openai-api-post.md.txt
  • src/server/providers/fixtures/xiaomi/responses-post.md.txt
  • src/server/providers/fixtures/xiaomi/tts-post.md.txt
  • src/server/providers/xiaomi-docs.ts

Included review availability: This review used your included allowance. Your plan provides up to 1 included review per hour; 0 remain after this review.

@tombeckenham
tombeckenham merged commit 7a05ccb into main Nov 19, 2026
5 checks passed
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.

xiaomi: API reference pages renamed to *-post.md, all five old URLs 404

1 participant