Repository navigation
Fixes 36757: Update the Anthropic model default and align Bedrock configuration - #38900
Conversation
❌ PR checklist incompleteThis 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 |
|
Hi team — Backend CI, |
Code Review ✅ Approved 🟡 Medium riskChanging 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 VerificationRules No rules evaluated Functional validation Not enabledAuto-approval Not enabledFor more verification details, comment OptionsDisplay: compact → Showing compact verification results. Comment with these commands to change the behavior for this request:
Was this helpful? React with 👍 / 👎 | Powered by Gitar — free for open source |
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) andllmConfiguration.jsonstill default to the retiredclaude-3-5-sonnet-20240620model. The Bedrock schema default also still lists that retired model even though the shipped YAML already moved toeu.anthropic.claude-haiku-5-5. In addition, newer Claude responses can includethinkingblocks beforetextblocks, which previously caused completion text to be missed.Type of change
What changed and trade-offs
conf/openmetadata.yamlandllmConfiguration.jsontoclaude-sonnet-5-5(Anthropic’s replacement for Sonnet 3.5).eu.anthropic.claude-haiku-5-5).AnthropicCompletionClientto concatenate alltextblocks while skippingthinkingblocks.LLM_BEDROCK_MODEL_ID.Proof it works
LLMCompletionClientFactoryTestverifies shipped YAML defaults match the generated Java schema defaults and honor environment overrides.AnthropicCompletionClientTest#readsAllTextBlocksAfterThinkingchecks the model sent on the first request and parses multi-block responses against a local HTTP test server.Backend CI,ci-pr,TypeScript Type Generation, Compatibility checks, and Gitar all passed on185729ecb.Summary by Gitar
textblocks in Anthropic responses, skippingthinkingblocksreadsAllTextBlocksAfterThinkinginAnthropicCompletionClientTestfor multi-block responsesshippedClaudeModelsMatchSchemaDefaultsto verify shipped YAML and schema defaultsThis will update automatically on new commits.