Skip to content

Commit e75308e

Browse files
committed
docs(model): point MODEL_OUTPUT_LIMITS edits at the generator template
1 parent dd060d5 commit e75308e

2 files changed

Lines changed: 18 additions & 10 deletions

File tree

‎scripts/sync-model-limits.mjs‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -364,9 +364,11 @@ export function generate({ contextMd, pricingMd, date = new Date().toISOString()
364364
* Synced: ${date}
365365
* Regenerate: \`npm run sync:model-limits\`
366366
*
367-
* Only MODEL_CONTEXT_LIMITS and MODEL_COST are generated. MODEL_OUTPUT_LIMITS
368-
* further down is hand-maintained, because Cursor's docs have no output-token
369-
* column to generate it from.
367+
* Only MODEL_CONTEXT_LIMITS and MODEL_COST are derived from the docs.
368+
* MODEL_OUTPUT_LIMITS further down is hand-maintained, because Cursor's docs
369+
* publish no output-token column — but it is still emitted from this file's
370+
* template, so edit it in \`scripts/sync-model-limits.mjs\`, not here. An edit
371+
* made here is reverted by the next sync.
370372
*
371373
* Pricing is read from the structured Input / Cache write / Cache read /
372374
* Output columns only. The \`Notes\` cell is deliberately NOT parsed, even
@@ -446,8 +448,10 @@ export function resolveCost(modelId: string): {
446448
}
447449
448450
/**
449-
* NOT GENERATED — hand-maintained. Cursor's docs publish no output-token
450-
* column, so there is nothing to generate these from.
451+
* NOT DERIVED FROM THE DOCS — hand-maintained in the template inside
452+
* \`scripts/sync-model-limits.mjs\`. Cursor's docs publish no output-token
453+
* column, so there is nothing to generate these from. Editing this map here
454+
* has no lasting effect; the next sync reverts it.
451455
*
452456
* Per-model output token limits, keyed by model id prefix. The Cursor SDK
453457
* doesn't expose output limits, so these are best-known values. 32K default

‎src/model-limits.ts‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -8,9 +8,11 @@
88
* Synced: 2026-08-03
99
* Regenerate: `npm run sync:model-limits`
1010
*
11-
* Only MODEL_CONTEXT_LIMITS and MODEL_COST are generated. MODEL_OUTPUT_LIMITS
12-
* further down is hand-maintained, because Cursor's docs have no output-token
13-
* column to generate it from.
11+
* Only MODEL_CONTEXT_LIMITS and MODEL_COST are derived from the docs.
12+
* MODEL_OUTPUT_LIMITS further down is hand-maintained, because Cursor's docs
13+
* publish no output-token column — but it is still emitted from this file's
14+
* template, so edit it in `scripts/sync-model-limits.mjs`, not here. An edit
15+
* made here is reverted by the next sync.
1416
*
1517
* Pricing is read from the structured Input / Cache write / Cache read /
1618
* Output columns only. The `Notes` cell is deliberately NOT parsed, even
@@ -154,8 +156,10 @@ export function resolveCost(modelId: string): {
154156
}
155157

156158
/**
157-
* NOT GENERATED — hand-maintained. Cursor's docs publish no output-token
158-
* column, so there is nothing to generate these from.
159+
* NOT DERIVED FROM THE DOCS — hand-maintained in the template inside
160+
* `scripts/sync-model-limits.mjs`. Cursor's docs publish no output-token
161+
* column, so there is nothing to generate these from. Editing this map here
162+
* has no lasting effect; the next sync reverts it.
159163
*
160164
* Per-model output token limits, keyed by model id prefix. The Cursor SDK
161165
* doesn't expose output limits, so these are best-known values. 32K default

0 commit comments

Comments
 (0)