logoalt Hacker News

gwerbintoday at 1:52 PM2 repliesview on HN

We were messing around at work last week building an AI agent that was supposed to only respond with JSON data. GPT and Sonnet more or less what we wanted, but Gemma insisted on giving us a Python code snippet.


Replies

otabdeveloper4today at 2:13 PM

> that was supposed to only respond with JSON data.

You need to constrain token sampling with grammars if you actually want to do this.

show 1 reply
cubefoxtoday at 3:36 PM

Gemma≠Gemini