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

Commit

Permalink
max tokens as 1
Browse files Browse the repository at this point in the history
  • Loading branch information
patcher9 committed Mar 24, 2024
1 parent 4832271 commit 921708d
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 @@ -13,7 +13,7 @@ describe('Anthropic Test', () => {
try {
const message = await anthropic.messages.create({
model: "claude-3-opus-20240229",
max_tokens: 10,
max_tokens: 1,
messages: [{ role: "user", content: "How to monitor LLM Applications in one sentence?" }],
});
expect(message.type).to.equal('message');
Expand All @@ -28,7 +28,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 {
var stream = await anthropic.messages.create({
max_tokens: 10,
max_tokens: 1,
messages: [{ role: 'user', content: 'How to monitor LLM Applications in one sentence?' }],
model: 'claude-3-opus-20240229',
stream: true,
Expand Down
2 changes: 1 addition & 1 deletion tests/mistral.test.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ describe('Mistral Test', () => {
const message = await client.chat({
model: 'mistral-large-latest',
messages: [{role: 'user', content: 'What is LLM Observability?'}],
maxTokens: 10,
maxTokens: 1,
});

expect(message.object).to.equal('chat.completion');
Expand Down

0 comments on commit 921708d

Please sign in to comment.