Repository navigation
Gemini: lowest thinking per model family, clearer failures, cancel an… - #33
Merged
Merged
Conversation
…d model suggestions
✅ Unit tests: PASS898 of 898 passed · line coverage 59.3% (logic 68.1%, Compose UI 45.9%) · branch coverage 43.9% Full HTML report (expected vs actual for every test) · Workflow run
JVM unit tests ( |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What this changes
Gemini calls now ask for the least thinking each model allows, failures say what actually went wrong, and a failing model can be swapped for another without spending extra quota.
temperatureis no longer sent to Gemini 4 and 3.6+. Saved request profiles move to a new key (<model>|v2) so models the old ladder left on default thinking are re-learned once.EngineFailure.Networkcarries a kind (unreachable, timeout, TLS); 408 maps to a timeout. A Gemini 403 that is not about the key (verification, billing) shows Google's reason instead of "add key";models.list, with no generation requests.Why: some Gemini models failed with "network error", some were overloaded, and a Try that hung could not be stopped.
How it was checked
Unit tests (JVM):
:core:engine,:feature:settingsand:feature:browserpass. New tests cover the family rules, the model advice and health record, 403/408/timeout mapping, the failure rule, and the Try box. Provider calls go to MockWebServer.Device: Motorola Edge 60 Pro, debug build, Gemini with the author's own key.
gemini-flash-latest,gemini-flash-lite-latest,gemini-3.5-flash-liteandgemini-3.5-flashaccepted MINIMAL on the first request, with no refused retry.gemini-3.7-flashaccepted LOW.gemini-3.8-flashreturned quota errors on the free tier (20 requests a day); that is the key's limit, not a defect here.