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

OpenAI.V1.Audio.Translations

Description

/v1/audio/translations

To simplify things, this only supports the verbose_json response format

Synopsis

Main types

data CreateTranslation Source #

Request body for /v1/audio/translations

Instances

Instances details
FromJSON CreateTranslation Source # 
Instance details

Defined in OpenAI.V1.Audio.Translations

ToJSON CreateTranslation Source # 
Instance details

Defined in OpenAI.V1.Audio.Translations

Generic CreateTranslation Source # 
Instance details

Defined in OpenAI.V1.Audio.Translations

Associated Types

type Rep CreateTranslation :: Type -> Type #

Show CreateTranslation Source # 
Instance details

Defined in OpenAI.V1.Audio.Translations

ToMultipart Tmp CreateTranslation Source # 
Instance details

Defined in OpenAI.V1.Audio.Translations

type Rep CreateTranslation Source # 
Instance details

Defined in OpenAI.V1.Audio.Translations

type Rep CreateTranslation = D1 ('MetaData "CreateTranslation" "OpenAI.V1.Audio.Translations" "openai-1.1.0-EEKZCo0ctK66abGa8yEhZh" 'False) (C1 ('MetaCons "CreateTranslation" 'PrefixI 'True) ((S1 ('MetaSel ('Just "file") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 FilePath) :*: S1 ('MetaSel ('Just "model") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Model)) :*: (S1 ('MetaSel ('Just "prompt") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "temperature") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 (Maybe Double)))))

data TranslationObject Source #

Represents a transcription response returned by model, based on the provided input.

Constructors

TranslationObject 

Fields

Servant

type API = "translations" :> (MultipartForm Tmp CreateTranslation :> Post '[JSON] TranslationObject) Source #

Servant API