Skip to content
Source
Sign inSign up
TanStack/ai

ai-gemini: gemini-4-argon has no reasoning metadata #2119

Send to my agent
OpenCBell045(GitHub profile, opens in a new tab) opened this issue 0 comments

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! :)

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

  • I agree to follow this project's Code of Conduct
  • I understand that if my bug cannot be reliable reproduced in a debuggable environment, it will probably not be fixed and this issue may even be closed.
  1. tanstack-source added labelsbug

  2. github-actions[bot](GitHub profile, opens in a new tab) added labelswaiting-on: maintainer

Sign in to join this conversation.