test: add regression test for issue #181 (tool response for image)#371
Merged
robert-j-y merged 5 commits intomainfrom Jan 28, 2026
Merged
test: add regression test for issue #181 (tool response for image)#371robert-j-y merged 5 commits intomainfrom
robert-j-y merged 5 commits intomainfrom
Conversation
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
kesavan-byte
pushed a commit
to osm-API/ai-sdk-provider
that referenced
this pull request
Feb 13, 2026
… for image) (OpenRouterTeam#371) * test: add regression test for issue OpenRouterTeam#181 (tool response for image) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: add image-data type test case for issue OpenRouterTeam#181 Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: use exact format from original issue OpenRouterTeam#181 (type: media) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: use AI SDK v3 file-data format for issue OpenRouterTeam#181 regression test Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: remove root cause analysis from issue OpenRouterTeam#181 test comments Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> --------- Co-authored-by: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com>
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Description
Adds a regression test for issue #181 ("tool response for image not working") following the
e2e/issues/pattern established in PR #369.Test coverage (5 test cases):
contenttype containing base64 image data (file-data)contenttype containing image URL (file-url)file-datatype reproducing issue tool response for image not working #181 scenario (AI SDK v3 format)The test documents the observed behavior: tool results with multimodal content (images) are JSON.stringified.
Updates since last revision
type: "file-data") instead of V2type: "media"format from the original issueHuman Review Checklist
e2e/issues/to follow the issue regression test patternChecklist
pnpm stylecheckandpnpm typecheckpnpm testand all tests passChangeset
pnpm changesetto create a changeset fileLink to Devin run: https://app.devin.ai/sessions/b5fe98b56d854923975d83d933cdbf45
Requested by: Robert Yeakel (@robert-j-y)