Open History to see the last commit
1# Native reasoning and replay evidence (#269 / #270)
2
3Checked 2026-10-09. Captured provider-owned fixtures are regression inputs only;
4production fetches these sources during sync. No models.dev source or static model
5registry is introduced. Source failures throw in the new source loaders, and no
6provider-wide source-silent exemptions are added.
7
8## OpenRouter
9
10https://openrouter.ai/api/v1/models
11
12The requested Seed 2.1 Turbo and Laguna S 2.1 examples already publish the
13`reasoning` supported parameter, but publish no effort/budget mode. Their native
14reasoning metadata is only a mandatory flag. Preserve their capability independent
15of whether a valid reasoning configuration can be constructed. A reasoning
16metadata object also contributes this capability; it never fabricates a mode.
17Replay is not inferred from upstream models or output fields. The reasoning
18tokens guide states `reasoning_content` as an alias of `reasoning`, and
19`reasoning_details` replay, for every supported reasoning model. That
20statement covers every chat model on the route. Evidence is the guide URL.
21
22## OpenAI
23
24- https://developers.openai.com/api/docs/models/gpt-6.1-sol.md — multiline list
25 including max; the following sentence rejects none/minimal.
26- https://developers.openai.com/api/docs/models/gpt-5.2-codex.md — supported effort
27 list precedes the words reasoning effort settings.
28- https://developers.openai.com/api/docs/models/gpt-oss-120b.md — parenthesized
29 configurable reasoning effort list.
30- https://developers.openai.com/api/docs/models/gpt-6-luna.md — explicit none
31 support makes reasoning optional.
32- https://developers.openai.com/api/docs/models/gpt-5-pro.md — "defaults to (and
33 only supports) `reasoning.effort: high`": the one accepted level is not off, so
34 mandatory is true.
35- https://developers.openai.com/api/docs/guides/latest-model/gpt-5.md — the GPT-5
36 family ids and their effort list, for gpt-5-mini and gpt-5-nano, whose pages
37 state no levels.
38- https://developers.openai.com/api/docs/guides/latest-model/gpt-5.1.md — `none` is
39 new in GPT-5.1, and GPT-5's `minimal` still uses reasoning tokens. With the
40 family list above (lowest level `minimal`, no `none`), this states the family
41 cannot turn reasoning off: mandatory is true.
42- https://developers.openai.com/api/docs/guides/latest-model/gpt-5.2.md — requests
43 to the named older GPT-5 ids that carry `temperature` or `top_p` raise an error:
44 both flags are `false` on those rows.
45
46A family-guide or sampling-guide failure is a `tryDocs` failure. The ids that
47guide names — or, when the family sentence did not parse, `gpt-5`, `gpt-5-mini`,
48and `gpt-5-nano` — keep their stored reasoning or capabilities (`unavailable`).
49A GPT-5.1 failure leaves the family effort list in place with `mandatory` null.
50Other GPT-5 rows, including `gpt-5-pro`, keep the facts their own pages stated.
51
52Parse only normative prose; fenced examples do not establish effort allowlists.
53Individual model-page fetch and parse failures now error instead of returning
54unknown facts. A model's own page takes precedence over another alias page's
55snapshot reference. Realtime pages explicitly declaring configurable reasoning
56effort retain effort mode with unknown levels and mandatory status.
57A model's own exhaustive effort list with no off value means `mandatory` is
58true: the page names the levels and none of them turn thinking off. A shared
59family list still states nothing by itself. `mandatory` is also true when the
60page says the model only supports one level other than `none`, when
61cannot-disable or always-on prose says so, or when the GPT-5 family list has
62no `none` and the GPT-5.1 guide says that list's first level still spends
63reasoning tokens. A page that names no levels stays null. Reasoning-token
64capability without a control declaration does not justify an invented effort
65mode or mandatory=true. Such configurations remain null while capability
66remains independently sourced. Pages that do not name effort levels are not
67covered by a blanket effort exemption.
68
69## Gemini
70
71- https://aistudio.google.com/docs/models/gemini-3.8-flash.md — native
72 Thinking Supported cell explicitly lists low, medium, high. Minimal is rejected.
73- https://aistudio.google.com/docs/thinking.md?generate-content=true — scoped
74 family controls and budget/effort values.
75- https://aistudio.google.com/docs/models.md — native model/document index
76 and explanation that latest aliases are hot-swapped.
77- https://aistudio.google.com/docs/live-api/capabilities.md — the Model
78 comparison table's Thinking row: the one column that "Uses `thinkingBudget`"
79 is the native audio model its name links. Mandatory is unstated.
80
81These pages are Markdoc since #568; `markdocTables` reads their tables.
82
83A native model-page capability or explicit level declaration does not depend on
84the Models API including its optional thinking flag. An explicit API
85thinking=false is preserved and suppresses docs-derived controls/capability;
86absence and false remain distinct. Version identities already
87parsed from native pages are retained; no numeric/latest alias heuristic is added.
88The public index and current linked version tables do not bind gemini-flash-latest
89to a specific current family, and do not list gemma-4-31b-it. Their controls remain
90unknown without a native binding. Read-only Models.get using an already configured
91key confirms both models explicitly return thinking=true, so their capability is
92already sourced by the listing adapter. Neither native record supplies a
93baseModelId/alias target or effort controls. No page absence is treated as retirement.
94
95- https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest
96- https://generativelanguage.googleapis.com/v1beta/models/gemma-4-31b-it
97
98These metadata requests used authentication headers, with no credential in the
99source URL, fixture or output; they make no inference calls.
100
101## Mistral
102
103https://docs.mistral.ai/studio/conversations/reasoning.md
104
105The guide scopes adjustable reasoning to named model IDs, followed by a normative
106parameter-value section describing high and none. These values apply to that
107scope, while its explicit zai-glm-5-3 low/high/max list overrides them. Code
108assignments alone do not establish the values. The existing adapter retains native
109API alias relationships when copying these facts; no sibling relationships are
110invented. Models outside the guide's scope do not inherit its controls. Fenced
111examples cannot expand the normative values. The GLM always-thinking note
112explicitly establishes mandatory=true; a value list alone leaves it null.
113
114## Dashscope
115
116https://www.alibabacloud.com/help/en/model-studio/deep-thinking.md
117
118The Supported Models section explicitly names qwen3.7-max, qwen3.5-flash and their
119published snapshots as hybrid thinking, and qwq-plus as thinking-only. The parser
120uses this section, excluding samples and linked URL paths. Hybrid rows get a
121sourced toggle mode; thinking-only rows get capability without inventing a control
122mode. The source says control parameters vary by model, so the adapter does not
123stamp a generic enable_thinking body on every row.
124
125The Pass Thinking Process section lists preserve_thinking-supported IDs and says
126the client supplies prior assistant reasoning_content. Replay=true is scoped to
127those explicitly named IDs with a compatible request map. This is preserved
128thinking support: the source explicitly says omitted reasoning_content does not
129cause an error. No unconditional second-turn failure is asserted. Models absent
130from this scope remain unknown. The shared compatibility parameter table is not a
131complete model capability allowlist; omission must not manufacture false flags.
132
133## Together
134
135- https://docs.together.ai/docs/inference/chat/reasoning.md — preserved thinking
136 example and instruction to include unmodified reasoning_content for GLM-5.2.
137- https://docs.together.ai/docs/glm-5.3-quickstart.md — both native GLM variants are
138 explicitly described as reasoning models; preserved thinking examples identify
139 only GLM-5.3. Enable preserved thinking with clear_thinking=false and return
140 reasoning_content unchanged. Flash does not inherit this replay claim.
141- https://docs.together.ai/docs/deepseek-v4-quickstart.md — own model ID is
142 deepseek-ai/DeepSeek-V4-Pro-0813. During multi-turn function calling the host
143 explicitly requires content, reasoning_content and tool_calls on the next
144 request, even when the response exposes the reasoning alias. Plain turns do not
145 carry prior CoT into context. Scope replay to the native page's model ID.
146- https://docs.together.ai/llms.txt — current native quickstart discovery index.
147
148A reasoning capability does not require a parsed control mode. For newly sourced
149rows, unknown wire controls remain null instead of invoking generic shared
150thinking/reasoning_effort defaults. The current native docs do not provide a
151corresponding DeepSeek V4.1 Flash quickstart, so this sibling remains unknown.
152Preserved-thinking and tool-call conditions remain documented; this patch does not
153claim every issue example is now filled or source-silent.
154
155Replay additions preserve whole-request-map provenance and add only field-specific
156requestMapFields.replayReasoningContent evidence. Existing populated request fields
157and boolean capability-map positives/negatives are retained. Contradictory explicit
158reasoning/replay rejections throw rather than being overwritten. OpenRouter
159malformed metadata/parameter lists and missing or empty catalogs also throw.