Skip to content

gemini-3.5-flash-lite rejects zero budget at thinking mode #2936

Description

@phenobarbital

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.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Labels

priority: p2Moderately-important priority. Fix may not be included in next release.status:awaiting user responsetype: bugError or flaw in code with unintended results or allowing sub-optimal usage patterns.

Type

No type

Projects

No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions