Join Slack
Powered by
Oh OpenAI finally offered constrained generation e...
# of-ai
t
Tom Larkworthy
11/17/2025, 6:24 PM
Oh OpenAI finally offered constrained generation e.g. supply the regex the output should match (something llama.cpp had). I get much better results for coding LLM if the output is XML, so now I can have a custom too output valid XML trivially.
https://cookbook.openai.com/examples/gpt-5/gpt-5_new_params_and_tools#3-contextfree-grammar-cfg
Tom Larkworthy
11/17/2025, 7:44 PM
this is really great actually, you don't need to even explain what the output format should be, it is railroaded into producing conforming output
a
alltom
12/30/2025, 12:02 AM
In my experience, you do get much better output if you
do
though.
4
Views
Open in Slack
Previous
Next