Skip to content

Commit 7dd1cd3

Browse files
authored
feat: 4.7 (#1693)
## TLDR Problem <!-- Who is this for and what problem does it solve? --> <!-- Closes #ISSUE_ID --> ## Changes <!-- Describe what you tested -- manual steps, automated tests, or both. --> <!-- If you're an agent, only list tests you actually ran. -->
1 parent 4726d7c commit 7dd1cd3

3 files changed

Lines changed: 6 additions & 3 deletions

File tree

packages/agent/src/adapters/claude/session/models.ts

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ export const DEFAULT_MODEL = "opus";
33
const GATEWAY_TO_SDK_MODEL: Record<string, string> = {
44
"claude-opus-4-5": "opus",
55
"claude-opus-4-6": "opus",
6+
"claude-opus-4-7": "opus",
67
"claude-sonnet-4-5": "sonnet",
78
"claude-sonnet-4-6": "sonnet",
89
"claude-haiku-4-5": "haiku",
@@ -14,6 +15,7 @@ export function toSdkModelId(modelId: string): string {
1415

1516
const MODELS_WITH_1M_CONTEXT = new Set([
1617
"claude-opus-4-6",
18+
"claude-opus-4-7",
1719
"claude-sonnet-4-6",
1820
]);
1921

@@ -24,10 +26,11 @@ export function supports1MContext(modelId: string): boolean {
2426
const MODELS_WITH_EFFORT = new Set([
2527
"claude-opus-4-5",
2628
"claude-opus-4-6",
29+
"claude-opus-4-7",
2730
"claude-sonnet-4-6",
2831
]);
2932

30-
const MODELS_WITH_MAX_EFFORT = new Set(["claude-opus-4-6"]);
33+
const MODELS_WITH_MAX_EFFORT = new Set(["claude-opus-4-6", "claude-opus-4-7"]);
3134

3235
export function supportsEffort(modelId: string): boolean {
3336
return MODELS_WITH_EFFORT.has(modelId);

packages/agent/src/gateway-models.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ export interface FetchGatewayModelsOptions {
1515
gatewayUrl: string;
1616
}
1717

18-
export const DEFAULT_GATEWAY_MODEL = "claude-opus-4-6";
18+
export const DEFAULT_GATEWAY_MODEL = "claude-opus-4-7";
1919

2020
export const DEFAULT_CODEX_MODEL = "gpt-5.4";
2121

packages/agent/src/test/mocks/msw-handlers.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ export function createPostHogHandlers(options: PostHogHandlersOptions = {}) {
2727
object: "list",
2828
data: [
2929
{
30-
id: "claude-opus-4-6",
30+
id: "claude-opus-4-7",
3131
owned_by: "anthropic",
3232
context_window: 200000,
3333
supports_streaming: true,

0 commit comments

Comments
 (0)