test: add regression tests for issues #287 and #341#380
Merged
robert-j-y merged 2 commits intomainfrom Jan 28, 2026
Merged
Conversation
- Issue #287: Tool calls with missing arguments field Tests that tool calls work correctly when the arguments field is omitted by upstream providers for tools with no parameters - Issue #341: Cache control only applies to last text part Tests that message-level cache_control works correctly with multi-part messages on Anthropic models Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
Updated to use anthropic/claude-3.5-haiku as mentioned in the original issue context (Anthropic Haiku was noted as potentially omitting the arguments field for tools with no parameters). 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
…erTeam#341 (OpenRouterTeam#380) * test: add regression tests for issues OpenRouterTeam#287 and OpenRouterTeam#341 - Issue OpenRouterTeam#287: Tool calls with missing arguments field Tests that tool calls work correctly when the arguments field is omitted by upstream providers for tools with no parameters - Issue OpenRouterTeam#341: Cache control only applies to last text part Tests that message-level cache_control works correctly with multi-part messages on Anthropic models Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * fix: use Anthropic Haiku model for issue OpenRouterTeam#287 test Updated to use anthropic/claude-3.5-haiku as mentioned in the original issue context (Anthropic Haiku was noted as potentially omitting the arguments field for tools with no parameters). 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 e2e regression tests for two fixed issues:
Issue #287 - Tool calls with missing arguments field
argumentsfield for tools with no parametersAI_TypeValidationErrorbecause the schema requiredargumentsto be a stringanthropic/claude-3.5-haiku(mentioned in original issue context as potentially omitting the arguments field)Issue #341 - Cache control only applies to last text part
cache_controlworks correctly with multi-part messages on Anthropic modelsanthropic/claude-3.5-haikuwhich supports cache controlUpdates since last revision
anthropic/claude-3.5-haikuinstead ofopenai/gpt-4o-minito match the original issue context (Anthropic Haiku was noted as potentially omitting the arguments field)Human Review Checklist
anthropic/claude-3.5-haiku) is appropriate based on original issue contextChecklist
pnpm stylecheckandpnpm typecheckpnpm testand all tests passChangeset
pnpm changesetto create a changeset fileLink to Devin run: https://app.devin.ai/sessions/ad14476ac9334b8a962f771f56e48975
Requested by: Robert Yeakel (@robert-j-y)