Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
OpenAI.V1.Models
Contents
Description
/v1/models
Synopsis
- newtype Model = Model {}
- data ModelObject = ModelObject {}
- type API = "models" :> (Get '[JSON] (ListOf ModelObject) :<|> ((Capture "model" Model :> Get '[JSON] ModelObject) :<|> (Capture "model" Model :> Delete '[JSON] DeletionStatus)))
Main types
Model
Instances
FromJSON Model Source # | |
Defined in OpenAI.V1.Models | |
ToJSON Model Source # | |
IsString Model Source # | |
Defined in OpenAI.V1.Models Methods fromString :: String -> Model # | |
Show Model Source # | |
ToHttpApiData Model Source # | |
Defined in OpenAI.V1.Models Methods toUrlPiece :: Model -> Text # toEncodedUrlPiece :: Model -> Builder # toHeader :: Model -> ByteString # toQueryParam :: Model -> Text # toEncodedQueryParam :: Model -> Builder # |
data ModelObject Source #
Describes an OpenAI model offering that can be used with the API
Instances
FromJSON ModelObject Source # | |
Defined in OpenAI.V1.Models | |
Generic ModelObject Source # | |
Defined in OpenAI.V1.Models Associated Types type Rep ModelObject :: Type -> Type # | |
Show ModelObject Source # | |
Defined in OpenAI.V1.Models Methods showsPrec :: Int -> ModelObject -> ShowS # show :: ModelObject -> String # showList :: [ModelObject] -> ShowS # | |
type Rep ModelObject Source # | |
Defined in OpenAI.V1.Models type Rep ModelObject = D1 ('MetaData "ModelObject" "OpenAI.V1.Models" "openai-1.0.0-DWUl3td9tpcnv1wfBaSVp" 'False) (C1 ('MetaCons "ModelObject" 'PrefixI 'True) ((S1 ('MetaSel ('Just "id") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Model) :*: S1 ('MetaSel ('Just "created") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 POSIXTime)) :*: (S1 ('MetaSel ('Just "object") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text) :*: S1 ('MetaSel ('Just "owned_by") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))) |