With the latest version of python-genai, gemini-3.5-flash-lite is not able to work when "thinkingBudget=0", with "thinkingBudget=None" works, but other models working fine with a budget of zero.
But, using a simple script with python httpx (no google-genai involved) I got this:
┌─────────────────────────────────────┬─────────────────┐
│ gemini-3.5-flash-lite │ Raw REST result │
├─────────────────────────────────────┼─────────────────┤
│ thinkingBudget: 0 │ 400 │
├─────────────────────────────────────┼─────────────────┤
│ omitted │ 200 OK │
├─────────────────────────────────────┼─────────────────┤
│ -1 (dynamic) │ 200 OK │
├─────────────────────────────────────┼─────────────────┤
│ 512 │ 200 OK │
├─────────────────────────────────────┼─────────────────┤
│ (control) gemini-2.5-flash-lite + 0 │ 200 OK │
└─────────────────────────────────────┴─────────────────┘
I tested all other models, including 3.8 family without issues, this is the only model with this problem.
With the latest version of python-genai, gemini-3.5-flash-lite is not able to work when "thinkingBudget=0", with "thinkingBudget=None" works, but other models working fine with a budget of zero.
But, using a simple script with python httpx (no google-genai involved) I got this:
I tested all other models, including 3.8 family without issues, this is the only model with this problem.