32 ms·
OpenAI structured outputs are pretty stable for me. Gemini sometimes responds with a completely different structure. Gemini 3 flash with grounding sometimes ret
by swe_dima 10mo ago
OpenAI structured outputs are pretty stable for me. Gemini sometimes responds with a completely different structure.
Gemini 3 flash with grounding sometimes returns json inside ```json...``` causing parsing errors.
- codegladiator 10mo agohttps://github.com/josdejong/jsonrepair https://github.com/josdejong/jsonrepair might be useful ( i am not the author )
- euazOn 10mo agoIn case you're using OpenRouter, check out their new Response Healing feature that claims to solve exactly this issue. https://openrouter.ai/announcements/response-healing-reduce-json-defects-by-80percent https://openrouter.ai/announcements/response-healing-reduce-...
- red2awn 10mo agoIt does NOT. Response healing only fixes JSON syntax errors, not schema differences. See https://news.ycombinator.com/item?id=46332119 https://news.ycombinator.com/item?id=46332119