ai-sdk-provider icon indicating copy to clipboard operation
ai-sdk-provider copied to clipboard

google/gemini-3-pro-preview: search capability returns empty responses

Open seannetlife opened this issue 1 month ago • 0 comments

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.

seannetlife avatar Nov 24 '25 06:11 seannetlife