Related:
◈ Gemini API/2026-05-22Advanced
Why Gemini API Returns Empty Responses with finishReason: RECITATION, and the Prompt + Post-Processing Design That Stopped It
Run a Gemini content agent long enough and one day logs fill with finishReason: 'RECITATION' and empty content arrays. This is the verbatim-quotation safety system firing. Here is the prompt rewriting pattern and TypeScript post-processor I deployed across six auto-publishing pipelines at Dolice — it dropped my incident rate by 90%.
◈ Gemini API/2026-04-24Advanced
Designing Production-Grade Safety Controls for the Gemini API: A Layered Moderation Architecture That Minimizes False Positives Without Letting Abuse Through
Relying on the Gemini API's Safety Settings alone leads to legitimate questions getting false-blocked or carefully crafted malicious prompts slipping through. This guide shows a four-layer moderation design that stands up in production.