gemini-2.5-flash and newer require thinkingBudget:0 to disable thinking mode, otherwise the API rejects the request or returns unexpected format. Regex matches gemini-2.5-* and gemini-3.x-* automatically. Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>