Closed as not planned
Description
Most are Typing.Literal
, not Dict
. This is especially confusing given that the default param is a . Instead it requires str
and the documentation seems to imply the type is strresponse_format={"type": "json_object"}
and {"type": "text"}
openai.chat.completions.create(
model=model_type,
messages=prompts,
response_format="json_object"
)
produces:
openai.BadRequestError: Error code: 400 -
{'error': {'message':
"'json_object' is not of type 'object' - 'response_format'",
'type': 'invalid_request_error', 'param': None, 'code': None}}
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.
Metadata
Metadata
Assignees
Labels
No labels