mirror of
https://github.com/openclaw/openclaw.git
synced 2026-07-16 16:01:38 +00:00
* feat(anthropic): support Claude Fable 5 * test(anthropic): tighten Fable stream fixtures * fix(anthropic): preserve Vertex input types * test(anthropic): use provider-ready Vertex effort * fix(anthropic): support Fable deployment aliases * fix(anthropic): discard incomplete Fable output * feat(anthropic): support Fable on Bedrock * fix(anthropic): preserve Fable reasoning contracts * refactor(anthropic): unify canonical Claude model policy * fix(anthropic): satisfy extension thinking types * test(anthropic): complete canonical alias fixture * fix(bedrock): scope thinking case declarations
19 lines
682 B
TypeScript
19 lines
682 B
TypeScript
/**
|
|
* Provider-policy API for Amazon Bedrock. Core asks this plugin for thinking
|
|
* profiles without importing provider registration or streaming code.
|
|
*/
|
|
import { normalizeProviderId } from "openclaw/plugin-sdk/provider-model-shared";
|
|
import { resolveBedrockClaudeThinkingProfile } from "./thinking-policy.js";
|
|
|
|
/** Resolve the Bedrock thinking profile for a provider/model pair. */
|
|
export function resolveThinkingProfile(params: {
|
|
provider: string;
|
|
modelId: string;
|
|
params?: Record<string, unknown>;
|
|
}) {
|
|
if (normalizeProviderId(params.provider) !== "amazon-bedrock") {
|
|
return null;
|
|
}
|
|
return resolveBedrockClaudeThinkingProfile(params.modelId, params.params);
|
|
}
|