Bug with thinkingTokens and response_mime_type

Using applicaion/json as response_mime_type and setting a responseSchema though thinkingBudget is set to 0 still gives Gemini thinking tokens.

Hi @Raphael_Pilz , Welcome to the forum.

Thanks for reporting the issue, similar issue has also been reported on github. It has been confirmed that when thinkingBudget is set to 0, no charges will be applied for thought tokens, even if they are generated in the output.