3 ms·
We're using a similar approach with OpenAI. The user can define a schema using zod and call a prompt. We're then using OpenAI functions behind the scenes to par
by jensneuse 3y ago
We're using a similar approach with OpenAI. The user can define a schema using zod and call a prompt. We're then using OpenAI functions behind the scenes to parse the answer into the shape the user wants. Add JSON schema validation on top and we can be sure that the response conforms to our Schema. Some more details and examples can be found in this blog post: https://wundergraph.com/blog/beyond_functions_seamlessly_build_ai_enhanced_apis_with_openai https://wundergraph.com/blog/beyond_functions_seamlessly_bui...