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_single_turn_multi_image]
1615const { VertexAI} = require ( '@google-cloud/vertexai' ) ;
1716const axios = require ( 'axios' ) ;
1817
@@ -93,7 +92,6 @@ async function sendMultiModalPromptWithImage(
9392
9493 console . log ( fullTextResponse ) ;
9594}
96- // [END generativeaionvertexai_gemini_single_turn_multi_image]
9795
9896sendMultiModalPromptWithImage ( ...process . argv . slice ( 2 ) ) . catch ( err => {
9997 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_single_turn_video]
1615const { VertexAI} = require ( '@google-cloud/vertexai' ) ;
1716
1817/**
@@ -60,7 +59,6 @@ async function sendMultiModalPromptWithVideo(
6059
6160 console . log ( fullTextResponse ) ;
6261}
63- // [END generativeaionvertexai_gemini_single_turn_video]
6462
6563sendMultiModalPromptWithVideo ( ...process . argv . slice ( 2 ) ) . catch ( err => {
6664 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_stream]
1615const { VertexAI} = require ( '@google-cloud/vertexai' ) ;
1716
1817/**
@@ -42,8 +41,6 @@ async function createStreamChat(
4241 }
4342}
4443
45- // [END generativeaionvertexai_gemini_multiturn_chat_stream]
46-
4744createStreamChat ( ...process . argv . slice ( 2 ) ) . catch ( err => {
4845 console . error ( err . message ) ;
4946 process . exitCode = 1 ;
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 aiplatform_gemini_get_started]
1615const { VertexAI} = require ( '@google-cloud/vertexai' ) ;
1716
1817/**
@@ -62,7 +61,6 @@ async function createStreamMultipartContent(
6261 process . stdout . write ( item . candidates [ 0 ] . content . parts [ 0 ] . text ) ;
6362 }
6463}
65- // [END aiplatform_gemini_get_started]
6664
6765createStreamMultipartContent ( ...process . argv . slice ( 2 ) ) . catch ( err => {
6866 console . error ( err . message ) ;
You can’t perform that action at this time.
0 commit comments