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

Commit

Permalink
use cheaper models in test
Browse files Browse the repository at this point in the history
  • Loading branch information
patcher9 committed Mar 24, 2024
1 parent 921708d commit 4048c81
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions tests/anthropic.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ describe('Anthropic Test', () => {
DokuMetry.init({llm: anthropic, dokuUrl: process.env.DOKU_URL, apiKey: process.env.DOKU_TOKEN, environment: "dokumetry-testing", applicationName: "dokumetry-node-test", skipResp: false});
try {
const message = await anthropic.messages.create({
model: "claude-3-opus-20240229",
model: "claude-3-haiku-20240307",
max_tokens: 1,
messages: [{ role: "user", content: "How to monitor LLM Applications in one sentence?" }],
});
Expand All @@ -30,7 +30,7 @@ describe('Anthropic Test', () => {
var stream = await anthropic.messages.create({
max_tokens: 1,
messages: [{ role: 'user', content: 'How to monitor LLM Applications in one sentence?' }],
model: 'claude-3-opus-20240229',
model: 'claude-3-haiku-20240307',
stream: true,
});
for await (const messageStreamEvent of stream) {
Expand Down
2 changes: 1 addition & 1 deletion tests/mistral.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ describe('Mistral Test', () => {
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});
const message = await client.chat({
model: 'mistral-large-latest',
model: 'open-mistral-7b',
messages: [{role: 'user', content: 'What is LLM Observability?'}],
maxTokens: 1,
});
Expand Down

0 comments on commit 4048c81

Please sign in to comment.