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_video_with_audio]
1615const { GoogleGenAI} = require ( '@google/genai' ) ;
1716/**
1817 * TODO(developer): Update these variables before running the sample.
@@ -47,7 +46,6 @@ async function analyze_video_with_audio(
4746
4847 console . log ( response . text ) ;
4948}
50- // [END generativeaionvertexai_gemini_video_with_audio]
5149
5250analyze_video_with_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_multiturn_chat_nonstreaming]
16- // [START aiplatform_gemini_multiturn_chat_nonstreaming]
1715const { GoogleGenAI} = require ( '@google/genai' ) ;
1816/**
1917 * TODO(developer): Update these variables before running the sample.
@@ -47,8 +45,6 @@ async function createNonStreamingChat(
4745 } ) ;
4846 console . log ( 'Chat response 3: ' , response3 . text ) ;
4947}
50- // [END aiplatform_gemini_multiturn_chat_nonstreaming]
51- // [END generativeaionvertexai_gemini_multiturn_chat_nonstreaming]
5248
5349createNonStreamingChat ( ...process . argv . slice ( 2 ) ) . catch ( err => {
5450 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_get_started]
1615const { VertexAI} = require ( '@google-cloud/vertexai' ) ;
1716
1817/**
@@ -63,7 +62,6 @@ async function createNonStreamingMultipartContent(
6362
6463 console . log ( fullTextResponse ) ;
6564}
66- // [END generativeaionvertexai_gemini_get_started]
6765
6866createNonStreamingMultipartContent ( ...process . argv . slice ( 2 ) ) . catch ( err => {
6967 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_safety_settings]
1615const {
1716 VertexAI,
1817 HarmCategory,
@@ -69,7 +68,6 @@ async function setSafetySettings() {
6968 }
7069 console . log ( 'This response stream terminated due to safety concerns.' ) ;
7170}
72- // [END generativeaionvertexai_gemini_safety_settings]
7371
7472setSafetySettings ( ) . catch ( err => {
7573 console . error ( err . message ) ;
You can’t perform that action at this time.
0 commit comments