Skip to content

fix: stop offering end-of-life models for Advanced Parsing#1127

Open
NitroBoss wants to merge 1 commit into
aws-samples:v3from
NitroBoss:fix/remove-eol-parsing-models
Open

fix: stop offering end-of-life models for Advanced Parsing#1127
NitroBoss wants to merge 1 commit into
aws-samples:v3from
NitroBoss:fix/remove-eol-parsing-models

Conversation

@NitroBoss

Copy link
Copy Markdown
Contributor

Mitigates #1126.

Two of the three selectable Advanced Parsing models (anthropic.claude-3-5-sonnet-v1, anthropic.claude-3-sonnet-v1) reached end of life on Bedrock, so selecting them makes every IngestKnowledgeBaseDocuments call fail with a 404 and the knowledge base silently ends up empty. Claude 3 Haiku is the only option still invocable.

What this PR does

  • Removes the two end-of-life models from the selectable options (backend create/update schema, frontend picker and type).
  • Keeps the legacy values valid for stored bots: a separate type_kb_parsing_model_stored Literal is used by the repository model and the BedrockKnowledgeBaseOutput schema, so bots created before the cut still deserialize and GET responses do not break.
  • In the CDK mapping, legacy values fall back to Claude 3 Haiku with a console.warn, so existing bots configured with an EOL model heal on their next sync instead of failing with the 404.

What this PR deliberately does not do

Adding current-generation models is not a constant swap: every current Claude model on Bedrock is INFERENCE_PROFILE-only (no on-demand), so the parsing configuration needs inference-profile ARN support (plus the matching KB role permissions across the profile regions). That is proposed as the follow-up in #1126.

The now-unused i18n label keys for the removed option are left in place across locales to keep this diff minimal.

We run the equivalent behavior in our deployment; the "parsing disabled" workaround and the 404 root cause are confirmed there.

claude-3-5-sonnet-v1 and claude-3-sonnet-v1 reached end of life on
Bedrock, so selecting them makes every IngestKnowledgeBaseDocuments
call fail with a 404. Only Claude 3 Haiku is still invocable on demand.

Legacy values remain valid for stored bots (separate stored Literal and
Output schema type) and the CDK mapping falls back to Claude 3 Haiku
with a warning so existing bots keep syncing.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant