Skip to content

Commit 63bd4f9

Browse files
committed
test(github-copilot): assert claude-opus-4.8 resolves to 1M ctx + thinking
1 parent 287b680 commit 63bd4f9

1 file changed

Lines changed: 16 additions & 0 deletions

File tree

extensions/github-copilot/models.test.ts

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -121,6 +121,22 @@ describe("github-copilot model defaults", () => {
121121
});
122122
});
123123

124+
it("uses static metadata overrides for claude-opus-4.8 (native 1M + thinking)", () => {
125+
const def = buildCopilotModelDefinition("claude-opus-4.8");
126+
expect(def).toEqual({
127+
id: "claude-opus-4.8",
128+
name: "Claude Opus 4.8",
129+
api: "anthropic-messages",
130+
reasoning: true,
131+
input: ["text", "image"],
132+
cost: { input: 0, output: 0, cacheRead: 0, cacheWrite: 0 },
133+
contextWindow: 1_000_000,
134+
maxTokens: 64_000,
135+
thinkingLevelMap: { xhigh: "xhigh", max: "max" },
136+
compat: { supportedReasoningEfforts: ["low", "medium", "high", "xhigh", "max"] },
137+
});
138+
});
139+
124140
it("trims whitespace from model id", () => {
125141
const def = buildCopilotModelDefinition(" gpt-4o ");
126142
expect(def.id).toBe("gpt-4o");

0 commit comments

Comments
 (0)