Skip to content

Commit

Permalink
test: fix unit test cases
Browse files Browse the repository at this point in the history
  • Loading branch information
JacksonTian committed Apr 18, 2024
1 parent 9d0db19 commit b188cfd
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions test/kimi.test.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,7 @@ describe('kimi', () => {
try {
await client.putFile(path.join(__dirname, './figures/invalid_format.txt'), 'file-extract');
} catch (ex) {
assert.strictEqual(ex.message, 'invalid_request_error: file size is zero');
assert.strictEqual(ex.message, 'invalid_request_error: File size is zero, please confirm and re-upload the file');
return;
}

Expand Down Expand Up @@ -96,7 +96,7 @@ describe('kimi', () => {
], {
model: 'moonshot-v1-128k'
});
assert.deepStrictEqual(results, { code: 0, data: { total_tokens: 4 }, scode: '0x0', status: true });
assert.deepStrictEqual(results, { code: 0, data: { total_tokens: 8 }, scode: '0x0', status: true });
});

});

0 comments on commit b188cfd

Please sign in to comment.