Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(generative_ai): Clearing all samples that does not use Gemini 2.X models #4061

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

msampathkumar
Copy link
Member

DO NOT MERGE THIS PR

@msampathkumar msampathkumar self-assigned this Apr 3, 2025
@msampathkumar msampathkumar requested review from a team as code owners April 3, 2025 17:17
Copy link

snippet-bot bot commented Apr 3, 2025

Here is the summary of changes.

You are about to delete 153 region tags.

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

@product-auto-label product-auto-label bot added samples Issues that are directly related to samples. api: aiplatform Issues related to the AI Platform API. labels Apr 3, 2025
@msampathkumar msampathkumar changed the title Clearing all samples that does not use Gemini 2.X models chore(generative_ai): Clearing all samples that does not use Gemini 2.X models Apr 3, 2025
Copy link
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.

Hello @msampathkumar, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

Summary of Changes

This pull request focuses on removing samples that are no longer compatible with Gemini 2.X models. The changes involve deleting several JavaScript files related to AI Platform snippets, specifically those dealing with batch prediction, feature creation, and custom jobs. This cleanup ensures the repository maintains relevant and up-to-date examples.

Highlights

  • Removal of Outdated Samples: The primary focus is to remove code samples that rely on older Gemini models, ensuring the repository reflects current best practices and model compatibility.
  • JavaScript File Deletion: Multiple JavaScript files related to batch prediction, feature store operations, and custom jobs have been deleted as they are incompatible with the latest Gemini 2.X models.

Changelog

Click here to see the changelog
  • ai-platform/snippets/batch-code-predict.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/batch-create-features-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/batch-prediction/batch-predict-bq.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/batch-prediction/batch-predict-gcs.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/batch-read-feature-values-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/batch-text-predict.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/cancel-batch-prediction-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/cancel-custom-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/code-model-tuning.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-embedding.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-prediction-job-text-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-prediction-job-text-entity-extraction.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-prediction-job-text-sentiment-analysis.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-prediction-job-video-action-recognition.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-prediction-job-video-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-batch-prediction-job-video-object-tracking.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-custom-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-dataset-image.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-dataset-tabular-bigquery.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-dataset-tabular-gcs.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-dataset-text.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-dataset-video.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-endpoint.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-entity-type-monitoring-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-entity-type-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-feature-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-featurestore-fixed-nodes-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-featurestore-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-hyperparameter-tuning-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-image-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-image-object-detection.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-tabular-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-tabular-regression.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-text-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-text-entity-extraction.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-text-sentiment-analysis.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-video-action-recognition.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-video-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/create-training-pipeline-video-object-tracking.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-batch-prediction-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-custom-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-dataset.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-endpoint.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-entity-type-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-export-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-feature-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-featurestore-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/delete-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/deploy-model-custom-trained-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/deploy-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/embedding-model-tuning.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/export-feature-values-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/export-feature-values-snapshot-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/export-model-tabular-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/export-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/gemma2PredictGpu.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/gemma2PredictTpu.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-batch-prediction-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-custom-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-entity-type-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-feature-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-featurestore-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-hyperparameter-tuning-job.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-image-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-image-object-detection.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-slice.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-tabular-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-tabular-regression.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-text-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-text-entity-extraction.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/get-model-evaluation-text-sentiment-analysis.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-image-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-image-object-detection.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-text-classification-single-label.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-text-entity-extraction.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-text-sentiment-analysis.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-video-action-recognition.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-video-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data-video-object-tracking.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-data.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/import-feature-values-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-endpoints.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-entity-types-async-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-entity-types-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-entity-types-stream-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-features-async-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-features-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-features-stream-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-model-evaluation-slices.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/list-tuned-models.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-chat-prompt.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-code-chat.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-code-completion-comment.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-code-completion-test-function.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-code-generation-function.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-code-generation-unittest.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-custom-trained-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-image-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-image-from-image-and-text.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-image-from-text.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-image-object-detection.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-tabular-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-tabular-regression.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-text-classification.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-text-embeddings.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-text-entity-extraction.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-text-sentiment-analysis.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/predict-text-summarization.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/quickstart.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/read-feature-values-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/search-features-async-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/search-features-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/search-features-stream-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/undeploy-model.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/update-entity-type-monitoring-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/update-entity-type-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/update-feature-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/update-featurestore-fixed-nodes-sample.js
    • File deleted as it uses Gemini 1.x models.
  • ai-platform/snippets/update-featurestore-sample.js
    • File deleted as it uses Gemini 1.x models.
Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point in your pull request via creating an issue comment (i.e. comment on the pull request page) using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in issue comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist is currently in preview and may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments to provide feedback.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.


In realms of code, where versions shift,
A cleanup's due, a thoughtful gift.
Old samples fade,
New paths are made,
For Gemini's light, a brighter lift.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
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

The pull request involves the removal of several code samples that are no longer compatible with the Gemini 2.x models. This cleanup helps maintain the relevance and accuracy of the code repository. The changes primarily consist of deleting entire files, indicating a straightforward removal of outdated content.

Merge Readiness

Given that the pull request focuses on removing outdated code samples, it appears to be a straightforward cleanup operation. Since there are no code suggestions or style guide adherence to check, I would recommend that the pull request be reviewed by another team member to ensure that the correct files are being removed. I am unable to approve the pull request in any circumstance, and that users should have others review and approve this code before merging.

@iennae iennae added the snippet-bot:force-run Force snippet-bot runs its logic label Apr 4, 2025
@snippet-bot snippet-bot bot removed the snippet-bot:force-run Force snippet-bot runs its logic label Apr 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
api: aiplatform Issues related to the AI Platform API. samples Issues that are directly related to samples.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants