Closed Hendler closed 10 months ago
I appreciate that other response_format
parameters in the API accept strings and this is different but I'm not sure how you've seen that the documentation implies the type here is a string? In the link you shared it says the type it accepts is object
.
Thank you for the quick response. Documentation consistent for that endpoint (I misread). Other endpoints appear to accept literals. Only a consistency issue.
Most are
Typing.Literal
, notDict
. ~This is especially confusing given that the default param is astr
and the documentation seems to imply the type is str~. Instead it requiresresponse_format={"type": "json_object"}
and{"type": "text"}
produces:
I haven't dug deeper; perhaps this has a reason I am missing, such as it is detected as dict, so the api "knows" the type.