Skip to content

Commit 5b09028

Browse files
committed
fix: anthropic openai adapters max tokens
1 parent 5fb9b5f commit 5b09028

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

packages/openai-adapters/src/test/anthropic-adapter.vitest.ts

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { describe, test, vi, expect, afterEach } from "vitest";
1+
import { afterEach, describe, expect, test, vi } from "vitest";
22
import { runAdapterTest } from "./adapter-test-utils.js";
33

44
// Mock the fetch package
@@ -53,7 +53,7 @@ describe("Anthropic Adapter Tests", () => {
5353
messages: [{ role: "user", content: "hello" }],
5454
system: undefined,
5555
model: "claude-3-5-sonnet-20241022",
56-
max_tokens: 4096,
56+
max_tokens: 32000,
5757
stream: undefined,
5858
},
5959
},
@@ -107,7 +107,7 @@ describe("Anthropic Adapter Tests", () => {
107107
messages: [{ role: "user", content: "hello" }],
108108
system: undefined,
109109
model: "claude-3-5-sonnet-20241022",
110-
max_tokens: 4096,
110+
max_tokens: 32000,
111111
stream: true,
112112
},
113113
},
@@ -168,7 +168,7 @@ describe("Anthropic Adapter Tests", () => {
168168
},
169169
],
170170
model: "claude-3-5-sonnet-20241022",
171-
max_tokens: 4096,
171+
max_tokens: 32000,
172172
stream: true,
173173
},
174174
},

0 commit comments

Comments
 (0)