Skip to content

feat: add baseURL configuration for Google AI provider#13

Merged
monkeyWie merged 2 commits into
mainfrom
feat/google_baseURL
Feb 6, 2026
Merged

feat: add baseURL configuration for Google AI provider#13
monkeyWie merged 2 commits into
mainfrom
feat/google_baseURL

Conversation

@monkeyWie

Copy link
Copy Markdown
Owner

No description provided.

@monkeyWie monkeyWie added the enhancement New feature or request label Feb 6, 2026
@augmentcode

augmentcode Bot commented Feb 6, 2026

Copy link
Copy Markdown
🤖 Augment PR Summary

Summary: Adds optional baseURL configuration for the Google AI provider so requests can be routed through custom endpoints.

Changes: Updates Google provider settings/i18n to expose the new field and forces the provider settings form to remount when switching providers.

🤖 Was this summary useful? React with 👍 or 👎

@augmentcode augmentcode Bot left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Review completed. 1 suggestions posted.

Fix All in Augment

Comment augment review to trigger a new review at any time.

const ai = new GoogleGenAI({
apiKey,
httpOptions: {
baseUrl: baseURL,

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Because baseURL is optional, baseUrl will be undefined when unset; depending on @google/genai, explicitly passing httpOptions.baseUrl: undefined may override the SDK default endpoint and cause requests to fail. Consider only providing httpOptions when baseURL is defined (or setting a defaultValue).

Severity: medium

Fix This in Augment

🤖 Was this useful? React with 👍 or 👎, or 🚀 if it prevented an incident/outage.

@monkeyWie monkeyWie merged commit 0b7dc79 into main Feb 6, 2026
1 check passed
@monkeyWie monkeyWie deleted the feat/google_baseURL branch February 6, 2026 10:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant