Skip to content

Fixes 36757: Update the Anthropic model default and align Bedrock configuration - #38900

Merged
pmbrull merged 3 commits into
open-metadata:mainfrom
iamkiayun:fix/36757-llm-model-defaults
Dec 2, 2026
Merged

pmbrull merged 3 commits into
open-metadata:mainfrom
iamkiayun:fix/36757-llm-model-defaults

Conversation

@iamkiayun

@iamkiayun iamkiayun commented Nov 26, 2026 •

Copy link
Copy Markdown
Contributor

What is broken and why

Fixes #36757

New Anthropic setups fail on their first request with a model-not-found error because conf/openmetadata.yaml (LLM_ANTHROPIC_MODEL_ID) and llmConfiguration.json still default to the retired claude-3-5-sonnet-20240620 model. The Bedrock schema default also still lists that retired model even though the shipped YAML already moved to eu.anthropic.claude-haiku-5-5. In addition, newer Claude responses can include thinking blocks before text blocks, which previously caused completion text to be missed.

Type of change

  • Bug fix

What changed and trade-offs

  • Updated the default Anthropic model in conf/openmetadata.yaml and llmConfiguration.json to claude-sonnet-5-5 (Anthropic’s replacement for Sonnet 3.5).
  • Aligned the Bedrock schema default with the shipped YAML default (eu.anthropic.claude-haiku-5-5).
  • Updated AnthropicCompletionClient to concatenate all text blocks while skipping thinking blocks.
  • Recorded the default policy in the decision record.
  • Trade-off: Explicit model choices continue to take precedence; Bedrock deployments outside EU regions configure a regional profile via LLM_BEDROCK_MODEL_ID.

Proof it works

  • LLMCompletionClientFactoryTest verifies shipped YAML defaults match the generated Java schema defaults and honor environment overrides.
  • AnthropicCompletionClientTest#readsAllTextBlocksAfterThinking checks the model sent on the first request and parses multi-block responses against a local HTTP test server.
  • Unverified live: No live Anthropic or AWS Bedrock account was called.
  • CI: Backend CI, ci-pr, TypeScript Type Generation, Compatibility checks, and Gitar all passed on 185729ecb.

Summary by Gitar

  • Response parsing:
    • Concatenates all text blocks in Anthropic responses, skipping thinking blocks
  • Tests:
    • Added readsAllTextBlocksAfterThinking in AnthropicCompletionClientTest for multi-block responses
    • Added shippedClaudeModelsMatchSchemaDefaults to verify shipped YAML and schema defaults
  • Documentation:
    • Added ADR recording the Claude completion default decision

This will update automatically on new commits.

@iamkiayun
iamkiayun marked this pull request as ready for review November 27, 2026 10:15
@iamkiayun
iamkiayun requested a review from a team as a code owner November 27, 2026 10:15
@iamkiayun
iamkiayun requested a review from yan-3005 November 27, 2026 10:15
@github-actions

Copy link
Copy Markdown
Contributor

❌ PR checklist incomplete

This PR cannot be merged until the following are addressed on its linked issue:

The fields live on the linked issue in the Shipping project (open the issue → right sidebar → Projects). After you set them, re-run this check (or push a commit) — issue/project changes do not re-trigger it automatically.

Maintainers can bypass this check by adding the skip-pr-checks label.

@iamkiayun

Copy link
Copy Markdown
Contributor Author

Hi team — Backend CI, ci-pr, TypeScript generation, and Gitar are all green on 185729ecb. Could a maintainer set the Shipping Status and Source fields on #36757 and rerun Validate PR Metadata? Thanks!

@yan-3005
yan-3005 removed their request for review November 30, 2026 09:18
@pmbrull pmbrull assigned pmbrull and unassigned TeddyCr Dec 2, 2026
@gitar-bot

gitar-bot Bot commented Dec 2, 2026

Copy link
Copy Markdown
Code Review ✅ Approved 🟡 Medium risk

Changing default Anthropic and Bedrock models and joining text blocks alters completion behavior; deployments could receive different outputs or fail if a profile is unavailable.

Updates the default Anthropic model in conf/openmetadata.yaml and llmConfiguration.json to claude-sonnet-5-5, aligns the Bedrock schema default with the shipped eu.anthropic.claude-haiku-5-5, and makes AnthropicCompletionClient concatenate all text blocks while skipping thinking blocks. No issues found.

Verification

Rules No rules evaluated

Functional validation Not enabled

Set up

Auto-approval Not enabled

Set up

For more verification details, comment gitar display:verbose.

Options

Display: compact → Showing compact verification results.

Comment with these commands to change the behavior for this request:

Compact
gitar display:verbose         

Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source

@pmbrull
pmbrull enabled auto-merge (squash) December 2, 2026 08:38
@pmbrull
pmbrull merged commit 01b12e7 into open-metadata:main Dec 2, 2026
34 of 36 checks passed
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.

Default Anthropic model in the LLM configuration is a retired model (claude-3-5-sonnet-20240620)

3 participants