|
2 | 2 |
|
3 | 3 | import { Anthropic } from "@anthropic-ai/sdk" |
4 | 4 |
|
5 | | -import { ApiHandlerOptions, unboundDefaultModelId } from "../../../shared/api" |
| 5 | +import { ApiHandlerOptions } from "../../../shared/api" |
6 | 6 |
|
7 | 7 | import { UnboundHandler } from "../unbound" |
8 | 8 |
|
@@ -70,7 +70,7 @@ describe("UnboundHandler", () => { |
70 | 70 | beforeEach(() => { |
71 | 71 | mockOptions = { |
72 | 72 | unboundApiKey: "test-api-key", |
73 | | - unboundModelId: unboundDefaultModelId, |
| 73 | + unboundModelId: "anthropic/claude-3-5-sonnet-20241022", |
74 | 74 | } |
75 | 75 |
|
76 | 76 | handler = new UnboundHandler(mockOptions) |
@@ -133,7 +133,7 @@ describe("UnboundHandler", () => { |
133 | 133 |
|
134 | 134 | expect(mockCreate).toHaveBeenCalledWith( |
135 | 135 | expect.objectContaining({ |
136 | | - model: "claude-3-7-sonnet-20250219", |
| 136 | + model: "claude-3-5-sonnet-20241022", |
137 | 137 | messages: expect.any(Array), |
138 | 138 | stream: true, |
139 | 139 | }), |
@@ -174,7 +174,7 @@ describe("UnboundHandler", () => { |
174 | 174 |
|
175 | 175 | expect(mockCreate).toHaveBeenCalledWith( |
176 | 176 | expect.objectContaining({ |
177 | | - model: "claude-3-7-sonnet-20250219", |
| 177 | + model: "claude-3-5-sonnet-20241022", |
178 | 178 | messages: [{ role: "user", content: "Test prompt" }], |
179 | 179 | temperature: 0, |
180 | 180 | max_tokens: 8192, |
|
0 commit comments