OpenaiChatCompletionNewParamsResponseFormatUnion
OpenaiChatCompletionNewParamsResponseFormatUnion =
object
Defined in: src/client/types.gen.ts:3432
An object specifying the format that the model must output.
Setting to { "type": "json_schema", "json_schema": {...} } enables Structured
Outputs which ensures the model will match your supplied JSON schema. Learn more
in the
Structured Outputs guide .
Setting to { "type": "json_object" } enables the older JSON mode, which
ensures the message the model generates is valid JSON. Using json_schema is
preferred for models that support it.
Properties
any?
optionalany:unknown
Defined in: src/client/types.gen.ts:3433
ofJSONObject?
optionalofJSONObject:SharedResponseFormatJsonObjectParam
Defined in: src/client/types.gen.ts:3434
ofJSONSchema?
optionalofJSONSchema:SharedResponseFormatJsonSchemaParam
Defined in: src/client/types.gen.ts:3435
ofText?
optionalofText:SharedResponseFormatTextParam
Defined in: src/client/types.gen.ts:3436