Skip to content

Commit b5c7510

Browse files
authored
Merge branch 'main' into feat-bucket-ip-filter
2 parents 5ce6848 + 739cd5a commit b5c7510

4 files changed

Lines changed: 0 additions & 8 deletions

File tree

generative-ai/snippets/count-tokens/countTokens.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// [START generativeaionvertexai_gemini_token_count]
1615
const {GoogleGenAI} = require('@google/genai');
1716

1817
/**
@@ -51,7 +50,6 @@ async function countTokens(
5150
const usageMetadata = result.usageMetadata;
5251
console.log('Response tokens count: ', usageMetadata);
5352
}
54-
// [END generativeaionvertexai_gemini_token_count]
5553

5654
countTokens(...process.argv.slice(2)).catch(err => {
5755
console.error(err.message);

generative-ai/snippets/count-tokens/countTokensAdvanced.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// [START generativeaionvertexai_gemini_token_count_advanced]
1615
const {GoogleGenAI} = require('@google/genai');
1716
/**
1817
* TODO(developer): Update these variables before running the sample.
@@ -63,7 +62,6 @@ async function countTokens(
6362
console.log('Candidates Token Count:', usageMetadata.candidatesTokenCount);
6463
console.log('Total Token Count:', usageMetadata.totalTokenCount);
6564
}
66-
// [END generativeaionvertexai_gemini_token_count_advanced]
6765

6866
countTokens(...process.argv.slice(2)).catch(err => {
6967
console.error(err.message);

generative-ai/snippets/grounding/groundingPrivateDataBasic.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// [START generativeaionvertexai_grounding_private_data_basic]
1615
const {GoogleGenAI} = require('@google/genai');
1716

1817
/**
@@ -62,7 +61,6 @@ async function generateContentWithVertexAISearchGrounding(
6261
JSON.stringify(result.candidates[0].groundingMetadata)
6362
);
6463
}
65-
// [END generativeaionvertexai_grounding_private_data_basic]
6664

6765
generateContentWithVertexAISearchGrounding(...process.argv.slice(2)).catch(
6866
err => {

generative-ai/snippets/grounding/groundingPublicDataBasic.js

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,6 @@
1212
// See the License for the specific language governing permissions and
1313
// limitations under the License.
1414

15-
// [START generativeaionvertexai_grounding_public_data_basic]
1615
const {GoogleGenAI} = require('@google/genai');
1716

1817
/**
@@ -48,7 +47,6 @@ async function generateContentWithGoogleSearchGrounding(
4847
JSON.stringify(result.candidates[0].groundingMetadata)
4948
);
5049
}
51-
// [END generativeaionvertexai_grounding_public_data_basic]
5250

5351
generateContentWithGoogleSearchGrounding(...process.argv.slice(2)).catch(
5452
err => {

0 commit comments

Comments
 (0)