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

native-reasoning-sources.md

129 lines7.4 KB

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. OpenRouter's own
18reasoning-details instructions use a different preserved structure, so this patch
19does not stamp reasoning_content replay on its rows.
20​
21## OpenAI
22​
23- https://developers.openai.com/api/docs/models/gpt-6.1-sol.md — multiline list
24 including max; the following sentence rejects none/minimal.
25- https://developers.openai.com/api/docs/models/gpt-5.2-codex.md — supported effort
26 list precedes the words reasoning effort settings.
27- https://developers.openai.com/api/docs/models/gpt-oss-120b.md — parenthesized
28 configurable reasoning effort list.
29- https://developers.openai.com/api/docs/models/gpt-6-luna.md — explicit none
30 support makes reasoning optional.
31​
32Parse only normative prose; fenced examples do not establish effort allowlists.
33Individual model-page fetch and parse failures now error instead of returning
34unknown facts. A model's own page takes precedence over another alias page's
35snapshot reference. Realtime pages explicitly declaring configurable reasoning
36effort retain effort mode with unknown levels and mandatory status.
37A level list without none does not prove mandatory thinking; only explicit native
38cannot-disable/always-on prose establishes true. Reasoning-token capability
39without a control declaration does not justify an
40invented effort mode or mandatory=true. Such configurations remain null while
41capability remains independently sourced. Pages that do not name effort levels
42are not covered by a blanket effort exemption.
43​
44## Gemini
45​
46- https://ai.google.dev/gemini-api/docs/models/gemini-3.8-flash.md.txt — native
47 Thinking Supported cell explicitly lists low, medium, high. Minimal is rejected.
48- https://ai.google.dev/gemini-api/docs/generate-content/thinking.md.txt — scoped
49 family controls and budget/effort values.
50- https://ai.google.dev/gemini-api/docs/models.md.txt — native model/document index
51 and explanation that latest aliases are hot-swapped.
52​
53A native model-page capability or explicit level declaration does not depend on
54the Models API including its optional thinking flag. An explicit API
55thinking=false is preserved and suppresses docs-derived controls/capability;
56absence and false remain distinct. Version identities already
57parsed from native pages are retained; no numeric/latest alias heuristic is added.
58The public index and current linked version tables do not bind gemini-flash-latest
59to a specific current family, and do not list gemma-4-31b-it. Their controls remain
60unknown without a native binding. Read-only Models.get using an already configured
61key confirms both models explicitly return thinking=true, so their capability is
62already sourced by the listing adapter. Neither native record supplies a
63baseModelId/alias target or effort controls. No page absence is treated as retirement.
64​
65- https://generativelanguage.googleapis.com/v1beta/models/gemini-flash-latest
66- https://generativelanguage.googleapis.com/v1beta/models/gemma-4-31b-it
67​
68These metadata requests used authentication headers, with no credential in the
69source URL, fixture or output; they make no inference calls.
70​
71## Mistral
72​
73https://docs.mistral.ai/studio/conversations/reasoning.md
74​
75The guide scopes adjustable reasoning to named model IDs, followed by a normative
76parameter-value section describing high and none. These values apply to that
77scope, while its explicit zai-glm-5-3 low/high/max list overrides them. Code
78assignments alone do not establish the values. The existing adapter retains native
79API alias relationships when copying these facts; no sibling relationships are
80invented. Models outside the guide's scope do not inherit its controls. Fenced
81examples cannot expand the normative values. The GLM always-thinking note
82explicitly establishes mandatory=true; a value list alone leaves it null.
83​
84## Dashscope
85​
86https://www.alibabacloud.com/help/en/model-studio/deep-thinking.md
87​
88The Supported Models section explicitly names qwen3.7-max, qwen3.5-flash and their
89published snapshots as hybrid thinking, and qwq-plus as thinking-only. The parser
90uses this section, excluding samples and linked URL paths. Hybrid rows get a
91sourced toggle mode; thinking-only rows get capability without inventing a control
92mode. The source says control parameters vary by model, so the adapter does not
93stamp a generic enable_thinking body on every row.
94​
95The Pass Thinking Process section lists preserve_thinking-supported IDs and says
96the client supplies prior assistant reasoning_content. Replay=true is scoped to
97those explicitly named IDs with a compatible request map. This is preserved
98thinking support: the source explicitly says omitted reasoning_content does not
99cause an error. No unconditional second-turn failure is asserted. Models absent
100from this scope remain unknown. The shared compatibility parameter table is not a
101complete model capability allowlist; omission must not manufacture false flags.
102​
103## Together
104​
105- https://docs.together.ai/docs/inference/chat/reasoning.md — preserved thinking
106 example and instruction to include unmodified reasoning_content for GLM-5.2.
107- https://docs.together.ai/docs/glm-5.3-quickstart.md — both native GLM variants are
108 explicitly described as reasoning models; preserved thinking examples identify
109 only GLM-5.3. Enable preserved thinking with clear_thinking=false and return
110 reasoning_content unchanged. Flash does not inherit this replay claim.
111- https://docs.together.ai/docs/deepseek-v4-quickstart.md — own model ID is
112 deepseek-ai/DeepSeek-V4-Pro-0813. During multi-turn function calling the host
113 explicitly requires content, reasoning_content and tool_calls on the next
114 request, even when the response exposes the reasoning alias. Plain turns do not
115 carry prior CoT into context. Scope replay to the native page's model ID.
116- https://docs.together.ai/llms.txt — current native quickstart discovery index.
117​
118A reasoning capability does not require a parsed control mode. For newly sourced
119rows, unknown wire controls remain null instead of invoking generic shared
120thinking/reasoning_effort defaults. The current native docs do not provide a
121corresponding DeepSeek V4.1 Flash quickstart, so this sibling remains unknown.
122Preserved-thinking and tool-call conditions remain documented; this patch does not
123claim every issue example is now filled or source-silent.
124​
125Replay additions preserve whole-request-map provenance and add only field-specific
126requestMapFields.replayReasoningContent evidence. Existing populated request fields
127and boolean capability-map positives/negatives are retained. Contradictory explicit
128reasoning/replay rejections throw rather than being overwritten. OpenRouter
129malformed metadata/parameter lists and missing or empty catalogs also throw.