structured-output0 questions

Enforcing specific output schemas

12votes
1answers

Comparing function calling vs JSON mode for structured output - which is better?

I need to extract structured data from unstructured text using GPT-4. I've tried both approaches: **Function Calling:** ```python response = client.chat.completions.create( model="gpt-4", mes...

askedabout 2 months ago
Marcus Johnson2120
8votes
0answers

Comparing function calling vs JSON mode for structured output - which is better?

I need to extract structured data from unstructured text using GPT-4. I've tried both approaches: **Function Calling:** ```python response = client.chat.completions.create( model="gpt-4", mes...

askedabout 2 months ago
Marcus Johnson2120
18votes
0answers

Comparing function calling vs JSON mode for structured output - which is better?

I need to extract structured data from unstructured text using GPT-4. I've tried both approaches: **Function Calling:** ```python response = client.chat.completions.create( model="gpt-4", mes...

askedabout 2 months ago
Marcus Johnson2120