Skip to content

Commit c105b5b

Browse files
author
Guiners
committed
adding count token
1 parent a169efc commit c105b5b

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

genai/count-tokens/counttoken-localtokenizer-compute-with-txt.js

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ const {GoogleGenAI} = require('@google/genai');
2020
const GOOGLE_CLOUD_PROJECT = process.env.GOOGLE_CLOUD_PROJECT;
2121
const GOOGLE_CLOUD_LOCATION = process.env.GOOGLE_CLOUD_LOCATION || 'global';
2222

23-
async function counttokenLocalTokenizerCompute() {
23+
async function countTokenLocalTokenizerCompute() {
2424
const client = new GoogleGenAI({
2525
vertexai: true,
2626
project: GOOGLE_CLOUD_PROJECT,
@@ -51,5 +51,5 @@ async function counttokenLocalTokenizerCompute() {
5151
// [END googlegenaisdk_counttoken_localtokenizer_compute_with_txt]
5252

5353
module.exports = {
54-
counttokenLocalTokenizerCompute,
54+
countTokenLocalTokenizerCompute,
5555
};

genai/test/counttoken-localtokenizer-compute-with-txt.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ describe('counttoken-localtokenizer-compute-with-txt', () => {
2626
this.timeout(18000);
2727
this.retries(4);
2828
await delay(this.test);
29-
const output = await sample.counttokenLocalTokenizerCompute(projectId);
29+
const output = await sample.countTokenLocalTokenizerCompute(projectId);
3030
assert(output.length > 0);
3131
});
3232
});

0 commit comments

Comments
 (0)