Gemini BatchAPI Thinking Level Capabilities

I’m trying to set the thinking_level configuration to “medium” using the BatchAPI but can’t seem to configure it correctly. Using the client.models.generate_content I get it to work.

This is a screenshot of my code to generate the jsonl file

Hi @Santiago_Gonzalez

In batch API , when using JSONL files, the value is case sensitive which is causing it not to work

Passing MEDIUM will resolve the issue

We are also working on deploying a fix to support both lower and upper case values

hi , can you please also confirm for inline requests?

will the above config object with MEDIUM still work?

also, sorry if this is a noob question but why are the keys not following the camel case format given for the GenerateConfig object given here https://ai.google.dev/api/generate-content#GenerationConfig? (which also somehow does not have response types or formats?)