FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

fix(provider): omit deprecated Gemini sampling defaults by opencode-agent[bot] · Pull Request #38924 · anomalyco/opencode · GitHub

fix(provider): omit deprecated Gemini sampling defaults - #38924

Merged
rekram1-node merged 1 commit into
devfrom
gemini-sampling-params
Jul 28, 2026
Merged

fix(provider): omit deprecated Gemini sampling defaults#38924
rekram1-node merged 1 commit into
devfrom
gemini-sampling-params

Conversation

opencode-agent Bot commented Jul 26, 2026
edited
Loading

Copy link
Copy Markdown
Contributor

Summary

  • synthesize Gemini sampling defaults only for the older model families that still advertise support: 2.5, 3 Flash/Pro, 3.1, and 3.5 Flash
  • classify compatibility using model.api.id, the model ID actually sent to the provider
  • omit synthesized temperature, top_p, and top_k defaults for Gemini 3.5 Flash-Lite, Gemini 3.6+, unknown models, and future generations

Google documents all three fields as deprecated and ignored for Gemini 3.6 Flash and Gemini 3.5 Flash-Lite, with the same API contract applying to future model releases: https://ai.google.dev/gemini-api/docs/latest-model

Fixes #38767

Testing

  • bun test test/provider/transform.test.ts (397 passed)
  • independent sub-agent review completed; normalized IDs and API-ID alias handling were addressed

Requested by: @rekram1-node (Aiden Cline via Slack)

opencode-agent Bot force-pushed the gemini-sampling-params branch from fcf5129 to c335873 Compare July 26, 2026 04:31
opencode-agent Bot changed the title fix(provider): omit deprecated sampling controls fix(provider): omit deprecated Gemini sampling defaults Jul 26, 2026
opencode-agent Bot force-pushed the gemini-sampling-params branch 4 times, most recently from 3c6b619 to 4147443 Compare July 28, 2026 03:54
opencode-agent Bot force-pushed the gemini-sampling-params branch from 4147443 to 04de142 Compare July 28, 2026 03:57
rekram1-node merged commit 5e39051 into dev Jul 28, 2026
11 checks passed
rekram1-node deleted the gemini-sampling-params branch July 28, 2026 04:21
Bkm016 pushed a commit to Bkm016/opencode that referenced this pull request Jul 28, 2026
)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
minhmc2007 pushed a commit to minhmc2007/AniCode that referenced this pull request Jul 29, 2026
)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
3kaiu pushed a commit to 3kaiu/opencode-x that referenced this pull request Jul 31, 2026
)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
banlanzs pushed a commit to banlanzs/opencode that referenced this pull request Aug 6, 2026
)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
charlesverge pushed a commit to charlesverge/opencode that referenced this pull request Aug 11, 2026
)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
moonug pushed a commit to moonug/opencode that referenced this pull request Aug 19, 2026
)

Co-authored-by: Aiden Cline <rekram1-node@users.noreply.github.com>
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

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Gemini 3.6 Flash / 3.5 Flash lite sends deprecated sampling parameters through OpenRouter

1 participant


Back | FazBrowse Home | New Git URL