TanStack AI version#
@tanstack/ai 1.3.0, @tanstack/ai-gemini 1.2.1
Framework/Library version#
None (Typescript only)
Describe the bug and the steps to reproduce it#
gemini-4-argon has no reasoning entry in model-meta.ts, so reasoning is typed undefined and silently dropped at runtime. The API accepts low/medium/high for argon.
Run npm run typecheck in the repro:
error TS2322: Type '{ level: string; }' is not assignable to type 'undefined'.
Fix: add reasoning: EFFORT_LOW_TO_HIGH to GEMINI_4_ARGON and add it to GEMINI_REASONING, same as gemini-3.8-flash.
Thanks for all the great work, I love tanstack! :)
Your Minimal, Reproducible Example - (Sandbox Highly Recommended)#
https://stackblitz.com/edit/argon-reasoning?file=src%2Fmain.ts
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#