From a793523b749769e828c6552b0de9489eb66cecec Mon Sep 17 00:00:00 2001 From: Andrew Lauppe Date: Tue, 20 Jan 2026 01:28:07 -0500 Subject: [PATCH] feat(models): add bedrock-converse-stream API type Add AWS Bedrock Converse Stream API to the list of supported model APIs, enabling custom provider configurations for Amazon Bedrock endpoints. This allows users to configure Bedrock models in their clawdbot.json: "models": { "providers": { "amazon-bedrock": { "baseUrl": "https://bedrock-runtime.us-east-1.amazonaws.com", "api": "bedrock-converse-stream", "models": [...] } } } The underlying adapter already exists; this change exposes it as a valid configuration option. --- src/config/types.models.ts | 3 ++- src/config/zod-schema.core.ts | 1 + 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/config/types.models.ts b/src/config/types.models.ts index 151c25238..92032ae1e 100644 --- a/src/config/types.models.ts +++ b/src/config/types.models.ts @@ -3,7 +3,8 @@ export type ModelApi = | "openai-responses" | "anthropic-messages" | "google-generative-ai" - | "github-copilot"; + | "github-copilot" + | "bedrock-converse-stream"; export type ModelCompatConfig = { supportsStore?: boolean; diff --git a/src/config/zod-schema.core.ts b/src/config/zod-schema.core.ts index 8b11825fd..13a0f1668 100644 --- a/src/config/zod-schema.core.ts +++ b/src/config/zod-schema.core.ts @@ -8,6 +8,7 @@ export const ModelApiSchema = z.union([ z.literal("anthropic-messages"), z.literal("google-generative-ai"), z.literal("github-copilot"), + z.literal("bedrock-converse-stream"), ]); export const ModelCompatSchema = z