Skip to content

Commit bec2e8a

Browse files
author
Guiners
committed
adding samples, test, lints
1 parent f4d9a1d commit bec2e8a

2 files changed

Lines changed: 2 additions & 2 deletions

File tree

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const projectId = process.env.CAIP_PROJECT_ID;
2121
const sample = require('../count-tokens/counttoken-compute-with-txt.js');
2222

2323
describe('counttoken-compute-with-txt', async () => {
24-
it('should return the total token count for a text prompt', async () => {
24+
it('should return tokensInfo from text prompt', async () => {
2525
const output = await sample.countTokens(projectId);
2626
assert(output.length > 0);
2727
});

genai/test/counttoken-resp-with-txt.test.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ const projectId = process.env.CAIP_PROJECT_ID;
2121
const sample = require('../count-tokens/counttoken-resp-with-txt.js');
2222

2323
describe('counttoken-resp-with-txt', async () => {
24-
it('should return the total token count for a text prompt', async () => {
24+
it('should return the usageMetadata from text prompt', async () => {
2525
const output = await sample.countTokens(projectId);
2626
assert.notEqual(output, undefined);
2727
});

0 commit comments

Comments
 (0)