Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/api/providers/__tests__/cerebras.spec.ts
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ describe("CerebrasHandler", () => {
it("should fallback to default model when apiModelId is not provided", () => {
const handlerWithoutModel = new CerebrasHandler({ cerebrasApiKey: "test" })
const { id } = handlerWithoutModel.getModel()
expect(id).toBe("qwen-3-coder-480b") // cerebrasDefaultModelId (routed)
expect(id).toBe("gpt-oss-120b") // cerebrasDefaultModelId
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test expectation is incorrect. The actual code returns "qwen-3-coder-480b" because: (1) cerebrasDefaultModelId is still set to "qwen-3-coder-480b-free" in the types package, and (2) the getModel() method routes "qwen-3-coder-480b-free" to "qwen-3-coder-480b" (see lines 107-109 in cerebras.ts). To fix this, either update cerebrasDefaultModelId to "gpt-oss-120b" in packages/types/src/providers/cerebras.ts, or change this expectation back to "qwen-3-coder-480b".

})
})

Expand Down
Loading