Problem
The Amplify docs AI pages use Claude [VERSION] [SIZE] format for Claude 4+ models (e.g., Claude 4.5 Haiku), but the actual a.ai.model() accepted strings use Claude [SIZE] [VERSION] (e.g., Claude Haiku 4.5).
This matches the Bedrock naming convention change for post-4 models (Bedrock model cards).
Source of truth
ModelType.ts defines the accepted strings:
// 3.x — VERSION then SIZE (correct in docs)
'Claude 3.5 Haiku'
'Claude 3.5 Sonnet'
// 4+ — SIZE then VERSION (wrong in docs)
'Claude Opus 4'
'Claude Sonnet 4'
'Claude Haiku 4.5'
'Claude Sonnet 4.5'
'Claude Opus 4.5'
'Claude Sonnet 4.6'
'Claude Opus 4.6'
Affected pages
Expected
Docs should show Claude Haiku 4.5 (not Claude 4.5 Haiku) to match the code and Bedrock naming.
Users copying from docs will get a TypeScript compile error since the string doesn't match keyof typeof supportedModelsLookup.
Problem
The Amplify docs AI pages use
Claude [VERSION] [SIZE]format for Claude 4+ models (e.g.,Claude 4.5 Haiku), but the actuala.ai.model()accepted strings useClaude [SIZE] [VERSION](e.g.,Claude Haiku 4.5).This matches the Bedrock naming convention change for post-4 models (Bedrock model cards).
Source of truth
ModelType.tsdefines the accepted strings:Affected pages
a.ai.model()examplesExpected
Docs should show
Claude Haiku 4.5(notClaude 4.5 Haiku) to match the code and Bedrock naming.Users copying from docs will get a TypeScript compile error since the string doesn't match
keyof typeof supportedModelsLookup.