Skip to content
Open
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
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_non_stream_multimodality_basic]
const {GoogleGenAI} = require('@google/genai');
/**
* TODO(developer): Update these variables before running the sample.
Expand Down Expand Up @@ -56,7 +55,6 @@ async function generateContent(

console.log(result.text);
}
// [END generativeaionvertexai_non_stream_multimodality_basic]

generateContent(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
2 changes: 0 additions & 2 deletions generative-ai/snippets/inference/nonStreamTextBasic.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_non_stream_text_basic]
const {GoogleGenAI} = require('@google/genai');
/**
* TODO(developer): Update these variables before running the sample.
Expand Down Expand Up @@ -50,7 +49,6 @@ async function generateContent(

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

generateContent(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
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_stream_multimodality_basic]
const {GoogleGenAI} = require('@google/genai');

/**
Expand Down Expand Up @@ -62,7 +61,6 @@ async function generateContent(
console.log(chunk.text);
}
}
// [END generativeaionvertexai_stream_multimodality_basic]

generateContent(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
2 changes: 0 additions & 2 deletions generative-ai/snippets/inference/streamTextBasic.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_stream_text_basic]
const {GoogleGenAI} = require('@google/genai');

/**
Expand Down Expand Up @@ -52,7 +51,6 @@ async function generateContent(
console.log(chunk.text);
}
}
// [END generativeaionvertexai_stream_text_basic]

generateContent(...process.argv.slice(2)).catch(err => {
console.error(err.message);
Expand Down
Loading