How to enable/disable reasoning with AI SDK + Next.js
Unanswered
SentryAryan posted this in #help-forum
I am using AI SDK in my next, with providers = openrouter, groq and google generative api.
I sending a reasoning flag, and in route.ts, enabling/disabling them reasoning using provideOption’s setting, but some models are always providing reasning data irrespective of flag for eg = NVIDIA: Nemotron Nano 9B V2 (free) form open router but some models like deepseek are working working correctly on basis of reasoning flag, says we can disable/enable it through system prompt I am doing that also.
Attaching relevant code in next message.
I sending a reasoning flag, and in route.ts, enabling/disabling them reasoning using provideOption’s setting, but some models are always providing reasning data irrespective of flag for eg = NVIDIA: Nemotron Nano 9B V2 (free) form open router but some models like deepseek are working working correctly on basis of reasoning flag, says we can disable/enable it through system prompt I am doing that also.
Attaching relevant code in next message.