top | item 47073706

(no title)

gwerbin | 10 days ago

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.

discuss

order

otabdeveloper4|10 days ago

> that was supposed to only respond with JSON data.

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

written-beyond|10 days ago

That reduces the quality of the response though.

cubefox|10 days ago

Gemma≠Gemini