File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // [START generativeaionvertexai_gemini_all_modalities]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716
1817/**
@@ -62,7 +61,6 @@ async function analyze_all_modalities(
6261
6362 console . log ( response . text ) ;
6463}
65- // [END generativeaionvertexai_gemini_all_modalities]
6664
6765analyze_all_modalities ( ...process . argv . slice ( 2 ) ) . catch ( err => {
6866 console . error ( err . message ) ;
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // [START generativeaionvertexai_gemini_audio_summarization]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716/**
1817 * TODO(developer): Update these variables before running the sample.
@@ -47,7 +46,6 @@ async function summarize_audio(
4746
4847 console . log ( response . text ) ;
4948}
50- // [END generativeaionvertexai_gemini_audio_summarization]
5149
5250summarize_audio ( ...process . argv . slice ( 2 ) ) . catch ( err => {
5351 console . error ( err . message ) ;
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // [START generativeaionvertexai_gemini_audio_transcription]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716
1817/**
@@ -47,7 +46,6 @@ async function transcript_audio(
4746
4847 console . log ( response . text ) ;
4948}
50- // [END generativeaionvertexai_gemini_audio_transcription]
5149
5250transcript_audio ( ...process . argv . slice ( 2 ) ) . catch ( err => {
5351 console . error ( err . message ) ;
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // [START generativeaionvertexai_gemini_pdf]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716
1817/**
@@ -48,7 +47,6 @@ async function analyze_pdf(
4847
4948 console . log ( response . text ) ;
5049}
51- // [END generativeaionvertexai_gemini_pdf]
5250
5351analyze_pdf ( ...process . argv . slice ( 2 ) ) . catch ( err => {
5452 console . error ( err . message ) ;
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // [START generativeaionvertexai_gemini_system_instruction]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716
1817/**
@@ -49,7 +48,6 @@ async function set_system_instruction(
4948
5049 console . log ( response . text ) ;
5150}
52- // [END generativeaionvertexai_gemini_system_instruction]
5351
5452set_system_instruction ( ...process . argv . slice ( 2 ) ) . catch ( err => {
5553 console . error ( err . message ) ;
Original file line number Diff line number Diff line change 1212// See the License for the specific language governing permissions and
1313// limitations under the License.
1414
15- // [START generativeaionvertexai_gemini_generate_from_text_input]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716/**
1817 * TODO(developer): Update these variables before running the sample.
@@ -37,7 +36,6 @@ async function generate_from_text_input(
3736
3837 console . log ( response . text ) ;
3938}
40- // [END generativeaionvertexai_gemini_generate_from_text_input]
4139
4240generate_from_text_input ( ...process . argv . slice ( 2 ) ) . catch ( err => {
4341 console . error ( err . message ) ;
You can’t perform that action at this time.
0 commit comments