-
Notifications
You must be signed in to change notification settings - Fork 2.4k
Set Claude Sonnet 4.5 as default for key providers #8922
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -22,6 +22,18 @@ vitest.mock("../fetchers/modelCache", () => ({ | |
| description: "Claude 3.5 Sonnet", | ||
| thinking: false, | ||
| }, | ||
| "anthropic/claude-sonnet-4-5": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200000, | ||
| supportsImages: true, | ||
| supportsPromptCache: true, | ||
| inputPrice: 3, | ||
| outputPrice: 15, | ||
| cacheWritesPrice: 3.75, | ||
| cacheReadsPrice: 0.3, | ||
| description: "Claude 4.5 Sonnet", | ||
| thinking: false, | ||
| }, | ||
| "anthropic/claude-3-7-sonnet-20250219": { | ||
| maxTokens: 8192, | ||
| contextWindow: 200000, | ||
|
|
@@ -312,7 +324,7 @@ describe("UnboundHandler", () => { | |
| it("should return default model when invalid model provided", async () => { | ||
| const handlerWithInvalidModel = new UnboundHandler({ ...mockOptions, unboundModelId: "invalid/model" }) | ||
| const modelInfo = await handlerWithInvalidModel.fetchModel() | ||
| expect(modelInfo.id).toBe("anthropic/claude-3-7-sonnet-20250219") | ||
| expect(modelInfo.id).toBe("anthropic/claude-sonnet-4-5") | ||
|
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This test expects the new default model |
||
| expect(modelInfo.info).toBeDefined() | ||
| }) | ||
| }) | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This test expects the new default model
anthropic/claude-sonnet-4.5, but the mock data ingetModels(lines 17-44) doesn't include this model. The mock only includesanthropic/claude-sonnet-4. This mismatch will cause the test to either fail or return undefined model info when it should return valid model information.