Skip to content

feat(chat): accept user images on default lane (#596) - #614

Open
rishiiicreates wants to merge 1 commit into
VectifyAI:mainfrom
rishiiicreates:fix/chat-default-lane-user-images
Open

rishiiicreates wants to merge 1 commit into
VectifyAI:mainfrom
rishiiicreates:fix/chat-default-lane-user-images

Conversation

@rishiiicreates

Copy link
Copy Markdown

resolves #596

normalizes user message content parts so the default lane accepts both chat completions image_url dicts and anthropic image base64 blocks on openai agents and claude-code/ engines.

for openai agents, anthropic base64 blocks get converted over to data url image_url payloads, and image_url dicts pass through directly. for claude-code/, data urls get unpacked into native anthropic image blocks, while remote https image urls fail fast with the suggested protocol lane exit since claude code cli only takes base64 images. assistant content is kept strictly string-only, and unknown part types or invalid urls reject eagerly.

added tests in test_local_chat.py and test_claude_code.py verifying the converted image parts make it to fake model and cli doubles intact, along with all the validation boundaries. full test suite passes locally.

Copilot AI balanced review requested due to automatic review settings October 21, 2026 03:51

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

This branch has not been deployed

No deployments
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.

chat(): accept user images on the default lane, on every engine

2 participants