Welcome to Portkey Forum

Updated last year

Why do some prompts give me the opportunity to switch between text and JSON outp...

At a glance
Why do some prompts give me the opportunity to switch between text and JSON output format, but others don't? And what does that mean exactly?
T
e
V
7 comments
My bad, I am still learning.
That is not helpful.
Haha yeah. Let me remove it. Sorry about that!
@ekevu., Are you referring to the “raw prompt” feature or the “response type” model parameter?
The response type
This is a new feature by OpenAI that helps you enforce outputs in JSON format - it's only available for 1106 models which is why you're only seeing that option in some prompts maybe. Here's more on that: https://platform.openai.com/docs/guides/text-generation/json-mode
Attachment
image.png
Ah, makes sense! I wasn't aware that this was only for GPT-4-Turbo.
Add a reply
Sign up and join the conversation on Discord