Skip to content
This repository has been archived by the owner on Apr 18, 2024. It is now read-only.

Commit

Permalink
add timeout
Browse files Browse the repository at this point in the history
  • Loading branch information
patcher9 committed Mar 14, 2024
1 parent 1c2a9e3 commit e665c8c
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion tests/anthropic.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -16,5 +16,5 @@ describe('Anthropic Test', () => {
});

expect(message.type).to.equal('message');
}).timeout(10000);
}).timeout(30000);
});
4 changes: 2 additions & 2 deletions tests/mistral.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@ describe('Mistral Test', () => {
});

expect(message.object).to.equal('list');
}).timeout(10000);
}).timeout(30000);

it('should return a response with object as "chat.completion"', async () => {
DokuMetry.init({llm: client, dokuUrl: process.env.DOKU_URL, apiKey: process.env.DOKU_TOKEN, environment: "dokumetry-testing", applicationName: "dokumetry-node-test", skipResp: false});
Expand All @@ -28,5 +28,5 @@ describe('Mistral Test', () => {
});

expect(message.object).to.equal('chat.completion');
}).timeout(10000);
}).timeout(30000);
});
6 changes: 3 additions & 3 deletions tests/openai.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ describe('OpenAI Test', () => {
});

expect(chatCompletion.object).to.equal('chat.completion');
});
}).timeout(30000);;

it('should return a response with object as "text_completion"', async () => {
await DokuMetry.init({llm: openai, dokuUrl: process.env.DOKU_URL, apiKey: process.env.DOKU_TOKEN, environment: "dokumetry-testing", applicationName: "dokumetry-node-test", skipResp: false});
Expand All @@ -31,7 +31,7 @@ describe('OpenAI Test', () => {
});

expect(completion.object).to.equal('text_completion');
});
}).timeout(30000);;

it('should return a response with object as "embedding"', async () => {
await DokuMetry.init({llm: openai, dokuUrl: process.env.DOKU_URL, apiKey: process.env.DOKU_TOKEN, environment: "dokumetry-testing", applicationName: "dokumetry-node-test", skipResp: false});
Expand All @@ -42,7 +42,7 @@ describe('OpenAI Test', () => {
});

expect(embeddings.data[0].object).to.equal('embedding');
});
}).timeout(30000);;

it('should return a response with object as "fine_tuning.job"', async () => {
await DokuMetry.init({llm: openai, dokuUrl: process.env.DOKU_URL, apiKey: process.env.DOKU_TOKEN, environment: "dokumetry-testing", applicationName: "dokumetry-node-test", skipResp: false});
Expand Down

0 comments on commit e665c8c

Please sign in to comment.