ai-sdk-provider
ai-sdk-provider copied to clipboard
google/gemini-3-pro-preview: search capability returns empty responses
I have been trying to include search capability;
const answer = await generateText({
model: openrouterGemini3Pro,
stopWhen: stepCountIs(100),
providerOptions: {
openrouter: {
reasoning: { effort: "high" },
plugins: [{ id: "web" }],
},
},
messages: [/* .... */]
})
It's almost always returning an empty response.
I searched on Discord. Other users using the openai python sdk claim that it is working as expected for them, using the plugins extrabody approach.