Skip to content
Source
Sign inSign up
TanStack/schemas

Reasoning and modality gaps that reach @tanstack/ai-models #323

Closedtombeckenham opened this issue 2 comments
tombeckenhamcommented

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.

  1. Reasoning rows with no reasoning.mode (capabilities.reasoning: true, reasoning: null). The catalog has to guess levels (off through high).
    • 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
  2. reasoning.mandatory: null on effort rows. The catalog cannot tell if thinking can be turned off, so it leaves off out.
    • 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
  3. mandatory: true together with a none effort: zai-coding-plan and zhipuai-coding-plan glm-5.3, glm-5.3-flash. The efforts list also looks like a generic list (none through max).
  4. 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 example anthropic/claude-opus-4.7).
  5. Azure modalities.output: [] on 28 chat rows (gpt-4o, gpt-5, codex-mini). The catalog reads an empty list as "not known".
  6. capabilities.temperature: false is 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, and anthropic/claude-opus-4.7 (openrouter) have a reasoning.mode, a known mandatory, and the efforts the provider documents.
  1. Snapshot 2026-10-22. These reasoning models still have reasoning: null. TanStack AI sets reasoning levels for each of them by hand.

    • openai (10): o1, o1-pro, o3, o3-mini, o3-pro, o4-mini, gpt-5-codex, gpt-5.1-codex, gpt-5.1-codex-mini, gpt-5.2-chat-latest
    • gemini (3): gemini-3.1-pro-preview, gemini-3.5-flash, gemini-3.7-flash
    • groq (1): openai/gpt-oss-safeguard-20b
    • byteplus (1): deepseek-v4-flash-260425
  2. 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).

    1. Reasoning rows with no reasoning.mode. With #430 and #431, every provider this issue names has 0 unledgered reasoningUnknown rows, except gemini/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 no supported_efforts. The guide defines that as "does not expose effort selection", so no object is stored.
      • The comment's extra rows:
        • groq gpt-oss-safeguard-20b: Groq's own sources conflict (#432).
        • byteplus deepseek-v4-flash-260425: it is in the page's nested table, which the parser does not read (#432).
        • gemini 3.1-pro-preview and 3.5-flash: ledgered (the generateContent docs state no levels).
    2. mandatory: null on effort rows.
      • DeepSeek is fixed (#420). The thinking guide's per-model top_p bullets state a non-thinking mode for both deepseek-flash and deepseek-v4-pro, so mandatory is now false.
      • The other rows are honest nulls. Their own sources list levels without none and say nothing about turning thinking off. Examples: gpt-5.x-codex/pro, Bedrock, OpenCode, and Kimi Code k3, where the table gives reasoning_effort: low / high / max only. Under the ModelReasoning rule a level list with no none is not a statement. These rows cannot reach zero without inventing a value.
    3. mandatory: true with none. 0 rows now; already fixed.
    4. 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.effort with supported_efforts). That is what mode: effort records. 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: Yes and no thinking field, so those rows stay ledgered. claude-opus-5.5 publishes thinking.type: adaptive and is already adaptive.
      • The native anthropic rows are adaptive, and consumers can follow sameAs.
    5. Azure modalities.output: []. 0 Azure rows now. The only [] left in the catalog is fal/mureka/api/generate/lyrics.
    6. temperature: false is 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.

  3. tombeckenham closed this

Sign in to join this conversation.