From d664759d4c43a35998f5d0beebd8dd8bd2512807 Mon Sep 17 00:00:00 2001 From: Angel Caamal Date: Tue, 30 Jun 2026 19:06:15 +0000 Subject: [PATCH] task: decommission legacy Vertex AI region tags under generative-ai (part 1) --- generative-ai/snippets/gemini-all-modalities.js | 2 -- generative-ai/snippets/gemini-audio-summarization.js | 2 -- generative-ai/snippets/gemini-audio-transcription.js | 2 -- generative-ai/snippets/gemini-pdf.js | 2 -- generative-ai/snippets/gemini-system-instruction.js | 2 -- generative-ai/snippets/gemini-text-input.js | 2 -- 6 files changed, 12 deletions(-) diff --git a/generative-ai/snippets/gemini-all-modalities.js b/generative-ai/snippets/gemini-all-modalities.js index 40a913ca72..7ec40e6b4b 100644 --- a/generative-ai/snippets/gemini-all-modalities.js +++ b/generative-ai/snippets/gemini-all-modalities.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_all_modalities] const {GoogleGenAI} = require('@google/genai'); /** @@ -62,7 +61,6 @@ async function analyze_all_modalities( console.log(response.text); } -// [END generativeaionvertexai_gemini_all_modalities] analyze_all_modalities(...process.argv.slice(2)).catch(err => { console.error(err.message); diff --git a/generative-ai/snippets/gemini-audio-summarization.js b/generative-ai/snippets/gemini-audio-summarization.js index 067a335954..e809350f56 100644 --- a/generative-ai/snippets/gemini-audio-summarization.js +++ b/generative-ai/snippets/gemini-audio-summarization.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_audio_summarization] const {GoogleGenAI} = require('@google/genai'); /** * TODO(developer): Update these variables before running the sample. @@ -47,7 +46,6 @@ async function summarize_audio( console.log(response.text); } -// [END generativeaionvertexai_gemini_audio_summarization] summarize_audio(...process.argv.slice(2)).catch(err => { console.error(err.message); diff --git a/generative-ai/snippets/gemini-audio-transcription.js b/generative-ai/snippets/gemini-audio-transcription.js index 568791ea1e..447eaf81ae 100644 --- a/generative-ai/snippets/gemini-audio-transcription.js +++ b/generative-ai/snippets/gemini-audio-transcription.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_audio_transcription] const {GoogleGenAI} = require('@google/genai'); /** @@ -47,7 +46,6 @@ async function transcript_audio( console.log(response.text); } -// [END generativeaionvertexai_gemini_audio_transcription] transcript_audio(...process.argv.slice(2)).catch(err => { console.error(err.message); diff --git a/generative-ai/snippets/gemini-pdf.js b/generative-ai/snippets/gemini-pdf.js index bc9c6ecae5..f4e19c4ebe 100644 --- a/generative-ai/snippets/gemini-pdf.js +++ b/generative-ai/snippets/gemini-pdf.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_pdf] const {GoogleGenAI} = require('@google/genai'); /** @@ -48,7 +47,6 @@ async function analyze_pdf( console.log(response.text); } -// [END generativeaionvertexai_gemini_pdf] analyze_pdf(...process.argv.slice(2)).catch(err => { console.error(err.message); diff --git a/generative-ai/snippets/gemini-system-instruction.js b/generative-ai/snippets/gemini-system-instruction.js index 5d9f845b91..438df205b7 100644 --- a/generative-ai/snippets/gemini-system-instruction.js +++ b/generative-ai/snippets/gemini-system-instruction.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_system_instruction] const {GoogleGenAI} = require('@google/genai'); /** @@ -49,7 +48,6 @@ async function set_system_instruction( console.log(response.text); } -// [END generativeaionvertexai_gemini_system_instruction] set_system_instruction(...process.argv.slice(2)).catch(err => { console.error(err.message); diff --git a/generative-ai/snippets/gemini-text-input.js b/generative-ai/snippets/gemini-text-input.js index 44b4905894..17eadb9ecd 100644 --- a/generative-ai/snippets/gemini-text-input.js +++ b/generative-ai/snippets/gemini-text-input.js @@ -12,7 +12,6 @@ // See the License for the specific language governing permissions and // limitations under the License. -// [START generativeaionvertexai_gemini_generate_from_text_input] const {GoogleGenAI} = require('@google/genai'); /** * TODO(developer): Update these variables before running the sample. @@ -37,7 +36,6 @@ async function generate_from_text_input( console.log(response.text); } -// [END generativeaionvertexai_gemini_generate_from_text_input] generate_from_text_input(...process.argv.slice(2)).catch(err => { console.error(err.message);