Skip to content

Incorrect Claude 4.x model names on AI docs pages #8573

@hfurkanbozkurt

Description

@hfurkanbozkurt

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething is not working on the documentation site.

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions