Skip to content

Commit fe096ab

Browse files
authored
Merge branch 'main' into model-armor-sanitization-snippets
2 parents b1231b6 + 1eed2eb commit fe096ab

File tree

149 files changed

+188
-4211
lines changed

Some content is hidden

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

149 files changed

+188
-4211
lines changed

.github/config/nodejs-dev.jsonc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -103,6 +103,7 @@
103103
"cloud-sql/mysql/mysql",
104104
"cloud-sql/mysql/mysql2",
105105
"cloud-sql/postgres/knex",
106+
"cloud-sql/sqlserver/mssql",
106107
"cloud-tasks/snippets",
107108
"cloud-tasks/tutorial-gcf/app",
108109
"cloud-tasks/tutorial-gcf/function",

.github/config/nodejs.jsonc

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -77,7 +77,6 @@
7777
// TODO: fix these
7878
"ai-platform/snippets", // PERMISSION_DENIED: Permission denied: Consumer 'projects/undefined' has been suspended.
7979
"automl", // (untested) FAILED_PRECONDITION: Google Cloud AutoML Natural Language was retired on March 15, 2024. Please migrate to Vertex AI instead
80-
"cloud-sql/sqlserver/mssql", // (untested) TypeError: The "config.server" property is required and must be of type string.
8180
"cloud-sql/sqlserver/tedious", // (untested) TypeError: The "config.server" property is required and must be of type string.
8281
"compute", // GoogleError: The resource 'projects/long-door-651/zones/us-central1-a/disks/disk-from-pool-name' was not found
8382
"dataproc", // GoogleError: Error submitting create cluster request: Multiple validation errors

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

Lines changed: 0 additions & 113 deletions
This file was deleted.

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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 1 addition & 1 deletion
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

Lines changed: 0 additions & 115 deletions
This file was deleted.

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

Lines changed: 0 additions & 62 deletions
This file was deleted.

0 commit comments

Comments
 (0)