Skip to Content
Anuma SDKClientInternalType AliasesOpenaiChatCompletionNewParamsResponseFormatUnion

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?

optional any: unknown

Defined in: src/client/types.gen.ts:3433 


ofJSONObject?

optional ofJSONObject: SharedResponseFormatJsonObjectParam

Defined in: src/client/types.gen.ts:3434 


ofJSONSchema?

optional ofJSONSchema: SharedResponseFormatJsonSchemaParam

Defined in: src/client/types.gen.ts:3435 


ofText?

optional ofText: SharedResponseFormatTextParam

Defined in: src/client/types.gen.ts:3436 

Last updated on