Skip to Content
Anuma SDKClientInternalType AliasesOpenaiChatCompletionNewParamsResponseFormatUnion

OpenaiChatCompletionNewParamsResponseFormatUnion

OpenaiChatCompletionNewParamsResponseFormatUnion = object

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

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:4638 


ofJSONObject?

optional ofJSONObject: SharedResponseFormatJsonObjectParam

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


ofJSONSchema?

optional ofJSONSchema: SharedResponseFormatJsonSchemaParam

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


ofText?

optional ofText: SharedResponseFormatTextParam

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

Last updated on