Skip to content

fix(gemini): simplify model version check - #42465

Merged
kerry-berri merged 1 commit into
BerriAI:mainfrom
philschmid:fix/gemini-version-check
Sep 22, 2026
Merged

kerry-berri merged 1 commit into
BerriAI:mainfrom
philschmid:fix/gemini-version-check

Conversation

@philschmid

Copy link
Copy Markdown

No description provided.

@philschmid
philschmid requested a review from a team September 22, 2026 12:01
@CLAassistant

CLAassistant commented Sep 22, 2026 •

Copy link
Copy Markdown

CLA assistant check
All committers have signed the CLA.

@greptile-apps

greptile-apps Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

RetriggerConfidence Score: 3/5

The PR is not safe to merge because it enables Gemini-3 and reasoning behavior for endpoints whose capabilities do not support those assumptions

Findings

  1. P1 Versionless endpoints misclassified ▶
  2. P1 Unsupported reasoning is advertised ▶

Summary

This PR broadens Gemini reasoning parameter support, replaces model metadata checks with version heuristics, and maps medium effort directly to medium thinking

  • Treats every nonempty model name not matching known pre-3 patterns as Gemini 3 or newer
  • Advertises reasoning parameters for all Gemini models
  • Adds and updates tests for the broadened classification and mapping behavior

Reviews (1) · Last reviewed commit: "fix(gemini): simplify model version chec..."

@codspeed

codspeed Bot commented Sep 22, 2026 •

Copy link
Copy Markdown
Contributor

Merging this PR will not alter performance

✅ 31 untouched benchmarks


Comparing philschmid:fix/gemini-version-check (7578411) with main (071cb49)

Open in CodSpeed

@codecov

codecov Bot commented Sep 22, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.

📢 Thoughts on this report? Let us know!

@philschmid
philschmid force-pushed the fix/gemini-version-check branch from c56a05a to bc3f5d9 Compare September 22, 2026 13:38
@philschmid
philschmid force-pushed the fix/gemini-version-check branch from bc3f5d9 to 528cb1e Compare September 22, 2026 13:57
@philschmid
philschmid force-pushed the fix/gemini-version-check branch from 528cb1e to 7578411 Compare September 22, 2026 14:10

@kerry-berri kerry-berri left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

lgtm

@kerry-berri
kerry-berri merged commit 7056151 into BerriAI:main Sep 22, 2026
91 checks passed
@philschmid
philschmid deleted the fix/gemini-version-check branch September 22, 2026 18:12
yuneng-berri added a commit that referenced this pull request Sep 23, 2026
* fix: repair seven regressions caught by CircleCI on main

- vertex_ai: stop treating fine-tuned endpoint ids (numeric or
  vertex_ai/gemini/<id>) and gemma models as Gemini 3+, which injected
  temperature=1.0 and Gemini 3 thinking config into their requests (#42465)
- cost: price Azure DALL-E 3 from its azure/<quality>/<size>/dall-e-3 rows;
  it only worked through the OpenAI rows that #42435 removed
- bedrock: stream bedrock/invoke/moonshot through an OpenAI-shaped chunk
  decoder; the generic decoder dropped every chunk, which the
  supports_response_schema flag from #42338 un-skipped in CI
- proxy: keep the public model_group on pre-routing rejections so the Usage
  page groups them under the model name, not the deployment (#41077)
- cost map: mirror the base rows' capability flags onto Bedrock regional and
  cross-region copies (#42254 and later syncs)
- whitelist the new regional Bedrock rows from #42543 and #42588 for the
  converse routing check, following the existing regional-row convention

* fix(model-prices): mirror capability flags onto ap-southeast-3 bedrock rows

* refactor(bedrock): tighten types on the moonshot stream decoder and its tests
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

4 participants