test: add regression test for issue #248 (Gemini web search empty responses)#377
Merged
robert-j-y merged 4 commits intomainfrom Jan 28, 2026
Merged
Conversation
…ponses) 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>
… thread 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
…arch empty responses) (OpenRouterTeam#377) * test: add regression test for issue OpenRouterTeam#248 (Gemini web search empty responses) Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * fix: add reasoning config to match exact issue OpenRouterTeam#248 scenario Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * fix: update test to use exact providerOptions pattern from issue OpenRouterTeam#248 Co-Authored-By: Robert Yeakel <robert.yeakel@openrouter.ai> * test: add comprehensive tests for issue OpenRouterTeam#248 covering all models from thread 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 regression tests for issue #248 (Gemini 3 Pro Preview returning empty responses when using web search plugin).
Test coverage for all models mentioned in the issue thread:
google/gemini-3-pro-preview(original issue): generateText, streamText, and part number search queriesgoogle/gemini-3-flash-preview(Jan 27 comment: "works")anthropic/claude-sonnet-4(Dec 7 comment: stream cuts, partial response)anthropic/claude-opus-4(Dec 7 comment: bugs out, no error)openai/gpt-4.1(Dec 7 comment: "only consistent experience")Configuration: Tests use the exact code pattern from the issue report with
providerOptions: { openrouter: { reasoning: { effort: 'high' }, plugins: [{ id: 'web' }] } }.Updates since last revision
Human Review Checklist
providerOptionsnot model-level settings)Checklist
pnpm stylecheckandpnpm typecheckpnpm testand all tests passChangeset
pnpm changesetto create a changeset fileLink to Devin run: https://app.devin.ai/sessions/b246f84ecad04155bed9b1af8a649f56
Requested by: Robert Yeakel (@robert-j-y)