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

native-reasoning-sources.md

167 lines9.8 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. The reasoning tokens guide states reasoning_content as an alias of reasoning, and reasoning_details replay, for every supported reasoning model. That statement covers every chat model on the route. Evidence is the guide URL.

OpenAI

A family-guide or sampling-guide failure is a tryDocs failure. The ids that guide names — or, when the family sentence did not parse, gpt-5, gpt-5-mini, and gpt-5-nano — keep their stored reasoning or capabilities (unavailable). A GPT-5.1 failure leaves the family effort list in place with mandatory null. Other GPT-5 rows, including gpt-5-pro, keep the facts their own pages stated.

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 model's own exhaustive effort list with no off value means mandatory is true: the page names the levels and none of them turn thinking off. A shared family list still states nothing by itself. mandatory is also true when the page says the model only supports one level other than none, when cannot-disable or always-on prose says so, or when the GPT-5 family list has no none and the GPT-5.1 guide says that list's first level still spends reasoning tokens. A page that names no levels stays null. 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

These pages are Markdoc since #568; markdocTables reads their tables.

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/inference/conversations/reasoning

Checked 2026-11-19. llms.txt links the .md twin of this page, and the old /studio/conversations/reasoning.md path redirects to that twin, but the twin 404s. The HTML page is the guide.

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. A bullet that names its own levels (Supports low, medium, and high reasoning effort) is that model's list. Mistral Large 4's section says it always reasons, so mistral-large-4 and mistral-large-4-0 are mandatory. 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. A rendered HTML page is read as the same markdown shape.

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.