Skip to content
Source
Sign inSign up
TanStack/schemas

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

Mergedtombeckenhammerged 1 commit intomain from695-xiaomi-api-reference-pages-renamed-to-post-md-all-five-old-umerged by tombeckenham View on GitHub

tombeckenhamcommented

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.
    1. tombeckenham linked this to fix #695

    2. 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 nameStatusExplanation
      Description CheckPassedCheck skipped - CodeRabbit’s high-level summary is enabled.
      Title checkPassedThe 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 checkPassedIssue #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 checkPassedAll 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 0f713db74d22e1bc1646e0f6423460ebe3c6d4dc and 6b54b479024376e7536623d8d921a773268b515e.

      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.

    3. tombeckenham merged this7a05ccb

    4. tombeckenham closed this

Sign in to join this conversation.