Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const {assert} = require('chai');
const {describe, it} = require('mocha');

const projectId = process.env.CAIP_PROJECT_ID;
const sample = require('../counttoken-localtokenizer-compute-with-txt.js');
const sample = require('../counttoken-compute-with-txt.js');
const {delay} = require('../../test/util');

describe('counttoken-localtokenizer-compute-with-txt', () => {
it('should return tokensInfo from text prompt', async function () {
this.timeout(18000);
this.retries(4);
await delay(this.test);
const output = await sample.countTokenLocalTokenizerCompute(projectId);
const output = await sample.countTokens(projectId);
assert(output.length > 0);
});
});
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ const {assert} = require('chai');
const {describe, it} = require('mocha');

const projectId = process.env.CAIP_PROJECT_ID;
const sample = require('../counttoken-localtokenizer-with-txt.js');
const sample = require('../counttoken-with-txt.js');
const {delay} = require('../../test/util');

describe('counttoken-localtokenizer-with-txt', () => {
it('should return totalTokens from text prompt', async function () {
this.timeout(18000);
this.retries(4);
await delay(this.test);
const output = await sample.countTokenLocalTokenizer(projectId);
const output = await sample.countTokens(projectId);
assert(output > 0);
});
});
Loading