Skip to content

Commit 1ed2e27

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

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

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

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

24-
async function counttokenLocalTokenizer() {
24+
async function countTokenLocalTokenizer() {
2525
const client = new GoogleGenAI({
2626
vertexai: true,
2727
project: GOOGLE_CLOUD_PROJECT,
@@ -44,5 +44,5 @@ async function counttokenLocalTokenizer() {
4444
// [END googlegenaisdk_counttoken_localtokenizer_with_txt]
4545

4646
module.exports = {
47-
counttokenLocalTokenizer,
47+
countTokenLocalTokenizer,
4848
};

genai/test/counttoken-localtokenizer-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-with-txt', () => {
2626
this.timeout(18000);
2727
this.retries(4);
2828
await delay(this.test);
29-
const output = await sample.counttokenLocalTokenizer(projectId);
29+
const output = await sample.countTokenLocalTokenizer(projectId);
3030
assert(output > 0);
3131
});
3232
});

0 commit comments

Comments
 (0)