Skip to content

test: add regression test for issue #212 (Anthropic web search :online error)#376

Merged
robert-j-y merged 4 commits intomainfrom
devin/1769563148-issue-212-regression-test
Jan 28, 2026
Merged

test: add regression test for issue #212 (Anthropic web search :online error)#376
robert-j-y merged 4 commits intomainfrom
devin/1769563148-issue-212-regression-test

Conversation

@robert-j-y
Copy link
Contributor

@robert-j-y robert-j-y commented Jan 28, 2026

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:online with streamText threw AI_APICallError: Expected 'id' to be a string. The reporter noted that openai/gpt-4o:online worked correctly.

Test coverage:

  • Streaming with anthropic/claude-sonnet-4.5:online using the exact code pattern from the original issue (prompt: parameter, textStream destructuring)
  • Non-streaming (generateText) with the same model

Human Review Checklist

Checklist

  • I have run pnpm stylecheck and pnpm typecheck
  • I have run pnpm test and all tests pass
  • I have added tests for my changes (if applicable)
  • I have updated documentation (if applicable)

Changeset

  • I have run pnpm changeset to create a changeset file

Note: Empty changeset used since this is a test-only change that doesn't need a release.


Link to Devin run: https://app.devin.ai/sessions/2ae2d68c4c464db78cc0191ddf33d9bc
Requested by: Robert Yeakel (@robert-j-y)

devin-ai-integration bot and others added 4 commits January 28, 2026 01:21
…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>
@robert-j-y robert-j-y merged commit 701ad75 into main Jan 28, 2026
2 checks passed
@robert-j-y robert-j-y deleted the devin/1769563148-issue-212-regression-test branch January 28, 2026 02:17
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>
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.

1 participant

Comments