Part of #323 (item 1).
meta/muse-spark-open's own catalog file, https://raw.githubusercontent.com/cloudflare/cloudflare-docs/production/src/content/catalog-models/meta-muse-spark-open.json, lists its levels in metadata: Reasoning Effort: low, medium, high, xhigh (default). Its schema's reasoning_effort is the shared untyped string ("accepted values are model-dependent"). This PR stores {mode: 'effort', mandatory: null, efforts: [low, medium, high, xhigh]} with wire reasoning_effort, from metadata.Reasoning Effort. It fails closed: an unreadable list, or no reasoning_effort field in the schema, throws.
mandatory stays null. The list has no none, and #291 decided that a level list does not set mandatory on this gateway.
Item 4 (Claude 4.6+ adaptive on this gateway): not changed, on purpose#
The Claude catalog files (for example anthropic-claude-opus-4.7.json) give only the metadata flag Adaptive Thinking: Yes and a schema with no thinking or output_config. A catalog flag alone is not a request field (ModelReasoning rule; existing test parseCatalogModel(FABLE).reasoning is undefined), so these rows stay null and on the ledger. Only claude-opus-5.5 publishes thinking.type: adaptive in its schema, and that row is already adaptive. Nothing is copied from the native Anthropic rows.
Closes #323. The per-item outcome is in the issue comment; the remaining sourced gaps are in #432.
Deploying with
Cloudflare Workers#
The latest updates on your project. Learn more about integrating Git with Workers.
View logs