Skip to content

feat(js/plugins/google-genai): serviceTier support for googleAI#5058

Open
ifielker wants to merge 2 commits intomainfrom
if-flex
Open

feat(js/plugins/google-genai): serviceTier support for googleAI#5058
ifielker wants to merge 2 commits intomainfrom
if-flex

Conversation

@ifielker
Copy link
Copy Markdown
Collaborator

@ifielker ifielker commented Apr 2, 2026

Checklist (if applicable):

Copy link
Copy Markdown
Contributor

@gemini-code-assist gemini-code-assist bot left a comment

Choose a reason for hiding this comment

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

Code Review

This pull request introduces the serviceTier parameter to the Google GenAI plugin, allowing users to specify 'standard', 'flex', or 'priority' tiers. The changes update the GenerateContentRequest type, the GeminiConfigSchema, and the request logic, while adding corresponding tests and a sample flow. A review comment suggests relaxing the serviceTier schema validation to a union of the enum and a string to ensure forward compatibility with future API updates.

@ifielker ifielker requested a review from pavelgj April 2, 2026 19:21
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants