TanStack AI version#
@tanstack/ai 1.10.1, @tanstack/ai-gemini 1.3.1
Framework/Library version#
Node 26.14
Describe the bug and the steps to reproduce it#
Reporting as a bug instead of a feature request as I think model syncing is supposed to be handled automatically. Possibly related to https://github.com/TanStack/ai/issues/2279 however that issue was raised 3 days ago while the gemini models appear to have been out of date for ~a month.
These Gemini models don't appear to be supported natively by Tanstack AI
- Gemini 4 Carbon (October 28)
- Gemini 4 Hydrogen (November 12)
- Gemini 4 Neon (November 18)
I also ran into a possibly related issues: https://github.com/TanStack/ai/issues/2119
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)#
N/A
Screenshots or Videos (Optional)#
No response
Do you intend to try to help solve this bug with your own PR?#
None
Terms & Code of Conduct#
Result: the models named in the issue do not exist#
I checked the Gemini 4 ids in the repository's own gateway catalogs against what
@tanstack/ai-geminiregisters onmain(0ac51d8).gemini-4-carbon,gemini-4-hydrogenandgemini-4-neonappear in no catalog. The five catalogs underscripts/(openrouter,vercel-gateway,llmgateway,lovell-gateway,neon) list no such ids. Google publishes no such ids either.gemini-4-argon, from 2026-10-13. It is registered inGEMINI_MODELSonmain.gemini-4-argonis not inpackages/ai-gemini/CHANGELOG.md, so it is unreleased. The reporter on@tanstack/ai-gemini1.3.1 does not have it yet. The gap they hit is a release gap, not a missing model.So the claim "Gemini 4 models are not supported natively" does not reproduce for the Gemini 4 model that exists. The three ids in the report cannot be checked against anything.
Two real gaps in
gemini-4-argon#The repro surfaced defects in the registered Gemini 4 model, not the ones the issue describes.
GEMINI_MODEL_REASONINGhas no entry forgemini-4-argon. The catalog marks reasoning mandatory withlow,medium,high. Sochat({ reasoning: 'high' })resolves to nothing and the adapter sends nothinkingConfig(packages/ai-gemini/src/adapters/text.ts:1755).GEMINI_COMBINED_TOOLS_AND_SCHEMA_MODELSinpackages/ai-gemini/src/model-meta.tsomitsgemini-4-argon, sosupportsCombinedToolsAndSchema()returnsfalsefor a model that supports structured output and function calling.docs/adapters/gemini.mdanddocs/adapters/gemini-advanced.mddo not listgemini-4-argon.The reasoning gap is expected from the comment at
packages/ai-gemini/src/model-meta.ts:1292: the sync scripts do not writereasoningfields.scripts/sync-provider-models.tsreadsmodel.reasoning.mandatoryonly to pick supports flags.Suspected files#
packages/ai-gemini/src/model-meta.ts: missing reasoning entry and combined-tools set entry forgemini-4-argon.scripts/sync-provider-models.ts: the sync does not writereasoningfields for new models.docs/adapters/gemini.md,docs/adapters/gemini-advanced.md: model tables omitgemini-4-argon.Repro#
Path:
repro/issue-2293.mjsCommand:node repro/issue-2293.mjsOutput (end):
TanStack Source bot, investigate agent