|
|
@@ -236,6 +236,46 @@ describe("ClaudeCodeHandler", () => {
|
|
|
model.id.should.equal("claude-sonnet-4-5-20250929")
|
|
|
})
|
|
|
|
|
|
+ it("should support Opus 4.6 1m model id", () => {
|
|
|
+ const handler = new ClaudeCodeHandler({
|
|
|
+ apiModelId: "claude-opus-4-6[1m]",
|
|
|
+ })
|
|
|
+
|
|
|
+ const model = handler.getModel()
|
|
|
+ model.id.should.equal("claude-opus-4-6[1m]")
|
|
|
+ model.info.contextWindow.should.equal(1_000_000)
|
|
|
+ })
|
|
|
+
|
|
|
+ it("should support Opus 1m alias model id", () => {
|
|
|
+ const handler = new ClaudeCodeHandler({
|
|
|
+ apiModelId: "opus[1m]",
|
|
|
+ })
|
|
|
+
|
|
|
+ const model = handler.getModel()
|
|
|
+ model.id.should.equal("opus[1m]")
|
|
|
+ model.info.contextWindow.should.equal(1_000_000)
|
|
|
+ })
|
|
|
+
|
|
|
+ it("should support Sonnet 1m alias model id", () => {
|
|
|
+ const handler = new ClaudeCodeHandler({
|
|
|
+ apiModelId: "sonnet[1m]",
|
|
|
+ })
|
|
|
+
|
|
|
+ const model = handler.getModel()
|
|
|
+ model.id.should.equal("sonnet[1m]")
|
|
|
+ model.info.contextWindow.should.equal(1_000_000)
|
|
|
+ })
|
|
|
+
|
|
|
+ it("should support Sonnet 4.5 1m model id", () => {
|
|
|
+ const handler = new ClaudeCodeHandler({
|
|
|
+ apiModelId: "claude-sonnet-4-5-20250929[1m]",
|
|
|
+ })
|
|
|
+
|
|
|
+ const model = handler.getModel()
|
|
|
+ model.id.should.equal("claude-sonnet-4-5-20250929[1m]")
|
|
|
+ model.info.contextWindow.should.equal(1_000_000)
|
|
|
+ })
|
|
|
+
|
|
|
it("should return default model when not specified", () => {
|
|
|
const handler = new ClaudeCodeHandler({})
|
|
|
|