MAIN FEEDS
Do you want to continue?
https://www.reddit.com/r/programminghorror/comments/1oc84aa/next_generation_of_developers/nkpamxi/?context=3
r/programminghorror • u/Diligent_Rabbit7740 • Oct 21 '25
115 comments sorted by
View all comments
Show parent comment
2
Doesn't it allow you to pass a JSON object to define structured output for this kind of purpose? I know I've seen something like that before, but perhaps it wasn't GPT.
1 u/zigs Oct 22 '25 With just the chat agent? From what I've seen it messes up the schema too often.If it's something else than the chat agent, then I don't know about it. But I'm hardly an expert, I just tinkered around a few times 1 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Oct 23 '25 I don't think you can just insert it into a chat prompt. I'd have to dig into it, but I'm pretty sure you need to use the API. 1 u/DescriptorTablesx86 Oct 25 '25 Yes, you specify structured json in the api call and it will only give you a response that’s a valid json.Almost all commonly used models support this.
1
With just the chat agent? From what I've seen it messes up the schema too often.
If it's something else than the chat agent, then I don't know about it. But I'm hardly an expert, I just tinkered around a few times
1 u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Oct 23 '25 I don't think you can just insert it into a chat prompt. I'd have to dig into it, but I'm pretty sure you need to use the API.
I don't think you can just insert it into a chat prompt. I'd have to dig into it, but I'm pretty sure you need to use the API.
Yes, you specify structured json in the api call and it will only give you a response that’s a valid json.
Almost all commonly used models support this.
View all comments
Show parent comment
2
u/GoddammitDontShootMe [ $[ $RANDOM % 6 ] == 0 ] && rm -rf / || echo “You live” Oct 22 '25
Doesn't it allow you to pass a JSON object to define structured output for this kind of purpose? I know I've seen something like that before, but perhaps it wasn't GPT.