npm init -y && npm install ai @ai-sdk/openai zod tsx
POE_API_KEY=your-key npx tsx poe-repro.ts/v1/responses returns invalid output_text for Google models when making tool calls:
{"type": "output_text", "annotations": []}Missing required text field. Should be:
{"type": "output_text", "text": "", "annotations": []}Also, top-level text is {} instead of {"format": {"type": "text"}}.
Affects: gemini-3.1-pro, gemini-3-flash, gemini-2.5-pro, gemini-2.5-flash, gemini-2.5-flash-lite, gemini-2.0-flash. Not affected: OpenAI models (gpt-5.2, o3, etc.) work correctly.