←back to thread

169 points constantinum | 1 comments | | HN request time: 0.215s | source
Show context
CraftingLinks ◴[] No.40714816[source]
We just use openai function calls (tools) and then use Pydantic to verify the JSON. When validation fails we try the prompt again.
replies(2): >>40714832 #>>40715169 #
1. knallfrosch ◴[] No.40715169[source]
Same here. I send a JSON schema along with the prompt to ChatGPT as function_call and then verify with NodeJS + Ajv against the same schema again.