Skip to content

Commit 74b288f

Browse files
msampathkumardavidcavazosgericdong
authored
feat(generative-ai): clear unused samples and update gemini model name (#4067)
* feat(generative-ai): clear unused samples and update samples model name to 2.0 * fix: restore package.json * fix: Update Google Search example * Fix test case for grounding * Delete unused tests * fix: replace GPU type * fix: restore ai-platform/snippets/delete-dataset.js * fix: restore cancel-custom-job.js * fix: restore 5 files * fix: restore more deleted files * fix: delete unused tests and restore some more files * fix: restore some more files * fix: Set location to us-central1 instead of using default global * fix: set location to us-central1 * Removed unused tests * Increase timeout for batch prediciton * Skip text sentiment analysis tests * Removed customer job tests as the image no longer exists * Removed un-supported tests * Skip unstable deploying model test --------- Co-authored-by: David Cavazos <[email protected]> Co-authored-by: Eric Dong <[email protected]>
1 parent 22ef6a1 commit 74b288f

File tree

139 files changed

+119
-4106
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

139 files changed

+119
-4106
lines changed

ai-platform/snippets/batch-code-predict.js

-113
This file was deleted.

ai-platform/snippets/batch-prediction/batch-predict-bq.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ async function main(projectId, outputUri) {
3636
'bq://storage-samples.generative_ai.batch_requests_for_multimodal_input';
3737
const location = 'us-central1';
3838
const parent = `projects/${projectId}/locations/${location}`;
39-
const modelName = `${parent}/publishers/google/models/gemini-1.5-flash-002`;
39+
const modelName = `${parent}/publishers/google/models/gemini-2.0-flash-001`;
4040

4141
// Specify the location of the api endpoint.
4242
const clientOptions = {

ai-platform/snippets/batch-prediction/batch-predict-gcs.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ async function main(projectId, outputUri) {
3939
'gs://cloud-samples-data/generative-ai/batch/batch_requests_for_multimodal_input.jsonl';
4040
const location = 'us-central1';
4141
const parent = `projects/${projectId}/locations/${location}`;
42-
const modelName = `${parent}/publishers/google/models/gemini-1.5-flash-002`;
42+
const modelName = `${parent}/publishers/google/models/gemini-2.0-flash-001`;
4343

4444
// Specify the location of the api endpoint.
4545
const clientOptions = {

ai-platform/snippets/batch-text-predict.js

-115
This file was deleted.

ai-platform/snippets/cancel-batch-prediction-job.js

-62
This file was deleted.

0 commit comments

Comments
 (0)