Skip to content

Commit 739cd5a

Browse files
angelcaamaliennae
andauthored
remove decommission count token region tags (GoogleCloudPlatform#4362)
Co-authored-by: Jennifer Davis <sigje@google.com>
1 parent 99de4de commit 739cd5a

2 files changed

Lines changed: 0 additions & 4 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);

0 commit comments

Comments
 (0)