test: add regression test for issue #212 (Anthropic web search :online error)#376
Merged
robert-j-y merged 4 commits intomainfrom Jan 28, 2026
Merged
Conversation
…e error) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
…rameter) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai>
…212 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
… search :online error) (OpenRouterTeam#376) * test: add regression test for issue OpenRouterTeam#212 (Anthropic web search :online error) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * fix: update test to match original issue OpenRouterTeam#212 exactly (use prompt: parameter) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * fix: use correct model anthropic/claude-sonnet-4.5:online from issue OpenRouterTeam#212 Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * fix: remove root cause analysis, only include known facts from issue 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 #212 ("Anthropic Model Error with Web Search :online Applied") to the
e2e/issues/directory.Issue summary: Using
anthropic/claude-sonnet-4.5:onlinewithstreamTextthrewAI_APICallError: Expected 'id' to be a string. The reporter noted thatopenai/gpt-4o:onlineworked correctly.Test coverage:
anthropic/claude-sonnet-4.5:onlineusing the exact code pattern from the original issue (prompt:parameter,textStreamdestructuring)generateText) with the same modelHuman Review Checklist
anthropic/claude-sonnet-4.5:online, notclaude-3.5-sonnet)prompt:parameter andtextStreamdestructuring, notmessages:array)e2e/issues/pattern established in PR test: add e2e/issues directory with issue #194 regression test #369anthropic/claude-sonnet-4.5:online) - may be slow or flaky if model is unavailableChecklist
pnpm stylecheckandpnpm typecheckpnpm testand all tests passChangeset
pnpm changesetto create a changeset fileLink to Devin run: https://app.devin.ai/sessions/2ae2d68c4c464db78cc0191ddf33d9bc
Requested by: Robert Yeakel (@robert-j-y)