mirror of
https://github.com/openclaw/openclaw.git
synced 2026-05-08 08:51:23 +00:00
fix: recognize Bedrock as Anthropic-compatible in transcript policy
(cherry picked from commit 3b5154081c)
This commit is contained in:
committed by
Peter Steinberger
parent
3823587ada
commit
792bd6195c
@@ -55,12 +55,12 @@ function isOpenAiProvider(provider?: string | null): boolean {
|
||||
}
|
||||
|
||||
function isAnthropicApi(modelApi?: string | null, provider?: string | null): boolean {
|
||||
if (modelApi === "anthropic-messages") {
|
||||
if (modelApi === "anthropic-messages" || modelApi === "bedrock-converse-stream") {
|
||||
return true;
|
||||
}
|
||||
const normalized = normalizeProviderId(provider ?? "");
|
||||
// MiniMax now uses openai-completions API, not anthropic-messages
|
||||
return normalized === "anthropic";
|
||||
return normalized === "anthropic" || normalized === "amazon-bedrock";
|
||||
}
|
||||
|
||||
function isMistralModel(params: { provider?: string | null; modelId?: string | null }): boolean {
|
||||
|
||||
Reference in New Issue
Block a user