openai-servant-0.1.0.0: Unofficial OpenAI servant types
Safe HaskellNone
LanguageHaskell2010

OpenAI.Resources

Synopsis

Core Types

newtype TimeStamp Source #

A UTCTime wrapper that has unix timestamp JSON representation

Constructors

TimeStamp 

Fields

newtype OpenAIList a Source #

A Vector wrapper.

Constructors

OpenAIList 

Fields

Instances

Instances details
Functor OpenAIList Source # 
Instance details

Defined in OpenAI.Resources

Methods

fmap :: (a -> b) -> OpenAIList a -> OpenAIList b #

(<$) :: a -> OpenAIList b -> OpenAIList a #

Applicative OpenAIList Source # 
Instance details

Defined in OpenAI.Resources

Methods

pure :: a -> OpenAIList a #

(<*>) :: OpenAIList (a -> b) -> OpenAIList a -> OpenAIList b #

liftA2 :: (a -> b -> c) -> OpenAIList a -> OpenAIList b -> OpenAIList c #

(*>) :: OpenAIList a -> OpenAIList b -> OpenAIList b #

(<*) :: OpenAIList a -> OpenAIList b -> OpenAIList a #

Eq a => Eq (OpenAIList a) Source # 
Instance details

Defined in OpenAI.Resources

Methods

(==) :: OpenAIList a -> OpenAIList a -> Bool #

(/=) :: OpenAIList a -> OpenAIList a -> Bool #

Show a => Show (OpenAIList a) Source # 
Instance details

Defined in OpenAI.Resources

Semigroup (OpenAIList a) Source # 
Instance details

Defined in OpenAI.Resources

Monoid (OpenAIList a) Source # 
Instance details

Defined in OpenAI.Resources

ToJSON a => ToJSON (OpenAIList a) Source # 
Instance details

Defined in OpenAI.Resources

FromJSON a => FromJSON (OpenAIList a) Source # 
Instance details

Defined in OpenAI.Resources

Engine

newtype EngineId Source #

Constructors

EngineId 

Fields

Instances

Instances details
Eq EngineId Source # 
Instance details

Defined in OpenAI.Resources

Show EngineId Source # 
Instance details

Defined in OpenAI.Resources

ToJSON EngineId Source # 
Instance details

Defined in OpenAI.Resources

FromJSON EngineId Source # 
Instance details

Defined in OpenAI.Resources

ToHttpApiData EngineId Source # 
Instance details

Defined in OpenAI.Resources

data Engine Source #

Constructors

Engine 

Fields

Instances

Instances details
Eq Engine Source # 
Instance details

Defined in OpenAI.Resources

Methods

(==) :: Engine -> Engine -> Bool #

(/=) :: Engine -> Engine -> Bool #

Show Engine Source # 
Instance details

Defined in OpenAI.Resources

ToJSON Engine Source # 
Instance details

Defined in OpenAI.Resources

FromJSON Engine Source # 
Instance details

Defined in OpenAI.Resources

Text completion

defaultTextCompletionCreate :: Text -> TextCompletionCreate Source #

Applies API defaults, only passing a prompt.

Searching