mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-06 16:10:49 +00:00
fix: update Copilot Opus default to 4.7
This commit is contained in:
@@ -31,7 +31,7 @@ provider in two different ways.
|
||||
</Step>
|
||||
<Step title="Set a default model">
|
||||
```bash
|
||||
openclaw models set github-copilot/claude-opus-4.6
|
||||
openclaw models set github-copilot/claude-opus-4.7
|
||||
```
|
||||
|
||||
Or in config:
|
||||
@@ -39,7 +39,7 @@ provider in two different ways.
|
||||
```json5
|
||||
{
|
||||
agents: {
|
||||
defaults: { model: { primary: "github-copilot/claude-opus-4.6" } },
|
||||
defaults: { model: { primary: "github-copilot/claude-opus-4.7" } },
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
@@ -69,7 +69,7 @@ export default definePluginEntry({
|
||||
credential,
|
||||
},
|
||||
],
|
||||
defaultModel: "github-copilot/claude-opus-4.6",
|
||||
defaultModel: "github-copilot/claude-opus-4.7",
|
||||
};
|
||||
}
|
||||
|
||||
|
||||
@@ -8,7 +8,7 @@ const DEFAULT_MAX_TOKENS = 8192;
|
||||
// We keep this list intentionally broad; if a model isn't available Copilot will
|
||||
// return an error and users can remove it from their config.
|
||||
const DEFAULT_MODEL_IDS = [
|
||||
"claude-opus-4.6",
|
||||
"claude-opus-4.7",
|
||||
"claude-sonnet-4.6",
|
||||
"claude-sonnet-4.5",
|
||||
"gpt-4o",
|
||||
|
||||
@@ -63,8 +63,9 @@ function requireResolvedModel(ctx: ProviderResolveDynamicModelContext) {
|
||||
|
||||
describe("github-copilot model defaults", () => {
|
||||
describe("getDefaultCopilotModelIds", () => {
|
||||
it("includes claude-opus-4.6", () => {
|
||||
expect(getDefaultCopilotModelIds()).toContain("claude-opus-4.6");
|
||||
it("includes claude-opus-4.7", () => {
|
||||
expect(getDefaultCopilotModelIds()).toContain("claude-opus-4.7");
|
||||
expect(getDefaultCopilotModelIds()).not.toContain("claude-opus-4.6");
|
||||
});
|
||||
|
||||
it("includes claude-sonnet-4.6", () => {
|
||||
|
||||
@@ -347,7 +347,7 @@ export function describeGithubCopilotProviderAuthContract(load: ProviderAuthCont
|
||||
},
|
||||
},
|
||||
],
|
||||
defaultModel: "github-copilot/claude-opus-4.6",
|
||||
defaultModel: "github-copilot/claude-opus-4.7",
|
||||
});
|
||||
} finally {
|
||||
if (previousIsTTYDescriptor) {
|
||||
|
||||
Reference in New Issue
Block a user