4 ms·
Have you tried response_format=json_object? I had better luck with function-calling to get a structured response, but it is more limiting than just getting a J
by ukuina 3y ago
Have you tried response_format=json_object?
I had better luck with function-calling to get a structured response, but it is more limiting than just getting a JSON body.
- egonschiele 3y agoI haven't tried response_format, I'll give that a shot. I've had issues with function calling. Sometimes it works, sometimes it just returns random Python code.
- ukuina 2y agoUsing the openai Python library?