-
Notifications
You must be signed in to change notification settings - Fork 27
🤖 feat: add Google provider with Gemini 3 support #677
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
d7900cb to
dbd3cb0
Compare
|
@codex review |
1 similar comment
|
@codex review |
110cc66 to
ed356d3
Compare
|
@codex review |
d709c89 to
f106a23
Compare
|
Codex Review: Didn't find any major issues. Hooray! ℹ️ About Codex in GitHubYour team has set up Codex to review pull requests in this repo. Reviews are triggered when you
If Codex has suggestions, it will comment; otherwise it will react with 👍. Codex can also answer questions or update the PR. Try commenting "@codex address that feedback". |
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
|
@codex review |
159011d to
6f9eeaf
Compare
|
@codex review |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
💡 Codex Review
Here are some automated review suggestions for this pull request.
ℹ️ About Codex in GitHub
Your team has set up Codex to review pull requests in this repo. Reviews are triggered when you
- Open a pull request for review
- Mark a draft as ready
- Comment "@codex review".
If Codex has suggestions, it will comment; otherwise it will react with 👍.
Codex can also answer questions or update the PR. Try commenting "@codex address that feedback".
920bb07 to
cab4532
Compare
- Add @ai-sdk/google dependency - Add Google provider creation logic with lazy loading - Add GOOGLE_API_KEY and GOOGLE_BASE_URL environment variable support - Add Gemini 3 model (google:gemini-3-pro-preview-11-2025) to knownModels - Configure Gemini 3 to use gemini-2.5-pro tokenizer - Add Google fallback tokenizer (gemini-2.5-pro) - Add GoogleProviderOptions interface for future extensions - Add test coverage for Gemini 3 tokenizer and thinking policy _Generated with `mux`_ Change-Id: I818b008d5a2528f600298e622e1cca63a80fe2a2 Signed-off-by: Thomas Kosiewski <tk@coder.com>
Add Google as a model provider with support for Gemini 3.
Changes
@ai-sdk/googledependencyGoogleProviderOptionstoMuxProviderOptionstype systemGOOGLE_API_KEYandGOOGLE_BASE_URLenvironment variable supportGEMINI_3_PROtoKNOWN_MODELSwithgemini-2.5-protokenizergoogle/gemini-2.5-pro)Usage
Configure via
~/.mux/providers.jsonc:{ "google": { "apiKey": "YOUR_GOOGLE_API_KEY" } }Or via environment variable:
Reference the model as:
google:gemini-3-pro-previewgemini-3(alias)gemini-3-pro(alias)Infrastructure
The following infrastructure already supported Google:
Testing
Generated with
mux