Skip to content

refactor(generative_ai/evaluation): migrate vertexai.generative_models to genai SDK#14430

Draft
XrossFox wants to merge 4 commits into
GoogleCloudPlatform:mainfrom
XrossFox:vertex-to-genai-generative-models
Draft

refactor(generative_ai/evaluation): migrate vertexai.generative_models to genai SDK#14430
XrossFox wants to merge 4 commits into
GoogleCloudPlatform:mainfrom
XrossFox:vertex-to-genai-generative-models

Conversation

@XrossFox

@XrossFox XrossFox commented Jul 16, 2026

Copy link
Copy Markdown
Contributor

Description

sample: generative_ai/evaluation to genai/evaluation

  • Migrated evaluation samples to use the new google.genai SDK instead of vertexai.generative_models.
  • Removed unnecessary dependencies from requirements after testing confirmed they are no longer needed.

Fixes b/534795015

Checklist

Testing

  • I have tested this change on a live environment and verified it works as intended.

Compliance & Style


Post-Approval Actions

  • Please merge this PR for me once it is approved

…ls to genai SDK

 - Migrated evaluation samples to use the new `google.genai` SDK instead of `vertexai.generative_models`.
 - Removed unnecessary dependencies from requirements after testing confirmed they are no longer needed.
@product-auto-label product-auto-label Bot added the samples Issues that are directly related to samples. label Jul 16, 2026
@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

@XrossFox

Copy link
Copy Markdown
Contributor Author

/gemini review

@gemini-code-assist

Copy link
Copy Markdown
Contributor

Warning

Gemini encountered an error creating the review. You can try again by commenting /gemini review.

XrossFox added 3 commits July 20, 2026 20:35
- Refactored sample to use newer genai SDK.
- Cleaned requirements files from unneccessary dependencies.
@XrossFox

Copy link
Copy Markdown
Contributor Author

Tests have been validated locally:

image image

@XrossFox
XrossFox marked this pull request as ready for review July 20, 2026 22:16
@XrossFox
XrossFox requested review from a team as code owners July 20, 2026 22:16
@snippet-bot

snippet-bot Bot commented Jul 20, 2026

Copy link
Copy Markdown

Here is the summary of changes.

You are about to add 1 region tag.

This comment is generated by snippet-bot.
If you find problems with this result, please file an issue at:
https://github.com/googleapis/repo-automation-bots/issues.
To update this comment, add snippet-bot:force-run label or use the checkbox below:

  • Refresh this comment

@XrossFox
XrossFox marked this pull request as draft July 20, 2026 22:17
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

samples Issues that are directly related to samples.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant