Skip to content

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

Merged
ifielker merged 2 commits intomainfrom
if-flex
Apr 14, 2026
Merged

feat(js/plugins/google-genai): serviceTier support for googleAI#5058
ifielker merged 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.

Comment thread js/plugins/google-genai/src/googleai/gemini.ts
@ifielker ifielker requested a review from pavelgj April 2, 2026 19:21
@ifielker ifielker merged commit f7fcdcc into main Apr 14, 2026
8 checks passed
@ifielker ifielker deleted the if-flex branch April 14, 2026 03:27
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