Results 2 issues of Pedro Martinez Lopez

### Description Related issue: https://github.com/vercel/ai/issues/4153 Error doesn't happen if structuredOutputs: false ### Code example ```ts const model = google('gemini-2.0-flash', { structuredOutputs: true }) const mainSchema = z.array(z.union([subSchema1, subSchema2])) const response...

bug
ai/provider

### Provide environment information System: OS: Linux 6.6 Ubuntu 22.04.5 LTS 22.04.5 LTS (Jammy Jellyfish) CPU: (12) x64 Intel(R) Core(TM) i7-10710U CPU @ 1.10GHz Memory: 11.96 GB / 15.52 GB...