Skip to content
Source
Sign inSign up
TanStack/schemas
Open History to see the last commit

native-reasoning-sources.md

129 lines7.4 KB

Native reasoning and replay evidence (#269 / #270)

Checked 2026-10-09. Captured provider-owned fixtures are regression inputs only; production fetches these sources during sync. No models.dev source or static model registry is introduced. Source failures throw in the new source loaders, and no provider-wide source-silent exemptions are added.

OpenRouter

https://openrouter.ai/api/v1/models

The requested Seed 2.1 Turbo and Laguna S 2.1 examples already publish the reasoning supported parameter, but publish no effort/budget mode. Their native reasoning metadata is only a mandatory flag. Preserve their capability independent of whether a valid reasoning configuration can be constructed. A reasoning metadata object also contributes this capability; it never fabricates a mode. Replay is not inferred from upstream models or output fields. OpenRouter's own reasoning-details instructions use a different preserved structure, so this patch does not stamp reasoning_content replay on its rows.

OpenAI

Parse only normative prose; fenced examples do not establish effort allowlists. Individual model-page fetch and parse failures now error instead of returning unknown facts. A model's own page takes precedence over another alias page's snapshot reference. Realtime pages explicitly declaring configurable reasoning effort retain effort mode with unknown levels and mandatory status. A level list without none does not prove mandatory thinking; only explicit native cannot-disable/always-on prose establishes true. Reasoning-token capability without a control declaration does not justify an invented effort mode or mandatory=true. Such configurations remain null while capability remains independently sourced. Pages that do not name effort levels are not covered by a blanket effort exemption.

Gemini

A native model-page capability or explicit level declaration does not depend on the Models API including its optional thinking flag. An explicit API thinking=false is preserved and suppresses docs-derived controls/capability; absence and false remain distinct. Version identities already parsed from native pages are retained; no numeric/latest alias heuristic is added. The public index and current linked version tables do not bind gemini-flash-latest to a specific current family, and do not list gemma-4-31b-it. Their controls remain unknown without a native binding. Read-only Models.get using an already configured key confirms both models explicitly return thinking=true, so their capability is already sourced by the listing adapter. Neither native record supplies a baseModelId/alias target or effort controls. No page absence is treated as retirement.

These metadata requests used authentication headers, with no credential in the source URL, fixture or output; they make no inference calls.

Mistral

https://docs.mistral.ai/studio/conversations/reasoning.md

The guide scopes adjustable reasoning to named model IDs, followed by a normative parameter-value section describing high and none. These values apply to that scope, while its explicit zai-glm-5-3 low/high/max list overrides them. Code assignments alone do not establish the values. The existing adapter retains native API alias relationships when copying these facts; no sibling relationships are invented. Models outside the guide's scope do not inherit its controls. Fenced examples cannot expand the normative values. The GLM always-thinking note explicitly establishes mandatory=true; a value list alone leaves it null.

Dashscope

https://www.alibabacloud.com/help/en/model-studio/deep-thinking.md

The Supported Models section explicitly names qwen3.7-max, qwen3.5-flash and their published snapshots as hybrid thinking, and qwq-plus as thinking-only. The parser uses this section, excluding samples and linked URL paths. Hybrid rows get a sourced toggle mode; thinking-only rows get capability without inventing a control mode. The source says control parameters vary by model, so the adapter does not stamp a generic enable_thinking body on every row.

The Pass Thinking Process section lists preserve_thinking-supported IDs and says the client supplies prior assistant reasoning_content. Replay=true is scoped to those explicitly named IDs with a compatible request map. This is preserved thinking support: the source explicitly says omitted reasoning_content does not cause an error. No unconditional second-turn failure is asserted. Models absent from this scope remain unknown. The shared compatibility parameter table is not a complete model capability allowlist; omission must not manufacture false flags.

Together

A reasoning capability does not require a parsed control mode. For newly sourced rows, unknown wire controls remain null instead of invoking generic shared thinking/reasoning_effort defaults. The current native docs do not provide a corresponding DeepSeek V4.1 Flash quickstart, so this sibling remains unknown. Preserved-thinking and tool-call conditions remain documented; this patch does not claim every issue example is now filled or source-silent.

Replay additions preserve whole-request-map provenance and add only field-specific requestMapFields.replayReasoningContent evidence. Existing populated request fields and boolean capability-map positives/negatives are retained. Contradictory explicit reasoning/replay rejections throw rather than being overwritten. OpenRouter malformed metadata/parameter lists and missing or empty catalogs also throw.