Skip to content

fix(bedrock): record Converse model request fields in invocation parameters - #3984

Merged
caroger merged 8 commits into
Arize-ai:mainfrom
Harsh23Kashyap:fix/bedrock-converse-invocation-parameters-3944
Oct 19, 2026
Merged

caroger merged 8 commits into
Arize-ai:mainfrom
Harsh23Kashyap:fix/bedrock-converse-invocation-parameters-3944

Conversation

@Harsh23Kashyap

@Harsh23Kashyap Harsh23Kashyap commented Oct 8, 2026 •

Copy link
Copy Markdown
Contributor

Fixes #3944

The Bedrock Converse instrumentation did not record additionalModelRequestFields (for example top_k or thinking) in llm.invocation_parameters. It also copied the response stopReason into llm.invocation_parameters as stop_reason, which is a response value and not a request parameter.

Changes:

  • llm.invocation_parameters now merges inferenceConfig and additionalModelRequestFields.
  • The response stopReason is no longer written into llm.invocation_parameters. It is still recorded as llm.finish_reason.
  • Updated the Converse stream tests for the new behavior and added tests for the merged parameters and for the finish reason staying out of invocation parameters.

Compatibility note: this changes the nested JSON keys in llm.invocation_parameters. Spans with only a response stopReason and no request parameters no longer carry that attribute, and stop_reason is no longer a key inside it. Anything that read stop_reason from there should use llm.finish_reason.

@cursor

cursor Bot commented Oct 8, 2026

Copy link
Copy Markdown

Removed the manual CHANGELOG entry. This repository uses release-please to auto-generate CHANGELOGs from conventional commit PR titles when merged. The manual 'Unreleased' section would have caused conflicts or been overwritten. The PR title already follows conventional commit format (fix(bedrock): ...), so release-please will generate the correct changelog entry automatically.

@satyadevai
satyadevai force-pushed the fix/bedrock-converse-invocation-parameters-3944 branch from 24471ee to f7ceb46 Compare October 14, 2026 14:28
@satyadevai
satyadevai force-pushed the fix/bedrock-converse-invocation-parameters-3944 branch from 03e2359 to b5efc04 Compare October 15, 2026 16:03
@caroger
caroger merged commit 94f907a into Arize-ai:main Oct 19, 2026
23 checks passed
@mikeldking mikeldking mentioned this pull request Oct 19, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[bug] bedrock: Converse llm.invocation_parameters omits additionalModelRequestFields (e.g. top_k) and includes the response stop_reason

4 participants