Comment by fzysingularity

Comment by fzysingularity 2 days ago

1 reply

Ah ok, I misunderstood. As far as I've seen, structured outputs is essentially "json-mode" with some constraints (i.e. guided decoding over a known schema) - so the model effectively emits valid JSON that conforms to the schema. In function calling, the model is asked to emit "code" that conforms to some function parameter spec. You could use json-mode for function-calling, but probably not the other way around.

I've generally found json-mode to be more useful than function-calling, even though the latter is what everyone fixates on because of it's obvious use in agents.

jasonjmcghee 2 days ago

I don't understand the difference based on your explanation (or the significance of "code") and have used function calling for outputting json according to a schema.