mirror of
https://github.com/RooVetGit/Roo-Code.git
synced 2026-10-17 04:34:21 +00:00
* Bedrock prompt caching * remove whitespace only change to src/api/providers/base-provider.ts * remove integration test that calls bedrock * PR prep cleanup * test file and redundant code cleanup * updated multi-cache-point * optimized cache strategy * cache logic updated. commit before trying to simplify newConversationPlacements * simplified initial cachePoint logic * fix the missing caching params for claude 3.7 on bedrock * undo unintentional changes to README.md files * fix merge bug that hid use prompt cache checkbox * prep for PR * remove unintended changes * revert .gitignore change * undo unintended changes * Issue 1998 - Unable to use ARN. https://github.com/RooVetGit/Roo-Code/issues/1998 - Simplify region extraction from Arns. Change example of ARN use from the foundational model ARN to an inference profile ARN which is what is needed. * small updates to error message * more flexible support for ARNs and hardening of ARN handling * update comment on regex use for platform indipendent cosideration * small code comment update * remove duplicative logic to add a region to the arn when cross-region is selected * Update README files from main branch * improve error handling when on-demand throughput is not avialable for a foundational model * fix prompt router bug * minor tweaks for simplicity * error messgae formatting * set new version of bedrock runtime package * fixes: 2229 - complete prompt doesn't work and appears like a no-op * remove commented out logger.debug blocks per PR review request * localize new prompt cache UI inputs * single source of truth for AWS Region information --------- Co-authored-by: Matt Rubens <mrubens@users.noreply.github.com>
48 lines
1.5 KiB
TypeScript
48 lines
1.5 KiB
TypeScript
import {
|
|
ApiProvider,
|
|
ModelInfo,
|
|
anthropicModels,
|
|
bedrockModels,
|
|
deepSeekModels,
|
|
geminiModels,
|
|
mistralModels,
|
|
openAiNativeModels,
|
|
vertexModels,
|
|
} from "../../../../src/shared/api"
|
|
|
|
export const MODELS_BY_PROVIDER: Partial<Record<ApiProvider, Record<string, ModelInfo>>> = {
|
|
anthropic: anthropicModels,
|
|
bedrock: bedrockModels,
|
|
deepseek: deepSeekModels,
|
|
gemini: geminiModels,
|
|
mistral: mistralModels,
|
|
"openai-native": openAiNativeModels,
|
|
vertex: vertexModels,
|
|
}
|
|
|
|
export const PROVIDERS = [
|
|
{ value: "openrouter", label: "OpenRouter" },
|
|
{ value: "anthropic", label: "Anthropic" },
|
|
{ value: "gemini", label: "Google Gemini" },
|
|
{ value: "deepseek", label: "DeepSeek" },
|
|
{ value: "openai-native", label: "OpenAI" },
|
|
{ value: "openai", label: "OpenAI Compatible" },
|
|
{ value: "vertex", label: "GCP Vertex AI" },
|
|
{ value: "bedrock", label: "AWS Bedrock" },
|
|
{ value: "glama", label: "Glama" },
|
|
{ value: "vscode-lm", label: "VS Code LM API" },
|
|
{ value: "mistral", label: "Mistral" },
|
|
{ value: "lmstudio", label: "LM Studio" },
|
|
{ value: "ollama", label: "Ollama" },
|
|
{ value: "unbound", label: "Unbound" },
|
|
{ value: "requesty", label: "Requesty" },
|
|
{ value: "human-relay", label: "Human Relay" },
|
|
].sort((a, b) => a.label.localeCompare(b.label))
|
|
|
|
export const VERTEX_REGIONS = [
|
|
{ value: "us-east5", label: "us-east5" },
|
|
{ value: "us-central1", label: "us-central1" },
|
|
{ value: "europe-west1", label: "europe-west1" },
|
|
{ value: "europe-west4", label: "europe-west4" },
|
|
{ value: "asia-southeast1", label: "asia-southeast1" },
|
|
]
|