Просмотр исходного кода

Correct Bedrock Opus 4.6 model id (#9126)

AJ Juaire 2 месяцев назад
Родитель
Сommit
26391c9

+ 5 - 0
.changeset/plain-lies-repair.md

@@ -0,0 +1,5 @@
+---
+"cline": patch
+---
+
+Fix Bedrock model id

+ 2 - 2
src/core/api/providers/bedrock.ts

@@ -113,8 +113,8 @@ interface ProviderChainOptions {
 // a special jp inference profile was created for opus 4.6, sonnet 4.5 & haiku 4.5
 // a special jp inference profile was created for opus 4.6, sonnet 4.5 & haiku 4.5
 // https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html
 // https://docs.aws.amazon.com/bedrock/latest/userguide/inference-profiles-support.html
 const JP_SUPPORTED_CRIS_MODELS = [
 const JP_SUPPORTED_CRIS_MODELS = [
-	"anthropic.claude-opus-4-6-v1:0",
-	"anthropic.claude-opus-4-6-v1:0:1m",
+	"anthropic.claude-opus-4-6-v1",
+	"anthropic.claude-opus-4-6-v1:1m",
 	"anthropic.claude-sonnet-4-5-20250929-v1:0",
 	"anthropic.claude-sonnet-4-5-20250929-v1:0",
 	"anthropic.claude-sonnet-4-5-20250929-v1:0:1m",
 	"anthropic.claude-sonnet-4-5-20250929-v1:0:1m",
 	"anthropic.claude-haiku-4-5-20251001-v1:0",
 	"anthropic.claude-haiku-4-5-20251001-v1:0",

+ 2 - 2
src/shared/api.ts

@@ -460,7 +460,7 @@ export const bedrockModels = {
 		cacheReadsPrice: 0.3,
 		cacheReadsPrice: 0.3,
 		tiers: CLAUDE_SONNET_1M_TIERS,
 		tiers: CLAUDE_SONNET_1M_TIERS,
 	},
 	},
-	"anthropic.claude-opus-4-6-v1:0": {
+	"anthropic.claude-opus-4-6-v1": {
 		maxTokens: 8192,
 		maxTokens: 8192,
 		contextWindow: 200_000,
 		contextWindow: 200_000,
 		supportsImages: true,
 		supportsImages: true,
@@ -472,7 +472,7 @@ export const bedrockModels = {
 		cacheWritesPrice: 6.25,
 		cacheWritesPrice: 6.25,
 		cacheReadsPrice: 0.5,
 		cacheReadsPrice: 0.5,
 	},
 	},
-	"anthropic.claude-opus-4-6-v1:0:1m": {
+	"anthropic.claude-opus-4-6-v1:1m": {
 		maxTokens: 8192,
 		maxTokens: 8192,
 		contextWindow: 1_000_000,
 		contextWindow: 1_000_000,
 		supportsImages: true,
 		supportsImages: true,

+ 2 - 2
webview-ui/src/components/settings/providers/BedrockProvider.tsx

@@ -13,8 +13,8 @@ import { getModeSpecificFields, normalizeApiConfiguration } from "../utils/provi
 import { useApiConfigurationHandlers } from "../utils/useApiConfigurationHandlers"
 import { useApiConfigurationHandlers } from "../utils/useApiConfigurationHandlers"
 
 
 export const SUPPORTED_BEDROCK_THINKING_MODELS = [
 export const SUPPORTED_BEDROCK_THINKING_MODELS = [
-	"anthropic.claude-opus-4-6-v1:0",
-	`anthropic.claude-opus-4-6-v1:0${CLAUDE_SONNET_1M_SUFFIX}`,
+	"anthropic.claude-opus-4-6-v1",
+	`anthropic.claude-opus-4-6-v1${CLAUDE_SONNET_1M_SUFFIX}`,
 	"anthropic.claude-3-7-sonnet-20250219-v1:0",
 	"anthropic.claude-3-7-sonnet-20250219-v1:0",
 	"anthropic.claude-sonnet-4-20250514-v1:0",
 	"anthropic.claude-sonnet-4-20250514-v1:0",
 	"anthropic.claude-sonnet-4-5-20250929-v1:0",
 	"anthropic.claude-sonnet-4-5-20250929-v1:0",