diff --git a/.github/scripts/snippets/README.md b/.github/scripts/snippets/README.md index 2a5337c049..6c76c0780b 100644 --- a/.github/scripts/snippets/README.md +++ b/.github/scripts/snippets/README.md @@ -76,7 +76,7 @@ provider renders sanely without a code change. Some models can be served by more than one provider. Router publishes the relationship on the schema documents themselves: a **native** document lists its -legs in `x-comfy-router-alt-providers` (`[{provider, model_id}]`), and each leg +legs in `x-comfy-router-alt-providers` (`[{provider, model_id?, limits?}]`), and each leg also has an **alias** document of its own carrying `x-comfy-router-alias-of` (the native model id) and `x-comfy-router-alias-provider` (the provider serving it). @@ -96,12 +96,28 @@ The generator reads both and organises the docs by model rather than by route: per leg with the provider's label, the leg's alias model id, and the same call on the same endpoint with `?model_provider=` added. A native model with no leg renders no section. +- A leg whose entry carries a **`limits`** object (a leg materially narrower + than its native model) gets indented sub-bullets under its row: what it + accepts (resolution, audio, duration range, aspect ratios), its price, the + inputs it rejects and with which error, and its fallback. The price comes + from `router-pricing/metronome-rates.json`, keyed on the native model id and + the provider label (matched without regard to case), current rows only + (started and not ended by the snapshot date), with credits rounded to 2 + decimals. + With no matching row the price line is omitted. The lines are indented + because `gen-router-pricing.ts` counts a page's providers from its column-0 + `- **