thinkingBudget option for ChatGoogleGenerativeAI in langchainjs

I’m using ChatGoogleGenerativeAI in the langchainjs SDK and need to be able to configure thinking budget. Seems like the python SDK has that option, as do the Vertex, Anthropic, and OpenAI models in the JS SDK.

This is basically the only thing stopping me from migrating to langchain from the Vercel AI SDK, which does support it.

Curious why it was omitted for ChatGoogleGenerativeAI specifically? Happy to contribute to add this functionality

1 Like