Skip to content

fix(bedrock): redact Anthropic system prompt fields - #3950

Merged
caroger merged 4 commits into
Arize-ai:mainfrom
Harsh23Kashyap:fix/bedrock-system-prompt-redaction-3933
Oct 19, 2026
Merged

caroger merged 4 commits into
Arize-ai:mainfrom
Harsh23Kashyap:fix/bedrock-system-prompt-redaction-3933

Conversation

@Harsh23Kashyap

Copy link
Copy Markdown
Contributor

Summary

  • Exclude Anthropic system from Bedrock invocation-parameter attributes so hidden inputs are not duplicated there.
  • Apply the input-message prefix to streamed Anthropic system text blocks so configured input hiding covers them.
  • Add regression coverage for invoke-model parameters and system-message blocks.

Fixes #3933

Tests

  • Focused Bedrock tests: 9 passed (Claude message API and stream response).
  • Ruff check, format check, and diff check passed.

@github-actions

github-actions Bot commented Oct 5, 2026 •

Copy link
Copy Markdown
Contributor

CLA Assistant Lite bot All contributors have signed the CLA ✍️ ✅

@satyadevai
satyadevai force-pushed the fix/bedrock-system-prompt-redaction-3933 branch from 3ac6957 to d1aeba5 Compare October 12, 2026 13:22
@satyadevai
satyadevai force-pushed the fix/bedrock-system-prompt-redaction-3933 branch from 611739a to 85f35e3 Compare October 13, 2026 15:12
@satyadevai
satyadevai force-pushed the fix/bedrock-system-prompt-redaction-3933 branch from 85f35e3 to a36ea2b Compare October 13, 2026 15:14
@caroger
caroger merged commit 7da3360 into Arize-ai:main Oct 19, 2026
23 checks passed
@mikeldking mikeldking mentioned this pull request Oct 19, 2026
caroger added a commit to pcbeingused333/openinference that referenced this pull request Oct 19, 2026
…fied request attributes

After rebasing on Arize-ai#3950, both invoke paths drop anthropic_version from
llm.invocation_parameters, set llm.provider and llm.system, and record a
string system prompt as a text content block.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

3 participants