feat(models): support anthropic sonnet 4.6

This commit is contained in:
Peter Steinberger
2026-02-18 00:00:20 +01:00
parent a333d92013
commit ae2c8f2cf0
12 changed files with 93 additions and 10 deletions

View File

@@ -1,7 +1,7 @@
import { ensureAuthProfileStore } from "../agents/auth-profiles.js";
import type { OpenClawConfig, GatewayAuthConfig } from "../config/config.js";
import type { RuntimeEnv } from "../runtime.js";
import type { WizardPrompter } from "../wizard/prompts.js";
import { ensureAuthProfileStore } from "../agents/auth-profiles.js";
import { promptAuthChoiceGrouped } from "./auth-choice-prompt.js";
import { applyAuthChoice, resolvePreferredProviderForAuthChoice } from "./auth-choice.js";
import {
@@ -30,6 +30,7 @@ function sanitizeTokenValue(value: string | undefined): string | undefined {
const ANTHROPIC_OAUTH_MODEL_KEYS = [
"anthropic/claude-opus-4-6",
"anthropic/claude-sonnet-4-6",
"anthropic/claude-opus-4-5",
"anthropic/claude-sonnet-4-5",
"anthropic/claude-haiku-4-5",