SIGN IN SIGN UP

fix(gemini): improve reasoning effort conversion for Gemini 3 models

Refactors the reasoning effort conversion logic for Gemini models.
The update specifically addresses how `reasoning_effort` is translated into Gemini 3 specific thinking configurations (`thinkingLevel`, `includeThoughts`) and ensures that numeric budgets are not incorrectly applied to level-based models.

Changes include:
- Differentiating conversion logic for Gemini 3 models versus other models.
- Handling `none`, `auto`, and validated thinking levels for Gemini 3.
- Maintaining existing conversion for models not using discrete thinking levels.
L
Luis Pater committed
d7afb6eb0c9e2330fcd60964ae8d7c483b10556f
Parent: bbd1fe8