diff --git a/.github/ISSUE_TEMPLATE/bug_report.yml b/.github/ISSUE_TEMPLATE/bug_report.yml index 91a6d5620bf..5757f05ab1e 100644 --- a/.github/ISSUE_TEMPLATE/bug_report.yml +++ b/.github/ISSUE_TEMPLATE/bug_report.yml @@ -24,7 +24,7 @@ body: - OpenAI - OpenAI Compatible - GCP Vertex AI - - AWS Bedrock + - Amazon Bedrock - Requesty - Glama - VS Code LM API diff --git a/cline_docs/bedrock/bedrock-cache-strategy-documentation.md b/cline_docs/bedrock/bedrock-cache-strategy-documentation.md index a18321f476c..09d67fd996d 100644 --- a/cline_docs/bedrock/bedrock-cache-strategy-documentation.md +++ b/cline_docs/bedrock/bedrock-cache-strategy-documentation.md @@ -1,6 +1,6 @@ # Cache Strategy Documentation -This document provides an overview of the cache strategy implementation for AWS Bedrock in the Roo-Code project, including class relationships and sequence diagrams. +This document provides an overview of the cache strategy implementation for Amazon Bedrock in the Roo-Code project, including class relationships and sequence diagrams. ## Class Relationship Diagram @@ -89,7 +89,7 @@ sequenceDiagram participant Client as Client Code participant Bedrock as AwsBedrockHandler participant Strategy as MultiPointStrategy - participant AWS as AWS Bedrock Service + participant AWS as Amazon Bedrock Service Client->>Bedrock: createMessage(systemPrompt, messages) Note over Bedrock: Generate conversationId to track cache points @@ -143,7 +143,7 @@ sequenceDiagram ### Cache Strategy -The cache strategy system is designed to optimize the placement of cache points in AWS Bedrock API requests. Cache points allow the service to reuse previously processed parts of the prompt, reducing token usage and improving response times. +The cache strategy system is designed to optimize the placement of cache points in Amazon Bedrock API requests. Cache points allow the service to reuse previously processed parts of the prompt, reducing token usage and improving response times. - **MultiPointStrategy**: Upon first MR of Bedrock caching, this strategy is used for all cache point placement scenarios. It distributes cache points throughout the conversation to maximize caching efficiency, whether the model supports one or multiple cache points. @@ -180,14 +180,14 @@ The simplified approach ensures that: The examples in this document reflect this optimized implementation. -### Integration with AWS Bedrock +### Integration with Amazon Bedrock The AwsBedrockHandler class integrates with the cache strategies by: 1. Determining if the model supports prompt caching 2. Creating the appropriate strategy based on model capabilities 3. Applying the strategy to format messages with optimal cache points -4. Sending the formatted request to AWS Bedrock +4. Sending the formatted request to Amazon Bedrock 5. Processing and returning the response ## Usage Considerations diff --git a/cline_docs/bedrock/model-identification.md b/cline_docs/bedrock/model-identification.md index 602c2e6fe18..7d778b186a6 100644 --- a/cline_docs/bedrock/model-identification.md +++ b/cline_docs/bedrock/model-identification.md @@ -1,6 +1,6 @@ # Bedrock Model Identification -This document explains how model information is identified and managed in the AWS Bedrock provider implementation (`bedrock.ts`). It focuses on the sequence of operations that determine the `costModelConfig` property, which is crucial for token counting, pricing, and other features. +This document explains how model information is identified and managed in the Amazon Bedrock provider implementation (`bedrock.ts`). It focuses on the sequence of operations that determine the `costModelConfig` property, which is crucial for token counting, pricing, and other features. ## Model Identification Flow diff --git a/evals/packages/types/src/roo-code.ts b/evals/packages/types/src/roo-code.ts index 22bff70d16e..0b5d12a13b1 100644 --- a/evals/packages/types/src/roo-code.ts +++ b/evals/packages/types/src/roo-code.ts @@ -312,7 +312,7 @@ export const providerSettingsSchema = z.object({ openRouterBaseUrl: z.string().optional(), openRouterSpecificProvider: z.string().optional(), openRouterUseMiddleOutTransform: z.boolean().optional(), - // AWS Bedrock + // Amazon Bedrock awsAccessKey: z.string().optional(), awsSecretKey: z.string().optional(), awsSessionToken: z.string().optional(), @@ -403,7 +403,7 @@ const providerSettingsRecord: ProviderSettingsRecord = { openRouterBaseUrl: undefined, openRouterSpecificProvider: undefined, openRouterUseMiddleOutTransform: undefined, - // AWS Bedrock + // Amazon Bedrock awsAccessKey: undefined, awsSecretKey: undefined, awsSessionToken: undefined, diff --git a/src/api/providers/bedrock.ts b/src/api/providers/bedrock.ts index 72313ec9222..198ba25e6c0 100644 --- a/src/api/providers/bedrock.ts +++ b/src/api/providers/bedrock.ts @@ -22,7 +22,7 @@ import { Message, SystemContentBlock } from "@aws-sdk/client-bedrock-runtime" // New cache-related imports import { MultiPointStrategy } from "../transform/cache-strategy/multi-point-strategy" import { ModelInfo as CacheModelInfo } from "../transform/cache-strategy/types" -import { AWS_BEDROCK_REGION_INFO } from "../../shared/aws_regions" +import { AMAZON_BEDROCK_REGION_INFO } from "../../shared/aws_regions" const BEDROCK_DEFAULT_TEMPERATURE = 0.3 const BEDROCK_MAX_TOKENS = 4096 @@ -495,7 +495,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH private parseArn(arn: string, region?: string) { /* - * VIA Roo analysis: platform-independent Regex. It's designed to parse AWS Bedrock ARNs and doesn't rely on any platform-specific features + * VIA Roo analysis: platform-independent Regex. It's designed to parse Amazon Bedrock ARNs and doesn't rely on any platform-specific features * like file path separators, line endings, or case sensitivity behaviors. The forward slashes in the regex are properly escaped and * represent literal characters in the AWS ARN format, not filesystem paths. This regex will function consistently across Windows, * macOS, Linux, and any other operating system where JavaScript runs. @@ -562,7 +562,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH region: undefined, modelType: undefined, modelId: undefined, - errorMessage: "Invalid ARN format. ARN should follow the AWS Bedrock ARN pattern.", + errorMessage: "Invalid ARN format. ARN should follow the Amazon Bedrock ARN pattern.", crossRegionInference: false, } } @@ -700,16 +700,16 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH /************************************************************************************ * - * AWS REGIONS + * AMAZON REGIONS * *************************************************************************************/ private static getPrefixList(): string[] { - return Object.keys(AWS_BEDROCK_REGION_INFO) + return Object.keys(AMAZON_BEDROCK_REGION_INFO) } private static getPrefixForRegion(region: string): string | undefined { - for (const [prefix, info] of Object.entries(AWS_BEDROCK_REGION_INFO)) { + for (const [prefix, info] of Object.entries(AMAZON_BEDROCK_REGION_INFO)) { if (info.pattern && region.startsWith(info.pattern)) { return prefix } @@ -718,7 +718,7 @@ export class AwsBedrockHandler extends BaseProvider implements SingleCompletionH } private static prefixIsMultiRegion(arnPrefix: string): boolean { - for (const [prefix, info] of Object.entries(AWS_BEDROCK_REGION_INFO)) { + for (const [prefix, info] of Object.entries(AMAZON_BEDROCK_REGION_INFO)) { if (arnPrefix === prefix) { if (info?.multiRegion) return info.multiRegion else return false @@ -791,7 +791,7 @@ Suggestions: 2. Split your request into smaller chunks 3. Use a model with a larger context window 4. If rate limited, reduce request frequency -5. Check your AWS Bedrock quotas and limits`, +5. Check your Amazon Bedrock quotas and limits`, logLevel: "error", }, ON_DEMAND_NOT_SUPPORTED: { diff --git a/src/schemas/index.ts b/src/schemas/index.ts index d2471882ecc..208c061b532 100644 --- a/src/schemas/index.ts +++ b/src/schemas/index.ts @@ -319,7 +319,7 @@ export const providerSettingsSchema = z.object({ openRouterBaseUrl: z.string().optional(), openRouterSpecificProvider: z.string().optional(), openRouterUseMiddleOutTransform: z.boolean().optional(), - // AWS Bedrock + // Amazon Bedrock awsAccessKey: z.string().optional(), awsSecretKey: z.string().optional(), awsSessionToken: z.string().optional(), @@ -414,7 +414,7 @@ const providerSettingsRecord: ProviderSettingsRecord = { openRouterBaseUrl: undefined, openRouterSpecificProvider: undefined, openRouterUseMiddleOutTransform: undefined, - // AWS Bedrock + // Amazon Bedrock awsAccessKey: undefined, awsSecretKey: undefined, awsSessionToken: undefined, diff --git a/src/shared/api.ts b/src/shared/api.ts index cd818fd1a5d..a2a802c3150 100644 --- a/src/shared/api.ts +++ b/src/shared/api.ts @@ -77,8 +77,7 @@ export const anthropicModels = { cacheReadsPrice: 0.03, }, } as const satisfies Record // as const assertion makes the object deeply readonly - -// AWS Bedrock +// Amazon Bedrock // https://docs.aws.amazon.com/bedrock/latest/userguide/conversation-inference.html export interface MessageContent { type: "text" | "image" | "video" | "tool_use" | "tool_result" diff --git a/src/shared/aws_regions.ts b/src/shared/aws_regions.ts index 343542c3aa6..7149acda4b4 100644 --- a/src/shared/aws_regions.ts +++ b/src/shared/aws_regions.ts @@ -2,7 +2,7 @@ * AWS Region information mapping * Maps region prefixes to their full region IDs and descriptions */ -export const AWS_BEDROCK_REGION_INFO: Record< +export const AMAZON_BEDROCK_REGION_INFO: Record< string, { regionId: string @@ -69,7 +69,7 @@ export const AWS_BEDROCK_REGION_INFO: Record< } // Extract unique region IDs from REGION_INFO and create the AWS_REGIONS array -export const AWS_REGIONS = Object.values(AWS_BEDROCK_REGION_INFO) +export const AWS_REGIONS = Object.values(AMAZON_BEDROCK_REGION_INFO) // Extract all region IDs .map((info) => ({ value: info.regionId, label: info.regionId })) // Filter to unique region IDs (remove duplicates) diff --git a/webview-ui/src/components/settings/constants.ts b/webview-ui/src/components/settings/constants.ts index 01f24a2ed57..7013a59cfdb 100644 --- a/webview-ui/src/components/settings/constants.ts +++ b/webview-ui/src/components/settings/constants.ts @@ -28,7 +28,7 @@ export const PROVIDERS = [ { value: "openai-native", label: "OpenAI" }, { value: "openai", label: "OpenAI Compatible" }, { value: "vertex", label: "GCP Vertex AI" }, - { value: "bedrock", label: "AWS Bedrock" }, + { value: "bedrock", label: "Amazon Bedrock" }, { value: "glama", label: "Glama" }, { value: "vscode-lm", label: "VS Code LM API" }, { value: "mistral", label: "Mistral" }, diff --git a/webview-ui/src/i18n/locales/ca/settings.json b/webview-ui/src/i18n/locales/ca/settings.json index 063feb4dd0b..c2b62a25265 100644 --- a/webview-ui/src/i18n/locales/ca/settings.json +++ b/webview-ui/src/i18n/locales/ca/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Cerca perfils", "noMatchFound": "No s'han trobat perfils coincidents", "vscodeLmDescription": "L'API del model de llenguatge de VS Code us permet executar models proporcionats per altres extensions de VS Code (incloent-hi, però no limitat a, GitHub Copilot). La manera més senzilla de començar és instal·lar les extensions Copilot i Copilot Chat des del VS Code Marketplace.", - "awsCustomArnUse": "Introduïu un ARN vàlid d'AWS Bedrock per al model que voleu utilitzar. Exemples de format:", + "awsCustomArnUse": "Introduïu un ARN vàlid d'Amazon Bedrock per al model que voleu utilitzar. Exemples de format:", "awsCustomArnDesc": "Assegureu-vos que la regió a l'ARN coincideix amb la regió d'AWS seleccionada anteriorment.", "apiKeyStorageNotice": "Les claus API s'emmagatzemen de forma segura a l'Emmagatzematge Secret de VSCode", "useCustomBaseUrl": "Utilitzar URL base personalitzada", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Heu de proporcionar una clau API vàlida.", - "awsRegion": "Heu de triar una regió per utilitzar AWS Bedrock.", + "awsRegion": "Heu de triar una regió per utilitzar Amazon Bedrock.", "googleCloud": "Heu de proporcionar un ID de projecte i regió de Google Cloud vàlids.", "modelId": "Heu de proporcionar un ID de model vàlid.", "modelSelector": "Heu de proporcionar un selector de model vàlid.", diff --git a/webview-ui/src/i18n/locales/de/settings.json b/webview-ui/src/i18n/locales/de/settings.json index 2da6ddfcb0f..9659d0cda7a 100644 --- a/webview-ui/src/i18n/locales/de/settings.json +++ b/webview-ui/src/i18n/locales/de/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Profile durchsuchen", "noMatchFound": "Keine passenden Profile gefunden", "vscodeLmDescription": "Die VS Code Language Model API ermöglicht das Ausführen von Modellen, die von anderen VS Code-Erweiterungen bereitgestellt werden (einschließlich, aber nicht beschränkt auf GitHub Copilot). Der einfachste Weg, um zu starten, besteht darin, die Erweiterungen Copilot und Copilot Chat aus dem VS Code Marketplace zu installieren.", - "awsCustomArnUse": "Geben Sie eine gültige AWS Bedrock ARN für das Modell ein, das Sie verwenden möchten. Formatbeispiele:", + "awsCustomArnUse": "Geben Sie eine gültige Amazon Bedrock ARN für das Modell ein, das Sie verwenden möchten. Formatbeispiele:", "awsCustomArnDesc": "Stellen Sie sicher, dass die Region in der ARN mit Ihrer oben ausgewählten AWS-Region übereinstimmt.", "openRouterApiKey": "OpenRouter API-Schlüssel", "getOpenRouterApiKey": "OpenRouter API-Schlüssel erhalten", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Du musst einen gültigen API-Schlüssel angeben.", - "awsRegion": "Du musst eine Region für AWS Bedrock auswählen.", + "awsRegion": "Du musst eine Region für Amazon Bedrock auswählen.", "googleCloud": "Du musst eine gültige Google Cloud Projekt-ID und Region angeben.", "modelId": "Du musst eine gültige Modell-ID angeben.", "modelSelector": "Du musst einen gültigen Modell-Selektor angeben.", diff --git a/webview-ui/src/i18n/locales/en/settings.json b/webview-ui/src/i18n/locales/en/settings.json index 044ce1ff813..8ec853a60c5 100644 --- a/webview-ui/src/i18n/locales/en/settings.json +++ b/webview-ui/src/i18n/locales/en/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Search profiles", "noMatchFound": "No matching profiles found", "vscodeLmDescription": " The VS Code Language Model API allows you to run models provided by other VS Code extensions (including but not limited to GitHub Copilot). The easiest way to get started is to install the Copilot and Copilot Chat extensions from the VS Code Marketplace.", - "awsCustomArnUse": "Enter a valid AWS Bedrock ARN for the model you want to use. Format examples:", + "awsCustomArnUse": "Enter a valid Amazon Bedrock ARN for the model you want to use. Format examples:", "awsCustomArnDesc": "Make sure the region in the ARN matches your selected AWS Region above.", "openRouterApiKey": "OpenRouter API Key", "getOpenRouterApiKey": "Get OpenRouter API Key", @@ -402,7 +402,7 @@ }, "validation": { "apiKey": "You must provide a valid API key.", - "awsRegion": "You must choose a region to use with AWS Bedrock.", + "awsRegion": "You must choose a region to use with Amazon Bedrock.", "googleCloud": "You must provide a valid Google Cloud Project ID and Region.", "modelId": "You must provide a valid model ID.", "modelSelector": "You must provide a valid model selector.", diff --git a/webview-ui/src/i18n/locales/es/settings.json b/webview-ui/src/i18n/locales/es/settings.json index 29b57eb44f9..e6852a9e8de 100644 --- a/webview-ui/src/i18n/locales/es/settings.json +++ b/webview-ui/src/i18n/locales/es/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Buscar perfiles", "noMatchFound": "No se encontraron perfiles coincidentes", "vscodeLmDescription": "La API del Modelo de Lenguaje de VS Code le permite ejecutar modelos proporcionados por otras extensiones de VS Code (incluido, entre otros, GitHub Copilot). La forma más sencilla de empezar es instalar las extensiones Copilot y Copilot Chat desde el VS Code Marketplace.", - "awsCustomArnUse": "Ingrese un ARN de AWS Bedrock válido para el modelo que desea utilizar. Ejemplos de formato:", + "awsCustomArnUse": "Ingrese un ARN de Amazon Bedrock válido para el modelo que desea utilizar. Ejemplos de formato:", "awsCustomArnDesc": "Asegúrese de que la región en el ARN coincida con la región de AWS seleccionada anteriormente.", "openRouterApiKey": "Clave API de OpenRouter", "getOpenRouterApiKey": "Obtener clave API de OpenRouter", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Debe proporcionar una clave API válida.", - "awsRegion": "Debe elegir una región para usar con AWS Bedrock.", + "awsRegion": "Debe elegir una región para usar con Amazon Bedrock.", "googleCloud": "Debe proporcionar un ID de proyecto y región de Google Cloud válidos.", "modelId": "Debe proporcionar un ID de modelo válido.", "modelSelector": "Debe proporcionar un selector de modelo válido.", diff --git a/webview-ui/src/i18n/locales/fr/settings.json b/webview-ui/src/i18n/locales/fr/settings.json index e3fe009057c..4b77dfa7671 100644 --- a/webview-ui/src/i18n/locales/fr/settings.json +++ b/webview-ui/src/i18n/locales/fr/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Rechercher des profils", "noMatchFound": "Aucun profil correspondant trouvé", "vscodeLmDescription": "L'API du modèle de langage VS Code vous permet d'exécuter des modèles fournis par d'autres extensions VS Code (y compris, mais sans s'y limiter, GitHub Copilot). Le moyen le plus simple de commencer est d'installer les extensions Copilot et Copilot Chat depuis le VS Code Marketplace.", - "awsCustomArnUse": "Entrez un ARN AWS Bedrock valide pour le modèle que vous souhaitez utiliser. Exemples de format :", + "awsCustomArnUse": "Entrez un ARN Amazon Bedrock valide pour le modèle que vous souhaitez utiliser. Exemples de format :", "awsCustomArnDesc": "Assurez-vous que la région dans l'ARN correspond à la région AWS sélectionnée ci-dessus.", "openRouterApiKey": "Clé API OpenRouter", "getOpenRouterApiKey": "Obtenir la clé API OpenRouter", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Vous devez fournir une clé API valide.", - "awsRegion": "Vous devez choisir une région pour utiliser AWS Bedrock.", + "awsRegion": "Vous devez choisir une région pour utiliser Amazon Bedrock.", "googleCloud": "Vous devez fournir un ID de projet et une région Google Cloud valides.", "modelId": "Vous devez fournir un ID de modèle valide.", "modelSelector": "Vous devez fournir un sélecteur de modèle valide.", diff --git a/webview-ui/src/i18n/locales/hi/settings.json b/webview-ui/src/i18n/locales/hi/settings.json index c427eb52848..d69b1b9b289 100644 --- a/webview-ui/src/i18n/locales/hi/settings.json +++ b/webview-ui/src/i18n/locales/hi/settings.json @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "आपको एक मान्य API कुंजी प्रदान करनी होगी।", - "awsRegion": "AWS Bedrock का उपयोग करने के लिए आपको एक क्षेत्र चुनना होगा।", + "awsRegion": "Amazon Bedrock का उपयोग करने के लिए आपको एक क्षेत्र चुनना होगा।", "googleCloud": "आपको एक मान्य Google Cloud प्रोजेक्ट ID और क्षेत्र प्रदान करना होगा।", "modelId": "आपको एक मान्य मॉडल ID प्रदान करनी होगी।", "modelSelector": "आपको एक मान्य मॉडल चयनकर्ता प्रदान करना होगा।", diff --git a/webview-ui/src/i18n/locales/it/settings.json b/webview-ui/src/i18n/locales/it/settings.json index c38a61d6b4f..7ce83018ab2 100644 --- a/webview-ui/src/i18n/locales/it/settings.json +++ b/webview-ui/src/i18n/locales/it/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Cerca profili", "noMatchFound": "Nessun profilo corrispondente trovato", "vscodeLmDescription": "L'API del Modello di Linguaggio di VS Code consente di eseguire modelli forniti da altre estensioni di VS Code (incluso, ma non limitato a, GitHub Copilot). Il modo più semplice per iniziare è installare le estensioni Copilot e Copilot Chat dal VS Code Marketplace.", - "awsCustomArnUse": "Inserisci un ARN AWS Bedrock valido per il modello che desideri utilizzare. Esempi di formato:", + "awsCustomArnUse": "Inserisci un ARN Amazon Bedrock valido per il modello che desideri utilizzare. Esempi di formato:", "awsCustomArnDesc": "Assicurati che la regione nell'ARN corrisponda alla regione AWS selezionata sopra.", "openRouterApiKey": "Chiave API OpenRouter", "getOpenRouterApiKey": "Ottieni chiave API OpenRouter", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "È necessario fornire una chiave API valida.", - "awsRegion": "È necessario scegliere una regione per utilizzare AWS Bedrock.", + "awsRegion": "È necessario scegliere una regione per utilizzare Amazon Bedrock.", "googleCloud": "È necessario fornire un ID progetto e una regione Google Cloud validi.", "modelId": "È necessario fornire un ID modello valido.", "modelSelector": "È necessario fornire un selettore di modello valido.", diff --git a/webview-ui/src/i18n/locales/ja/settings.json b/webview-ui/src/i18n/locales/ja/settings.json index 4157e9095ae..ede80759f19 100644 --- a/webview-ui/src/i18n/locales/ja/settings.json +++ b/webview-ui/src/i18n/locales/ja/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "プロファイルを検索", "noMatchFound": "一致するプロファイルが見つかりません", "vscodeLmDescription": "VS Code言語モデルAPIを使用すると、他のVS Code拡張機能(GitHub Copilotなど)が提供するモデルを実行できます。最も簡単な方法は、VS Code MarketplaceからCopilotおよびCopilot Chat拡張機能をインストールすることです。", - "awsCustomArnUse": "使用したいモデルの有効なAWS Bedrock ARNを入力してください。形式の例:", + "awsCustomArnUse": "使用したいモデルの有効なAmazon Bedrock ARNを入力してください。形式の例:", "awsCustomArnDesc": "ARN内のリージョンが上で選択したAWSリージョンと一致していることを確認してください。", "openRouterApiKey": "OpenRouter APIキー", "getOpenRouterApiKey": "OpenRouter APIキーを取得", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "有効なAPIキーを入力してください。", - "awsRegion": "AWS Bedrockを使用するにはリージョンを選択してください。", + "awsRegion": "Amazon Bedrockを使用するにはリージョンを選択してください。", "googleCloud": "有効なGoogle CloudプロジェクトIDとリージョンを入力してください。", "modelId": "有効なモデルIDを入力してください。", "modelSelector": "有効なモデルセレクターを入力してください。", diff --git a/webview-ui/src/i18n/locales/ko/settings.json b/webview-ui/src/i18n/locales/ko/settings.json index c6b43459673..05717e06f88 100644 --- a/webview-ui/src/i18n/locales/ko/settings.json +++ b/webview-ui/src/i18n/locales/ko/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "프로필 검색", "noMatchFound": "일치하는 프로필이 없습니다", "vscodeLmDescription": "VS Code 언어 모델 API를 사용하면 GitHub Copilot을 포함한 기타 VS Code 확장 프로그램이 제공하는 모델을 실행할 수 있습니다. 시작하려면 VS Code 마켓플레이스에서 Copilot 및 Copilot Chat 확장 프로그램을 설치하는 것이 가장 쉽습니다.", - "awsCustomArnUse": "사용하려는 모델의 유효한 AWS Bedrock ARN을 입력하세요. 형식 예시:", + "awsCustomArnUse": "사용하려는 모델의 유효한 Amazon Bedrock ARN을 입력하세요. 형식 예시:", "awsCustomArnDesc": "ARN의 리전이 위에서 선택한 AWS 리전과 일치하는지 확인하세요.", "openRouterApiKey": "OpenRouter API 키", "getOpenRouterApiKey": "OpenRouter API 키 받기", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "유효한 API 키를 입력해야 합니다.", - "awsRegion": "AWS Bedrock을 사용하려면 리전을 선택해야 합니다.", + "awsRegion": "Amazon Bedrock을 사용하려면 리전을 선택해야 합니다.", "googleCloud": "유효한 Google Cloud 프로젝트 ID와 리전을 입력해야 합니다.", "modelId": "유효한 모델 ID를 입력해야 합니다.", "modelSelector": "유효한 모델 선택기를 입력해야 합니다.", diff --git a/webview-ui/src/i18n/locales/pl/settings.json b/webview-ui/src/i18n/locales/pl/settings.json index 0389a650a8a..46c43302a92 100644 --- a/webview-ui/src/i18n/locales/pl/settings.json +++ b/webview-ui/src/i18n/locales/pl/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Szukaj profili", "noMatchFound": "Nie znaleziono pasujących profili", "vscodeLmDescription": "Interfejs API modelu językowego VS Code umożliwia uruchamianie modeli dostarczanych przez inne rozszerzenia VS Code (w tym, ale nie tylko, GitHub Copilot). Najłatwiejszym sposobem na rozpoczęcie jest zainstalowanie rozszerzeń Copilot i Copilot Chat z VS Code Marketplace.", - "awsCustomArnUse": "Wprowadź prawidłowy AWS Bedrock ARN dla modelu, którego chcesz użyć. Przykłady formatu:", + "awsCustomArnUse": "Wprowadź prawidłowy Amazon Bedrock ARN dla modelu, którego chcesz użyć. Przykłady formatu:", "awsCustomArnDesc": "Upewnij się, że region w ARN odpowiada wybranemu powyżej regionowi AWS.", "openRouterApiKey": "Klucz API OpenRouter", "getOpenRouterApiKey": "Uzyskaj klucz API OpenRouter", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Musisz podać prawidłowy klucz API.", - "awsRegion": "Musisz wybrać region, aby korzystać z AWS Bedrock.", + "awsRegion": "Musisz wybrać region, aby korzystać z Amazon Bedrock.", "googleCloud": "Musisz podać prawidłowe ID projektu i region Google Cloud.", "modelId": "Musisz podać prawidłowe ID modelu.", "modelSelector": "Musisz podać prawidłowy selektor modelu.", diff --git a/webview-ui/src/i18n/locales/pt-BR/settings.json b/webview-ui/src/i18n/locales/pt-BR/settings.json index 67b2650cb04..139f62dece4 100644 --- a/webview-ui/src/i18n/locales/pt-BR/settings.json +++ b/webview-ui/src/i18n/locales/pt-BR/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Pesquisar perfis", "noMatchFound": "Nenhum perfil correspondente encontrado", "vscodeLmDescription": "A API do Modelo de Linguagem do VS Code permite executar modelos fornecidos por outras extensões do VS Code (incluindo, mas não se limitando, ao GitHub Copilot). A maneira mais fácil de começar é instalar as extensões Copilot e Copilot Chat no VS Code Marketplace.", - "awsCustomArnUse": "Insira um ARN AWS Bedrock válido para o modelo que deseja usar. Exemplos de formato:", + "awsCustomArnUse": "Insira um ARN Amazon Bedrock válido para o modelo que deseja usar. Exemplos de formato:", "awsCustomArnDesc": "Certifique-se de que a região no ARN corresponde à região AWS selecionada acima.", "openRouterApiKey": "Chave de API OpenRouter", "getOpenRouterApiKey": "Obter chave de API OpenRouter", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Você deve fornecer uma chave de API válida.", - "awsRegion": "Você deve escolher uma região para usar o AWS Bedrock.", + "awsRegion": "Você deve escolher uma região para usar o Amazon Bedrock.", "googleCloud": "Você deve fornecer um ID de projeto e região do Google Cloud válidos.", "modelId": "Você deve fornecer um ID de modelo válido.", "modelSelector": "Você deve fornecer um seletor de modelo válido.", diff --git a/webview-ui/src/i18n/locales/tr/settings.json b/webview-ui/src/i18n/locales/tr/settings.json index 837023d639a..01c79fa8aaf 100644 --- a/webview-ui/src/i18n/locales/tr/settings.json +++ b/webview-ui/src/i18n/locales/tr/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Profilleri ara", "noMatchFound": "Eşleşen profil bulunamadı", "vscodeLmDescription": "VS Code Dil Modeli API'si, diğer VS Code uzantıları tarafından sağlanan modelleri çalıştırmanıza olanak tanır (GitHub Copilot dahil ancak bunlarla sınırlı değildir). Başlamanın en kolay yolu, VS Code Marketplace'ten Copilot ve Copilot Chat uzantılarını yüklemektir.", - "awsCustomArnUse": "Kullanmak istediğiniz model için geçerli bir AWS Bedrock ARN'si girin. Format örnekleri:", + "awsCustomArnUse": "Kullanmak istediğiniz model için geçerli bir Amazon Bedrock ARN'si girin. Format örnekleri:", "awsCustomArnDesc": "ARN içindeki bölgenin yukarıda seçilen AWS Bölgesiyle eşleştiğinden emin olun.", "openRouterApiKey": "OpenRouter API Anahtarı", "getOpenRouterApiKey": "OpenRouter API Anahtarı Al", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Geçerli bir API anahtarı sağlamalısınız.", - "awsRegion": "AWS Bedrock kullanmak için bir bölge seçmelisiniz.", + "awsRegion": "Amazon Bedrock kullanmak için bir bölge seçmelisiniz.", "googleCloud": "Geçerli bir Google Cloud proje kimliği ve bölge sağlamalısınız.", "modelId": "Geçerli bir model kimliği sağlamalısınız.", "modelSelector": "Geçerli bir model seçici sağlamalısınız.", diff --git a/webview-ui/src/i18n/locales/vi/settings.json b/webview-ui/src/i18n/locales/vi/settings.json index d636cba5f75..04b8de8a324 100644 --- a/webview-ui/src/i18n/locales/vi/settings.json +++ b/webview-ui/src/i18n/locales/vi/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "Tìm kiếm hồ sơ", "noMatchFound": "Không tìm thấy hồ sơ phù hợp", "vscodeLmDescription": "API Mô hình Ngôn ngữ VS Code cho phép bạn chạy các mô hình được cung cấp bởi các tiện ích mở rộng khác của VS Code (bao gồm nhưng không giới hạn ở GitHub Copilot). Cách dễ nhất để bắt đầu là cài đặt các tiện ích mở rộng Copilot và Copilot Chat từ VS Code Marketplace.", - "awsCustomArnUse": "Nhập một ARN AWS Bedrock hợp lệ cho mô hình bạn muốn sử dụng. Ví dụ về định dạng:", + "awsCustomArnUse": "Nhập một ARN Amazon Bedrock hợp lệ cho mô hình bạn muốn sử dụng. Ví dụ về định dạng:", "awsCustomArnDesc": "Đảm bảo rằng vùng trong ARN khớp với vùng AWS đã chọn ở trên.", "openRouterApiKey": "Khóa API OpenRouter", "getOpenRouterApiKey": "Lấy khóa API OpenRouter", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "Bạn phải cung cấp khóa API hợp lệ.", - "awsRegion": "Bạn phải chọn một vùng để sử dụng AWS Bedrock.", + "awsRegion": "Bạn phải chọn một vùng để sử dụng Amazon Bedrock.", "googleCloud": "Bạn phải cung cấp ID dự án và vùng Google Cloud hợp lệ.", "modelId": "Bạn phải cung cấp ID mô hình hợp lệ.", "modelSelector": "Bạn phải cung cấp bộ chọn mô hình hợp lệ.", diff --git a/webview-ui/src/i18n/locales/zh-CN/settings.json b/webview-ui/src/i18n/locales/zh-CN/settings.json index bd4cc6e0bf6..3a99b9d790f 100644 --- a/webview-ui/src/i18n/locales/zh-CN/settings.json +++ b/webview-ui/src/i18n/locales/zh-CN/settings.json @@ -101,7 +101,7 @@ "searchPlaceholder": "搜索配置文件", "noMatchFound": "未找到匹配的配置文件", "vscodeLmDescription": "VS Code 语言模型 API 允许您运行由其他 VS Code 扩展(包括但不限于 GitHub Copilot)提供的模型。最简单的方法是从 VS Code 市场安装 Copilot 和 Copilot Chat 扩展。", - "awsCustomArnUse": "请输入有效的 AWS Bedrock ARN(Amazon资源名称),格式示例:", + "awsCustomArnUse": "请输入有效的 Amazon Bedrock ARN(Amazon资源名称),格式示例:", "awsCustomArnDesc": "请确保ARN中的区域与上方选择的AWS区域一致。", "openRouterApiKey": "OpenRouter API 密钥", "getOpenRouterApiKey": "获取 OpenRouter API 密钥", @@ -403,7 +403,7 @@ }, "validation": { "apiKey": "您必须提供有效的 API 密钥。", - "awsRegion": "您必须选择一个区域来使用 AWS Bedrock。", + "awsRegion": "您必须选择一个区域来使用 Amazon Bedrock。", "googleCloud": "您必须提供有效的 Google Cloud 项目 ID 和区域。", "modelId": "您必须提供有效的模型 ID。", "modelSelector": "您必须提供有效的模型选择器。", diff --git a/webview-ui/src/i18n/locales/zh-TW/settings.json b/webview-ui/src/i18n/locales/zh-TW/settings.json index d7965b4b2f6..2e6a3383a43 100644 --- a/webview-ui/src/i18n/locales/zh-TW/settings.json +++ b/webview-ui/src/i18n/locales/zh-TW/settings.json @@ -99,7 +99,7 @@ "createProfile": "建立設定檔", "cannotDeleteOnlyProfile": "無法刪除唯一的設定檔", "vscodeLmDescription": "VS Code 語言模型 API 可以讓您使用其他擴充功能(如 GitHub Copilot)提供的模型。最簡單的方式是從 VS Code Marketplace 安裝 Copilot 和 Copilot Chat 擴充套件。", - "awsCustomArnUse": "輸入您要使用的模型的有效 AWS Bedrock ARN。格式範例:", + "awsCustomArnUse": "輸入您要使用的模型的有效 Amazon Bedrock ARN。格式範例:", "awsCustomArnDesc": "確保 ARN 中的區域與您上面選擇的 AWS 區域相符。", "searchPlaceholder": "搜尋設定檔", "noMatchFound": "找不到符合的設定檔", @@ -402,7 +402,7 @@ }, "validation": { "apiKey": "請提供有效的 API 金鑰。", - "awsRegion": "請選擇要用於 AWS Bedrock 的區域。", + "awsRegion": "請選擇要用於 Amazon Bedrock 的區域。", "googleCloud": "請提供有效的 Google Cloud 專案 ID 和區域。", "modelId": "請提供有效的模型 ID。", "modelSelector": "請提供有效的模型選擇器。", diff --git a/webview-ui/src/utils/validate.ts b/webview-ui/src/utils/validate.ts index 7267fe1bc8a..7dd982e88cb 100644 --- a/webview-ui/src/utils/validate.ts +++ b/webview-ui/src/utils/validate.ts @@ -82,7 +82,7 @@ export function validateApiConfiguration(apiConfiguration?: ApiConfiguration): s return undefined } /** - * Validates an AWS Bedrock ARN format and optionally checks if the region in the ARN matches the provided region + * Validates an Amazon Bedrock ARN format and optionally checks if the region in the ARN matches the provided region * @param arn The ARN string to validate * @param region Optional region to check against the ARN's region * @returns An object with validation results: { isValid, arnRegion, errorMessage }