refactor(models): bump claude-opus-4-6 to claude-opus-4-7 across fallback chains, categories, and hooks
Updates the canonical Anthropic Opus model in every fallback chain (sisyphus, oracle, prometheus, metis, momus, visual-engineering, ultrabrain, deep, artistry, unspecified-high), the unspecified-high category default, the think-mode HIGH_VARIANT_MAP, the Claude Code alias map, the claude-thinking legacy alias, the context-limit GA regex, and event.ts fallback strings. Widens supportsCachedAnthropicLimit to accept both claude-*-4-6 and claude-*-4-7 so the 1M context cache still applies across the bump. Regenerates the bundled model-capabilities snapshot from models.dev and the model-fallback snapshot to match the new source output.
This commit is contained in:
@@ -23,9 +23,9 @@ function applyGatewayTransforms(model: string): string {
|
||||
}
|
||||
|
||||
export function transformModelForProvider(provider: string, model: string): string {
|
||||
// Vercel AI Gateway expects <sub-provider>/<model> (e.g. anthropic/claude-opus-4.6).
|
||||
// Canonical names in model-requirements.ts may be bare (claude-opus-4-6) or
|
||||
// already prefixed (anthropic/claude-opus-4-6). Both need gateway-specific transforms.
|
||||
// Vercel AI Gateway expects <sub-provider>/<model> (e.g. anthropic/claude-opus-4.7).
|
||||
// Canonical names in model-requirements.ts may be bare (claude-opus-4-7) or
|
||||
// already prefixed (anthropic/claude-opus-4-7). Both need gateway-specific transforms.
|
||||
if (provider === "vercel") {
|
||||
// Already prefixed — transform only the model part
|
||||
const slashIndex = model.indexOf("/")
|
||||
|
||||
Reference in New Issue
Block a user