News for hackers. Stuff that matters.
Re:Improved Gemini 2.5 Flash and Flash-Lite by mattnewton on Friday September 26, 2025 @02:14AM (#45383281)
Back before structured outputs were common among model providers, I used to have a “end result” tool the model could call to get the structured response I was looking for. It worked very reliably.

It’s a bit of a hack but maybe that reliably works here?

Re:Improved Gemini 2.5 Flash and Flash-Lite by nico on Friday September 26, 2025 @12:17PM (#45388166)
You can definitely build an agent and have it use tools like you mention. That’s the equivalent of making 2 requests to Gemini, one to get the initial answer/content, then another to get it formatted as proper json

The issue here is that Gemini has support for some internal tools (like search and web scraping), and when you ask the model to use those, you can’t also ask it to use application/json as the output (which you normally can when not using tools)

Not a huge issue, just annoying

Re:Improved Gemini 2.5 Flash and Flash-Lite by KoolKat23 on Friday September 26, 2025 @01:02PM (#45388685)
I think this might be also something to do with their super specific outputting requirements when you do use search (has to be displayed in predefined Google format).