Skip to content

fix(bedrock): tolerate null image_url values - #55752

Closed
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-55686
Closed

fix(bedrock): tolerate null image_url values#55752
kyssta-exe wants to merge 1 commit into
NousResearch:mainfrom
kyssta-exe:auto-fix/issue-55686

Conversation

@kyssta-exe

Copy link
Copy Markdown
Contributor

Fixes #55686.\n\nBedrock Converse conversion now treats non-string image_url.url values as an empty URL before checking for data URLs, avoiding AttributeError on null values. Added a regression test covering the null-url case.\n\nTests:\n- scripts/run_tests.sh tests/agent/test_bedrock_adapter.py -k 'image_url_with_null_url or image_data_url_converted'

@alt-glitch alt-glitch added type/bug Something isn't working comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint provider/bedrock AWS Bedrock (boto3, IAM) P2 Medium — degraded but workaround exists duplicate This issue or pull request already exists labels Jun 30, 2026
@alt-glitch

Copy link
Copy Markdown
Collaborator

This was generated by AI during triage.

Duplicate of #55685 — same bug, same file (agent/bedrock_adapter.py _convert_content_to_converse), same mechanism (coerce a null/non-string image_url.url to '' before the data: check so a present url=None no longer raises AttributeError), both fixing issue #55686. #55685 is the earliest OPEN fix — canonical. Related to the other competing OPEN fix #55699 and to issue #55686.

@kyssta-exe

Copy link
Copy Markdown
Contributor Author

Stale — 14-24 days without merge activity.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

comp/agent Core agent runtime: loop, agent_init, prompt builder, context-compression, responses endpoint duplicate This issue or pull request already exists P2 Medium — degraded but workaround exists provider/bedrock AWS Bedrock (boto3, IAM) type/bug Something isn't working

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Bedrock Converse conversion crashes (AttributeError) on an image_url part with a null url

3 participants