Repository navigation
fix: strip provider prefix from Google model IDs (#795) - #797
Closed
juanpablodlc wants to merge 2 commits into
Closed
juanpablodlc wants to merge 2 commits into
juanpablodlc wants to merge 2 commits into
Conversation
juanpablodlc
force-pushed
the
fix/gemini-model-id-prefix
branch
from
January 12, 2026 19:10
e4c7a00 to
5330bd4
Compare
Fixes openclaw#795 reported by @pein1337-jpg Gemini 3 models returned 404 Not Found because the full model ID (e.g., "google/gemini-3-flash-preview") was being sent to the Google Generative AI API, which expects only the model name without the provider prefix. The fix extracts just the model name before sending to the API: - "google/gemini-3-flash-preview" → "gemini-3-flash-preview" - "gemini-3-flash-preview" → "gemini-3-flash-preview" (unchanged) Credit: Fix originally proposed by @pein1337-jpg in openclaw#795 ## Changed Files - patches/@[email protected] (added google.js model ID stripping) - pnpm-lock.yaml (updated patch hash) Co-authored-by: pein1337-jpg <[email protected]>
juanpablodlc
marked this pull request as draft
January 12, 2026 19:30
- Sort imports alphabetically in src/cli/program.ts - Sort vitest imports in src/commands/dashboard.test.ts - Sort imports and fix formatting in src/commands/dashboard.ts These are pre-existing linting issues in upstream/main that were blocking CI. They are unrelated to the main PR fix. Co-authored-by: pein1337-jpg <[email protected]>
juanpablodlc
force-pushed
the
fix/gemini-model-id-prefix
branch
from
January 12, 2026 19:31
5330bd4 to
d936418
Compare
Contributor
Author
|
Closing this PR due to pre-existing Swift linting errors blocking CI. IssueThe CI check for macOS Swift linting is failing with errors in:
These errors exist in upstream/main and are not caused by any changes in this PR. What this PR doesThis PR only modifies:
Next StepsThis PR should be re-opened after the Swift linting issues are fixed in a separate PR. @pein1337-jpg - the fix you proposed in #795 is ready in the patch file. Once Swift lint is fixed upstream, we can merge this. |
Fato07
pushed a commit
to Fato07/elav
that referenced
this pull request
Mar 26, 2026
…s-initdbflags fix: align embedded postgres ctor types with initdbFlags usage
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.
Fixes #795 reported by @pein1337-jpg
Problem
Gemini 3 models returned 404 Not Found because the full model ID
(e.g., `google/gemini-3-flash-preview`) was being sent to the
Google Generative AI API, which expects only the model name
without the provider prefix.
Solution
The fix extracts just the model name before sending to the API:
This was done by updating `patches/@[email protected]`
to include changes to `dist/providers/google.js`.
Changed Files
Testing
Verified with:
Credit
Fix originally proposed and validated by @pein1337-jpg in #795