openai-1.0.0: Servant bindings to OpenAI
Safe HaskellSafe-Inferred
LanguageHaskell2010

OpenAI.V1.ResponseFormat

Contents

Description

Synopsis

Types

data ResponseFormat Source #

An object specifying the format that the model must output

Instances

Instances details
FromJSON ResponseFormat Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

ToJSON ResponseFormat Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

Generic ResponseFormat Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

Associated Types

type Rep ResponseFormat :: Type -> Type #

Show ResponseFormat Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

type Rep ResponseFormat Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

type Rep ResponseFormat = D1 ('MetaData "ResponseFormat" "OpenAI.V1.ResponseFormat" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "ResponseFormat_Text" 'PrefixI 'False) (U1 :: Type -> Type) :+: (C1 ('MetaCons "JSON_Object" 'PrefixI 'False) (U1 :: Type -> Type) :+: C1 ('MetaCons "JSON_Schema" 'PrefixI 'True) (S1 ('MetaSel ('Just "json_schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 JSONSchema))))

data JSONSchema Source #

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

Constructors

JSONSchema 

Instances

Instances details
FromJSON JSONSchema Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

ToJSON JSONSchema Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

Generic JSONSchema Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

Associated Types

type Rep JSONSchema :: Type -> Type #

Show JSONSchema Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

type Rep JSONSchema Source # 
Instance details

Defined in OpenAI.V1.ResponseFormat

type Rep JSONSchema = D1 ('MetaData "JSONSchema" "OpenAI.V1.ResponseFormat" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "JSONSchema" 'PrefixI 'True) ((S1 ('MetaSel ('Just "description") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "name") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)) :*: (S1 ('MetaSel ('Just "schema") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Value)) :*: S1 ('MetaSel ('Just "strict") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Bool)))))