Parcourir la source

Add fallback claude 3.5 sonnet v1 models for bedrock and vertex

Saoud Rizwan il y a 1 an
Parent
commit
e5266ddda1
1 fichiers modifiés avec 16 ajouts et 0 suppressions
  1. 16 0
      src/shared/api.ts

+ 16 - 0
src/shared/api.ts

@@ -99,6 +99,14 @@ export const bedrockModels = {
 		inputPrice: 3.0,
 		inputPrice: 3.0,
 		outputPrice: 15.0,
 		outputPrice: 15.0,
 	},
 	},
+	"anthropic.claude-3-5-sonnet-20240620-v1:0": {
+		maxTokens: 8192,
+		contextWindow: 200_000,
+		supportsImages: true,
+		supportsPromptCache: false,
+		inputPrice: 3.0,
+		outputPrice: 15.0,
+	},
 	"anthropic.claude-3-opus-20240229-v1:0": {
 	"anthropic.claude-3-opus-20240229-v1:0": {
 		maxTokens: 4096,
 		maxTokens: 4096,
 		contextWindow: 200_000,
 		contextWindow: 200_000,
@@ -146,6 +154,14 @@ export const vertexModels = {
 		inputPrice: 3.0,
 		inputPrice: 3.0,
 		outputPrice: 15.0,
 		outputPrice: 15.0,
 	},
 	},
+	"claude-3-5-sonnet@20240620": {
+		maxTokens: 8192,
+		contextWindow: 200_000,
+		supportsImages: true,
+		supportsPromptCache: false,
+		inputPrice: 3.0,
+		outputPrice: 15.0,
+	},
 	"claude-3-opus@20240229": {
 	"claude-3-opus@20240229": {
 		maxTokens: 4096,
 		maxTokens: 4096,
 		contextWindow: 200_000,
 		contextWindow: 200_000,