Skip to content

Commit 60580c4

Browse files
saju01steipete
authored andcommitted
feat(github-copilot): add Claude Opus 4.8 to default model catalog
GitHub Copilot now serves claude-opus-4.8 (verified via live /models endpoint), but the static default catalog stopped at 4.7, so the model was invisible in the picker and 'openclaw models list' until added manually. Add it to both the manifest and the defaults list, mirroring the existing 4.7 metadata shape.
1 parent e0e7bae commit 60580c4

3 files changed

Lines changed: 14 additions & 0 deletions

File tree

extensions/github-copilot/models-defaults.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ const DEFAULT_MAX_TOKENS = 8192;
1414
const DEFAULT_MODEL_IDS = [
1515
"claude-opus-4.6",
1616
"claude-opus-4.7",
17+
"claude-opus-4.8",
1718
"claude-sonnet-4.6",
1819
"gemini-2.5-pro",
1920
"gemini-3-flash",

extensions/github-copilot/models.test.ts

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -59,6 +59,10 @@ describe("github-copilot model defaults", () => {
5959
expect(getDefaultCopilotModelIds()).toContain("claude-opus-4.6");
6060
});
6161

62+
it("includes claude-opus-4.8", () => {
63+
expect(getDefaultCopilotModelIds()).toContain("claude-opus-4.8");
64+
});
65+
6266
it("includes claude-sonnet-4.6", () => {
6367
expect(getDefaultCopilotModelIds()).toContain("claude-sonnet-4.6");
6468
});

extensions/github-copilot/openclaw.plugin.json

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -42,6 +42,15 @@
4242
"maxTokens": 8192,
4343
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
4444
},
45+
{
46+
"id": "claude-opus-4.8",
47+
"name": "Claude Opus 4.8",
48+
"api": "anthropic-messages",
49+
"input": ["text", "image"],
50+
"contextWindow": 128000,
51+
"maxTokens": 8192,
52+
"cost": { "input": 0, "output": 0, "cacheRead": 0, "cacheWrite": 0 }
53+
},
4554
{
4655
"id": "claude-sonnet-4.6",
4756
"name": "Claude Sonnet 4.6",

0 commit comments

Comments
 (0)