Repository navigation
[Automated] Draft docs (agentgateway): llm: send thinkingLevel instead of thinkingBudget for gemma-4 and… - #1451
Open
github-actions[bot] wants to merge 4 commits into
Open
github-actions[bot] wants to merge 4 commits into
github-actions[bot] wants to merge 4 commits into
Conversation
…d of thinkingBudget for gemma-4 and… Drafts-Commit: 01a18db Signed-off-by: GitHub Action <action@github.com>
Deploying agentproxy with
|
| Latest commit: |
661a940
|
| Status: | ✅ Deploy successful! |
| Preview URL: | https://d8a2e028.agentproxy.pages.dev |
| Branch Preview URL: | https://pr-tracker-draft-agentgatewa-415r.agentproxy.pages.dev |
The release-notes entry for this change now lives in the combined release-notes PR, #1482, so the draft PRs no longer conflict on the release-notes pages. Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Kristin Brown <kristin.brown@solo.io>
Collaborator
|
Moved this PR's release-notes entry to the combined release-notes PR, #1482, so the draft PRs stop conflicting on the release-notes pages. Review or change the entry there. |
Signed-off-by: Kristin Brown <kristin.brown@solo.io>
Co-Authored-By: Claude Opus 5.5 (1M context) <noreply@anthropic.com> Signed-off-by: Kristin Brown <kristin.brown@solo.io>
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.
agentgateway/agentgateway#4151 — llm: send thinkingLevel instead of thinkingBudget for gemma-4 and gemini-4
Docs versions:
standalone/main,kubernetes/mainWhat changes for users: OpenAI-compatible Chat Completions requests to Gemini and Vertex AI still use
reasoning_effort, but Gemini 4 and Gemma 4 requests now sendthinkingConfig.thinkingLevelinstead ofthinkingConfig.thinkingBudget. Gemma 4 mapsnone,minimal, andlowtominimal, and Gemini 4 mapsminimalandlowtolow.What the docs now say: The Gemini and Vertex AI provider pages now list how each
reasoning_effortvalue maps tothinkingBudgetorthinkingLevelfor Gemini 2.5 and older, Gemini 3, Gemini 4, and Gemma 4 models.Not verified: The configuration was not applied to a cluster or standalone run; the docs are unrun.
How
agentgateway-4151was drafted, and what was not verifiedreasoning_efforton Gemma 4 models on Google AI Studio (Gemini Provider) translated tothinkingBudgetinsteadthinkingLevelagentgateway#4148Plan, and what changed it
reasoning_effortconversion on the Gemini and Vertex AI provider pages for standalone/main and kubernetes/main.generationConfig.thinkingConfig, while the dossier diff changes Chat Completions provider conversion incrates/llm/src/conversion/vertex_gemini.rs.Why a documentation change is necessary
The pull request changes how Chat Completions
reasoning_effortis sent to Gemini-family providers. The provider pages explain how to configure Gemini and Vertex AI, but they did not say thatreasoning_effortbecomesthinkingBudgetfor older models andthinkingLevelfor Gemini 3, Gemini 4, and Gemma 4. Without this update, a reader cannot tell why Gemma 4 and Gemini 4 need a different thinking configuration from Gemini 2.5.What changed on disk
assets/agw-docs/pages/agentgateway/llm/providers/vertex.md: Added the Kubernetes Vertex AIreasoning_effortmapping, gated to main and future versions.content/docs/kubernetes/main/integrations/llm/providers/gemini.md: Added the Kubernetes main Geminireasoning_effortmapping.content/docs/standalone/main/integrations/llm/providers/gemini.md: Added the standalone Geminireasoning_effortmapping.content/docs/standalone/main/integrations/llm/providers/vertex.md: Added the standalone Vertex AIreasoning_effortmapping.How to verify this change
gemma-4-e2b-it.reasoning_effort: "low"through that provider. The request should not returnThinking budget is not supported for this model, because the provider request usesthinkingLevel: "minimal".gemini-4-argonandreasoning_effort: "minimal". The request should not returnUse thinkingLevel instead, because the provider request usesthinkingLevel: "low".What was not verified
How the pages were chosen (triage report)
Draft a documentation change
agentgateway/agentgateway#4151 — llm: send thinkingLevel instead of thinkingBudget for gemma-4 and gemini-4
agentgateway/websitereasoning_efforton Gemma 4 models on Google AI Studio (Gemini Provider) translated tothinkingBudgetinsteadthinkingLevelagentgateway#4148reasoning_effortwas translated tothinkingConfig.thinkingBudgetfor every model exceptgemini-3*. But: Notes: -nonesendsminimalon gemma-4 instead of omitting the config, because Gemma 4 thinks by default whenthinkingConfigis absent andminimalis its only off switch. - gemini-2.5 and older keep the existing budget behavior; an explicitthinking_config/thinkingConfigpassthA surface this change does not reach
them again: they describe a field on a deployment mode the code change
never reached, so a reader following them would configure something that
does not exist yet. The rest of the draft is untouched.
content/docs/kubernetes/main/integrations/llm/providers/gemini.mdEither the control-plane work for that mode is still owed, or the topic
belongs only to the other mode. The run summary names which surface and
which identifiers.
Release notes
This pull request also adds its release-note entries:
content/docs/kubernetes/main/release-notes/release-notes.md: llm: send thinkingLevel instead of thinkingBudget for gemma-4 and gemini-4 (fix, under LLM, in a new 1.8 section)content/docs/standalone/main/release-notes/release-notes.md: llm: send thinkingLevel instead of thinkingBudget for gemma-4 and gemini-4 (fix, under LLM, in a new 1.8 section)Check these release-note links and names. Each note is on its page, but a link may not reach the drafted content there, or a name may belong to the other mode:
content/docs/kubernetes/main/release-notes/release-notes.md: llm: send thinkingLevel instead of thinkingBudget for gemma-4 and gemini-4 agentgateway#4151's note namesthinkingLevel, whichcontent/docs/standalone/mainmentions andcontent/docs/kubernetes/maindoes not. Check that this tree's readers can set it, or word the note for this mode.Draft branch:
pr-tracker-draft-agentgateway-4151