feat(vertex_ai): add Gemini 3.5 Flash model support#3197
Merged
crazywoola merged 2 commits intoMay 26, 2026
Conversation
Adds the `gemini-3.5-flash` model definition under vertex_ai, mirroring the parameter style of the existing Gemini 3 family (thinking_level, include_thoughts, media_resolution, grounding, url_context, code_execution, json_schema). Registers the model in `GLOBAL_ONLY_MODELS_DEFAULT` and bumps the plugin manifest to 0.0.55 (0.0.54 was consumed by langgenius#3178). Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
Contributor
There was a problem hiding this comment.
Code Review
This pull request adds support for the Gemini 3.5 Flash model to the Vertex AI provider. The changes include a new YAML configuration file defining the model's features, parameters, and pricing, as well as the registration of the model in the Python codebase and a version bump in the manifest. I have no feedback to provide as there were no review comments.
crazywoola
approved these changes
May 26, 2026
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.
Summary
Adds the
gemini-3.5-flashmodel to the vertex_ai plugin.models/vertex_ai/models/llm/gemini-3.5-flash.yaml— mirrors the parameter style of the existing Gemini 3 family (thinking_level,include_thoughts,media_resolution,grounding,url_context,code_execution,json_schema)GLOBAL_ONLY_MODELS_DEFAULTinllm.pyNotes on prior review feedback (#3167)
The previous PR #3167 received automated review comments that I verified against the codebase and official docs — leaving them as-is for the following reasons:
Pricing format (string vs numeric): 773 model YAMLs in this repo use quoted strings; 0 use bare numerics. The recently-merged
gemini/gemini-3.5-flash.yaml(feat(gemini): addGemini 3.5 Flashmodel support and refactorservice_tierlogic #3165) andaihubmix/gemini-3.5-flash.yaml(feat(aihubmix): add Qwen3.7 Max, Gemini 3.5 Flash, Grok 4.3 models and improve Anthropic support #3179) both use string pricing. Switching this one file to numeric would make it the only inconsistent file.max_output_tokens: 65536: Matches Google's official spec for Gemini 3.5 Flash (output limit = 65,536) and the rest of the Gemini 3 family in this repo.Pricing
$1.5 / $9.0per 1M tokens: Official Gemini 3.5 Flash pricing announced 2026-05-19. Same values as the mergedgeminiandaihubmixYAMLs. The comparison to Gemini 2.0 Flash isn't apples-to-apples — 3.5 Flash is a different generation and capability tier.Refs:
Test plan
thinking_level=Mediumgroundingandurl_contexttoggles work🤖 Generated with Claude Code