,
@@ -905,6 +922,7 @@ export class ClineProvider implements vscode.WebviewViewProvider {
awsSecretKey,
awsSessionToken,
awsRegion,
+ awsUseCrossRegionInference,
vertexProjectId,
vertexRegion,
openAiBaseUrl,
diff --git a/src/shared/api.ts b/src/shared/api.ts
index ff3a84d..b2c5525 100644
--- a/src/shared/api.ts
+++ b/src/shared/api.ts
@@ -19,6 +19,7 @@ export interface ApiHandlerOptions {
awsSecretKey?: string
awsSessionToken?: string
awsRegion?: string
+ awsUseCrossRegionInference?: boolean
vertexProjectId?: string
vertexRegion?: string
openAiBaseUrl?: string
@@ -66,6 +67,16 @@ export const anthropicModels = {
cacheWritesPrice: 3.75, // $3.75 per million tokens
cacheReadsPrice: 0.3, // $0.30 per million tokens
},
+ "claude-3-5-haiku-20241022": {
+ maxTokens: 8192,
+ contextWindow: 200_000,
+ supportsImages: false,
+ supportsPromptCache: true,
+ inputPrice: 1.0,
+ outputPrice: 5.0,
+ cacheWritesPrice: 1.25,
+ cacheReadsPrice: 0.1,
+ },
"claude-3-opus-20240229": {
maxTokens: 4096,
contextWindow: 200_000,
@@ -102,6 +113,14 @@ export const bedrockModels = {
inputPrice: 3.0,
outputPrice: 15.0,
},
+ "anthropic.claude-3-5-haiku-20241022-v1:0": {
+ maxTokens: 8192,
+ contextWindow: 200_000,
+ supportsImages: false,
+ supportsPromptCache: false,
+ inputPrice: 1.0,
+ outputPrice: 5.0,
+ },
"anthropic.claude-3-5-sonnet-20240620-v1:0": {
maxTokens: 8192,
contextWindow: 200_000,
@@ -118,6 +137,14 @@ export const bedrockModels = {
inputPrice: 15.0,
outputPrice: 75.0,
},
+ "anthropic.claude-3-sonnet-20240229-v1:0": {
+ maxTokens: 4096,
+ contextWindow: 200_000,
+ supportsImages: true,
+ supportsPromptCache: false,
+ inputPrice: 3.0,
+ outputPrice: 15.0,
+ },
"anthropic.claude-3-haiku-20240307-v1:0": {
maxTokens: 4096,
contextWindow: 200_000,
@@ -167,6 +194,14 @@ export const vertexModels = {
inputPrice: 3.0,
outputPrice: 15.0,
},
+ "claude-3-5-haiku@20241022": {
+ maxTokens: 8192,
+ contextWindow: 200_000,
+ supportsImages: false,
+ supportsPromptCache: false,
+ inputPrice: 1.0,
+ outputPrice: 5.0,
+ },
"claude-3-opus@20240229": {
maxTokens: 4096,
contextWindow: 200_000,
diff --git a/webview-ui/src/components/settings/ApiOptions.tsx b/webview-ui/src/components/settings/ApiOptions.tsx
index d1475f7..f5e44ca 100644
--- a/webview-ui/src/components/settings/ApiOptions.tsx
+++ b/webview-ui/src/components/settings/ApiOptions.tsx
@@ -284,14 +284,14 @@ const ApiOptions = ({ showModelOptions, apiErrorMessage, modelIdErrorMessage }:
Select a region...
{/* The user will have to choose a region that supports the model they use, but this shouldn't be a problem since they'd have to request access for it in that region in the first place. */}
us-east-1
- {/* us-east-2 */}
+ us-east-2
{/* us-west-1 */}
us-west-2
{/* af-south-1 */}
{/* ap-east-1 */}
ap-south-1
ap-northeast-1
- {/* ap-northeast-2 */}
+ ap-northeast-2
{/* ap-northeast-3 */}
ap-southeast-1
ap-southeast-2
@@ -303,8 +303,18 @@ const ApiOptions = ({ showModelOptions, apiErrorMessage, modelIdErrorMessage }:
{/* eu-north-1 */}
{/* me-south-1 */}
sa-east-1
+ us-gov-west-1
+ {/* us-gov-east-1 */}
+ {
+ const isChecked = e.target.checked === true
+ setApiConfiguration({ ...apiConfiguration, awsUseCrossRegionInference: isChecked })
+ }}>
+ Use cross-region inference
+
{
marginTop: "5px",
color: "var(--vscode-descriptionForeground)",
}}>
- When enabled, Cline will automatically read files, view directories, and inspect sites without
- requiring you to click the Approve button.
+ When enabled, Cline will automatically view directory contents and read files without requiring
+ you to click the Approve button.