add native Bedrock Converse provider
Made-with: Cursor
This commit is contained in:
1 parent
3c20d16117
commit
306958d6e6
11 files changed
+1226
-4
No files matched your search
@@ -34,7 +34,7 @@ class ProviderSpec:
|
||||
display_name: str = "" # shown in `nanobot status`
|
||||
|
||||
# which provider implementation to use
|
||||
# "openai_compat" | "anthropic" | "azure_openai" | "openai_codex" | "github_copilot"
|
||||
# "openai_compat" | "anthropic" | "azure_openai" | "openai_codex" | "github_copilot" | "bedrock"
|
||||
backend: str = "openai_compat"
|
||||
|
||||
# extra env vars, e.g. (("ZHIPUAI_API_KEY", "{api_key}"),)
|
||||
@@ -105,6 +105,29 @@ PROVIDERS: tuple[ProviderSpec, ...] = (
|
||||
backend="azure_openai",
|
||||
is_direct=True,
|
||||
),
|
||||
# === AWS Bedrock (native Converse API via bedrock-runtime) =============
|
||||
ProviderSpec(
|
||||
name="bedrock",
|
||||
keywords=(
|
||||
"bedrock",
|
||||
"anthropic.claude",
|
||||
"amazon.nova",
|
||||
"meta.",
|
||||
"mistral.",
|
||||
"cohere.",
|
||||
"qwen.",
|
||||
"deepseek.",
|
||||
"openai.gpt-oss",
|
||||
"ai21.",
|
||||
"moonshot.",
|
||||
"writer.",
|
||||
"zai.",
|
||||
),
|
||||
env_key="AWS_BEARER_TOKEN_BEDROCK",
|
||||
display_name="AWS Bedrock",
|
||||
backend="bedrock",
|
||||
is_direct=True,
|
||||
),
|
||||
# === Gateways (detected by api_key / api_base, not model name) =========
|
||||
# Gateways can route any model, so they win in fallback.
|
||||
# OpenRouter: global gateway, keys start with "sk-or-"
|
||||
|
||||
Reference in new issue
Block a user