Reasoning and modality gaps that reach @tanstack/ai-models #323
Closed
tombeckenham opened this issue ·2 comments
Problem#
@tanstack/ai-models now builds only from modelschemas (TanStack/ai#1788). It reads reasoning, requestMap, modalities, and the rate cards. It has no fallback source, so these gaps reach the catalog as written. Counts are chat rows that are not deprecated, from a snapshot taken 2026-10-15.
- Reasoning rows with no
reasoning.mode(capabilities.reasoning: true,reasoning: null). The catalog has to guess levels (offthroughhigh).- openai 25: gpt-5-mini, gpt-5-nano, gpt-5-codex, gpt-5.1-codex, and others
- cloudflare-ai-gateway 45, openrouter 34, gemini 16, together 12, opencode 8, opencode-go 7
reasoning.mandatory: nullon effort rows. The catalog cannot tell if thinking can be turned off, so it leavesoffout.- deepseek: deepseek-flash, deepseek-v4-pro
- openai 16 (gpt-5, gpt-5-pro, gpt-5.2-codex), opencode 48, amazon-bedrock 60, kimi-code-plan-* 3
mandatory: truetogether with anoneeffort: zai-coding-plan and zhipuai-coding-planglm-5.3,glm-5.3-flash. The efforts list also looks like a generic list (nonethroughmax).- Claude 4.6 and later on gateways are not
adaptive. The native rows are. Affected: openrouter 20, vercel 23, opencode 10, cloudflare-ai-gateway 9 (for exampleanthropic/claude-opus-4.7). - Azure
modalities.output: []on 28 chat rows (gpt-4o, gpt-5, codex-mini). The catalog reads an empty list as "not known". capabilities.temperature: falseis sparse (40 rows across the whole catalog). It is missing on OpenAI reasoning models, for example.
Ask#
- Fill items 1, 2, 4, and 6 from each provider's own docs or listing, with
factSources. - Fix item 3 at its source.
- Write
null(not[]) for an output list that is not known (item 5), or fill it.
Acceptance#
- The gap report (#201) shows zero rows for items 1 to 5 on the providers listed.
deepseek-v4-pro,gpt-5-mini, andanthropic/claude-opus-4.7(openrouter) have areasoning.mode, a knownmandatory, and the efforts the provider documents.
I re-measured every gap against prod on 2026-10-22 (
/v1/models, chat rows that are not deprecated, ledger included). The PRs are #420 (DeepSeek), #430 (ledger) and #431 (Cloudflare).- Reasoning rows with no
reasoning.mode. With #430 and #431, every provider this issue names has 0 unledgeredreasoningUnknownrows, exceptgemini/gemini-3.7-flash(#432).- The OpenAI o-series and codex rows were already ledgered. The model pages say only "Reasoning token support", and both the reasoning guide and the spec say supported values are model-dependent.
- On OpenRouter, the listing gives those models
reasoning: {mandatory: true}and nosupported_efforts. The guide defines that as "does not expose effort selection", so no object is stored. - The comment's extra rows:
mandatory: nullon effort rows.- DeepSeek is fixed (#420). The thinking guide's per-model
top_pbullets state a non-thinking mode for bothdeepseek-flashanddeepseek-v4-pro, somandatoryis now false. - The other rows are honest nulls. Their own sources list levels without
noneand say nothing about turning thinking off. Examples: gpt-5.x-codex/pro, Bedrock, OpenCode, and Kimi Codek3, where the table givesreasoning_effort: low / high / maxonly. Under theModelReasoningrule a level list with nononeis not a statement. These rows cannot reach zero without inventing a value.
- DeepSeek is fixed (#420). The thinking guide's per-model
mandatory: truewithnone. 0 rows now; already fixed.- Gateway Claude 4.6+ not
adaptive. I left this as is, on purpose.- OpenRouter, Vercel and LLM Gateway each publish their own effort-level control for these rows (
reasoning.effortwithsupported_efforts). That is whatmode: effortrecords. Their docs say Claude runs adaptive thinking in general but never bind it per model, and copying the native row's mode is not allowed. - On Cloudflare the catalog files carry only the flag
Adaptive Thinking: Yesand no thinking field, so those rows stay ledgered.claude-opus-5.5publishesthinking.type: adaptiveand is already adaptive. - The native
anthropicrows are adaptive, and consumers can followsameAs.
- OpenRouter, Vercel and LLM Gateway each publish their own effort-level control for these rows (
- Azure
modalities.output: []. 0 Azure rows now. The only[]left in the catalog isfal/mureka/api/generate/lyrics. temperature: falseis sparse. OpenAI states it only in the GPT-5 guides, which is where the 6 existing rows come from. The o-series pages and the reasoning guide do not mention sampling parameters, so there is nothing to fill.
#432 tracks the three remaining gaps that a source does state.
- Reasoning rows with no
tombeckenham closed this
Sign in to join this conversation.
Snapshot 2026-10-22. These reasoning models still have
reasoning: null. TanStack AI sets reasoning levels for each of them by hand.