feat(llm): add Amazon Bedrock as a first-class provider

Bedrock uses the Converse API (langchain-aws) and the AWS credential chain, so
it has its own client like Anthropic/Google rather than the OpenAI-compatible
registry. langchain-aws is an optional dependency (pip install ".[bedrock]"),
lazy-imported with a clear install hint; importing the package never requires
it. The model name is a Bedrock model ID / inference profile ID.
This commit is contained in:
Yijia-Xiao committed 2026-06-14 04:24:54 +00:00
1 parent 295e84cd54
commit 895ed130f9
10 files changed
+139 -2

No files matched your search

+1 -1
View File
@@ -8,7 +8,7 @@ from .model_catalog import get_known_models
# accepted without warning.
_ANY_MODEL_PROVIDERS = (
"ollama", "openrouter", "openai_compatible",
"mistral", "kimi", "groq", "nvidia",
"mistral", "kimi", "groq", "nvidia", "bedrock",
)
VALID_MODELS = {