Skip to content

Commit 66ba2df

Browse files
authored
fix: bedrock fallback (#454)
1 parent d5f164b commit 66ba2df

1 file changed

Lines changed: 4 additions & 2 deletions

File tree

src/lib/agent/agent-interface.ts

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -667,10 +667,12 @@ export async function initializeAgent(
667667

668668
// audit-3000 needs Opus 4.7's depth for the multi-phase audit chain;
669669
// every other workflow runs on Sonnet 4.6.
670+
// Bare model IDs (no `anthropic/` prefix) so the LLM gateway's Bedrock
671+
// fallback can match map_to_bedrock_model()'s strict lookup.
670672
const model =
671673
config.integrationLabel === 'audit-3000'
672-
? 'anthropic/claude-opus-4-7'
673-
: 'anthropic/claude-sonnet-4-6';
674+
? 'claude-opus-4-6'
675+
: 'claude-sonnet-4-6';
674676

675677
const agentRunConfig: AgentRunConfig = {
676678
workingDirectory: config.workingDirectory,

0 commit comments

Comments
 (0)