Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions generative-ai/snippets/gemini-video-audio.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START generativeaionvertexai_gemini_video_with_audio]
const {GoogleGenAI} = require('@google/genai');
/**
* TODO(developer): Update these variables before running the sample.
Expand Down Expand Up @@ -47,7 +46,6 @@ async function analyze_video_with_audio(

console.log(response.text);
}
// [END generativeaionvertexai_gemini_video_with_audio]

analyze_video_with_audio(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
4 changes: 0 additions & 4 deletions generative-ai/snippets/nonStreamingChat.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START generativeaionvertexai_gemini_multiturn_chat_nonstreaming]
// [START aiplatform_gemini_multiturn_chat_nonstreaming]
const {GoogleGenAI} = require('@google/genai');
/**
* TODO(developer): Update these variables before running the sample.
Expand Down Expand Up @@ -47,8 +45,6 @@ async function createNonStreamingChat(
});
console.log('Chat response 3: ', response3.text);
}
// [END aiplatform_gemini_multiturn_chat_nonstreaming]
// [END generativeaionvertexai_gemini_multiturn_chat_nonstreaming]

createNonStreamingChat(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
2 changes: 0 additions & 2 deletions generative-ai/snippets/nonStreamingMultipartContent.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START generativeaionvertexai_gemini_get_started]
const {VertexAI} = require('@google-cloud/vertexai');

/**
Expand Down Expand Up @@ -63,7 +62,6 @@ async function createNonStreamingMultipartContent(

console.log(fullTextResponse);
}
// [END generativeaionvertexai_gemini_get_started]

createNonStreamingMultipartContent(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
2 changes: 0 additions & 2 deletions generative-ai/snippets/safetySettings.js
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,6 @@
// See the License for the specific language governing permissions and
// limitations under the License.

// [START generativeaionvertexai_gemini_safety_settings]
const {
VertexAI,
HarmCategory,
Expand Down Expand Up @@ -69,7 +68,6 @@ async function setSafetySettings() {
}
console.log('This response stream terminated due to safety concerns.');
}
// [END generativeaionvertexai_gemini_safety_settings]

setSafetySettings().catch(err => {
console.error(err.message);
Expand Down
Loading