Skip to content

Conversation

@xinbenlv
Copy link
Contributor

@xinbenlv xinbenlv commented Jun 4, 2025

This PR introduces support for two new Gemini model variants within the GCP Vertex AI provider, following the pattern established in PR #1909. This allows Goose to handle the latest Gemini 2.5 Preview models released by Google Cloud without requiring immediate code updates.

Changes:

  • Added Flash25Preview and Pro25Preview variants to the GeminiVersion enum to support arbitrary model names
  • Updated model parsing to match gemini-2.5-flash-preview-05-20 and gemini-2.5-pro-preview-05-06
  • Updated fmt::Display implementation to preserve exact model names for the new variants
  • Added the new models to the provider metadata and JSON configuration file
  • Added comprehensive tests for the new model parsing functionality
  • Maintained backward compatibility with existing models

New Models Added:

  • gemini-2.5-flash-preview-05-20 (Flash25Preview)
  • gemini-2.5-pro-preview-05-06 (Pro25Preview)

This enhancement enables users to access these new Google Cloud AI models through Goose without requiring code updates when Google releases additional model versions.

…view models in GCP Vertex AI - Add specific support for gemini-2.5-flash-preview-05-20 and gemini-2.5-pro-preview-05-06 models - Update model parsing and tests - Maintain backward compatibility
@yingjiehe-xyz yingjiehe-xyz merged commit 176ab18 into block:main Jun 4, 2025
6 checks passed
michaelneale added a commit that referenced this pull request Jun 5, 2025
* main: (82 commits)
  feat: lead/worker model (#2719)
  fix: pass ref in pr comment workflow (#2777)
  feat: goose web for local terminal alternative (#2718)
  chore: run CI on merge_group (#2786)
  fix: Don't break from consuming subprocess output in shell tool until both streams are done (#2771)
  Add retries w/ exponential backoff for databricks provider (#2764)
  Fix paths in google drive mcp documentation (#2775)
  testing windows build (#2770)
  docs: Add Context7 YouTube Video (#2779)
  cli(command): Add `export` command to CLI for markdown export of sessions (#2533)
  fix(copilot): gh copilot auth token conflicts w/ gh mcp env var (#2743)
  feat(providers): Add support for Gemini 2.5 Flash Preview and Pro Preview models (#2780)
  fix: pr comment build cli workflow (#2774)
  hotfix: don't always run prompt (#2773)
  Lifei/test workflow (#2772)
  chore: use hermit to install node, rust and protoc (#2766)
  Feat: Refined the documentation for Goose (#2751)
  mcp(developer): add fallback on .gitignore if no .gooseignore is present (#2661)
  cli(ux): Show active context length in CLI (#2315)
  cli(config): Add GOOSE_CONTEXT_STRATEGY setting (#2666)
  ...
lifeizhou-ap added a commit that referenced this pull request Jun 5, 2025
* main:
  feat: lead/worker model (#2719)
  fix: pass ref in pr comment workflow (#2777)
  feat: goose web for local terminal alternative (#2718)
  chore: run CI on merge_group (#2786)
  fix: Don't break from consuming subprocess output in shell tool until both streams are done (#2771)
  Add retries w/ exponential backoff for databricks provider (#2764)
  Fix paths in google drive mcp documentation (#2775)
  testing windows build (#2770)
  docs: Add Context7 YouTube Video (#2779)
  cli(command): Add `export` command to CLI for markdown export of sessions (#2533)
  fix(copilot): gh copilot auth token conflicts w/ gh mcp env var (#2743)
  feat(providers): Add support for Gemini 2.5 Flash Preview and Pro Preview models (#2780)
iandouglas pushed a commit that referenced this pull request Jun 5, 2025
cbruyndoncx pushed a commit to cbruyndoncx/goose that referenced this pull request Jul 20, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants