fix(agents): prevent /v1beta duplication in Gemini PDF URL#34369
Merged
vincentkoc merged 1 commit intoopenclaw:mainfrom Mar 10, 2026
Merged
fix(agents): prevent /v1beta duplication in Gemini PDF URL#34369vincentkoc merged 1 commit intoopenclaw:mainfrom
vincentkoc merged 1 commit intoopenclaw:mainfrom
Conversation
Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-Authored-By: Claude Opus 4.6 <[email protected]>
Contributor
Greptile SummaryThis PR fixes a URL-construction bug in
Confidence Score: 5/5
Last reviewed commit: 8f697ad |
4 tasks
frankekn
pushed a commit
to MoerAI/openclaw
that referenced
this pull request
Mar 11, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
frankekn
pushed a commit
to Effet/openclaw
that referenced
this pull request
Mar 11, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
frankekn
pushed a commit
to ImLukeF/openclaw
that referenced
this pull request
Mar 11, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
Treedy2020
pushed a commit
to Treedy2020/openclaw
that referenced
this pull request
Mar 11, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
dhoman
pushed a commit
to dhoman/chrono-claw
that referenced
this pull request
Mar 11, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
ahelpercn
pushed a commit
to ahelpercn/openclaw
that referenced
this pull request
Mar 12, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
Ruijie-Ysp
pushed a commit
to Ruijie-Ysp/clawdbot
that referenced
this pull request
Mar 12, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
leozhengliu-pixel
pushed a commit
to leozhengliu-pixel/openclaw
that referenced
this pull request
Mar 13, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
Interstellar-code
pushed a commit
to Interstellar-code/operator1
that referenced
this pull request
Mar 16, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]> (cherry picked from commit bfeea5d)
20 tasks
senw-developers
pushed a commit
to senw-developers/va-openclaw
that referenced
this pull request
Mar 17, 2026
…34369) Strip trailing /v1beta from baseUrl before appending the version segment, so callers that already include /v1beta in their base URL (e.g. subagent-registry) no longer produce /v1beta/v1beta/models/… which results in a 404 from the Gemini API. Closes openclaw#34312 Co-authored-by: Claude Opus 4.6 <[email protected]>
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.
Summary
/v1betafrombaseUrlingeminiAnalyzePdfbefore appending the version segment, preventing/v1beta/v1beta/models/…URLs that cause 404 errors from the Gemini API./v1betaduplication whenbaseUrlalready includes the version prefix.Closes #34312
Test plan
geminiAnalyzePdf does not duplicate /v1beta when baseUrl already includes itpdfModelasgoogle/gemini-3.1-pro-previewwith a baseUrl ending in/v1beta, invoke PDF tool via subagent path, verify 200 response🤖 Generated with Claude Code