Safe Haskell | None |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TimeStamp = TimeStamp {}
- newtype OpenAIList a = OpenAIList {}
- newtype EngineId = EngineId {
- unEngineId :: Text
- data Engine = Engine {}
- newtype TextCompletionId = TextCompletionId {}
- data TextCompletionChoice = TextCompletionChoice {
- tccText :: Text
- tccIndex :: Int
- tccLogProps :: Maybe Int
- tccFinishReason :: Text
- data TextCompletion = TextCompletion {}
- data TextCompletionCreate = TextCompletionCreate {}
- defaultTextCompletionCreate :: Text -> TextCompletionCreate
- data SearchResult = SearchResult {
- srDocument :: Int
- srScore :: Double
- data SearchResultCreate = SearchResultCreate {
- sccrDocuments :: Vector Text
- sccrQuery :: Text
Core Types
A UTCTime
wrapper that has unix timestamp JSON representation
Instances
Eq TimeStamp Source # | |
Show TimeStamp Source # | |
ToJSON TimeStamp Source # | |
Defined in OpenAI.Resources | |
FromJSON TimeStamp Source # | |
ToHttpApiData TimeStamp Source # | |
Defined in OpenAI.Resources toUrlPiece :: TimeStamp -> Text # toEncodedUrlPiece :: TimeStamp -> Builder # toHeader :: TimeStamp -> ByteString # toQueryParam :: TimeStamp -> Text # |
newtype OpenAIList a Source #
A Vector
wrapper.
Instances
Engine
Instances
Eq EngineId Source # | |
Show EngineId Source # | |
ToJSON EngineId Source # | |
Defined in OpenAI.Resources | |
FromJSON EngineId Source # | |
ToHttpApiData EngineId Source # | |
Defined in OpenAI.Resources toUrlPiece :: EngineId -> Text # toEncodedUrlPiece :: EngineId -> Builder # toHeader :: EngineId -> ByteString # toQueryParam :: EngineId -> Text # |
Text completion
newtype TextCompletionId Source #
Instances
Eq TextCompletionId Source # | |
Defined in OpenAI.Resources (==) :: TextCompletionId -> TextCompletionId -> Bool # (/=) :: TextCompletionId -> TextCompletionId -> Bool # | |
Show TextCompletionId Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletionId -> ShowS # show :: TextCompletionId -> String # showList :: [TextCompletionId] -> ShowS # | |
ToJSON TextCompletionId Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletionId -> Value # toEncoding :: TextCompletionId -> Encoding # toJSONList :: [TextCompletionId] -> Value # toEncodingList :: [TextCompletionId] -> Encoding # | |
FromJSON TextCompletionId Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletionId # parseJSONList :: Value -> Parser [TextCompletionId] # | |
ToHttpApiData TextCompletionId Source # | |
Defined in OpenAI.Resources toUrlPiece :: TextCompletionId -> Text # toEncodedUrlPiece :: TextCompletionId -> Builder # toHeader :: TextCompletionId -> ByteString # toQueryParam :: TextCompletionId -> Text # |
data TextCompletionChoice Source #
TextCompletionChoice | |
|
Instances
Eq TextCompletionChoice Source # | |
Defined in OpenAI.Resources (==) :: TextCompletionChoice -> TextCompletionChoice -> Bool # (/=) :: TextCompletionChoice -> TextCompletionChoice -> Bool # | |
Show TextCompletionChoice Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletionChoice -> ShowS # show :: TextCompletionChoice -> String # showList :: [TextCompletionChoice] -> ShowS # | |
ToJSON TextCompletionChoice Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletionChoice -> Value # toEncoding :: TextCompletionChoice -> Encoding # toJSONList :: [TextCompletionChoice] -> Value # toEncodingList :: [TextCompletionChoice] -> Encoding # | |
FromJSON TextCompletionChoice Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletionChoice # parseJSONList :: Value -> Parser [TextCompletionChoice] # |
data TextCompletion Source #
Instances
Eq TextCompletion Source # | |
Defined in OpenAI.Resources (==) :: TextCompletion -> TextCompletion -> Bool # (/=) :: TextCompletion -> TextCompletion -> Bool # | |
Show TextCompletion Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletion -> ShowS # show :: TextCompletion -> String # showList :: [TextCompletion] -> ShowS # | |
ToJSON TextCompletion Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletion -> Value # toEncoding :: TextCompletion -> Encoding # toJSONList :: [TextCompletion] -> Value # toEncodingList :: [TextCompletion] -> Encoding # | |
FromJSON TextCompletion Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletion # parseJSONList :: Value -> Parser [TextCompletion] # |
data TextCompletionCreate Source #
TextCompletionCreate | |
|
Instances
Eq TextCompletionCreate Source # | |
Defined in OpenAI.Resources (==) :: TextCompletionCreate -> TextCompletionCreate -> Bool # (/=) :: TextCompletionCreate -> TextCompletionCreate -> Bool # | |
Show TextCompletionCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletionCreate -> ShowS # show :: TextCompletionCreate -> String # showList :: [TextCompletionCreate] -> ShowS # | |
ToJSON TextCompletionCreate Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletionCreate -> Value # toEncoding :: TextCompletionCreate -> Encoding # toJSONList :: [TextCompletionCreate] -> Value # toEncodingList :: [TextCompletionCreate] -> Encoding # | |
FromJSON TextCompletionCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletionCreate # parseJSONList :: Value -> Parser [TextCompletionCreate] # |
defaultTextCompletionCreate :: Text -> TextCompletionCreate Source #
Applies API defaults, only passing a prompt.
Searching
data SearchResult Source #
SearchResult | |
|
Instances
Eq SearchResult Source # | |
Defined in OpenAI.Resources (==) :: SearchResult -> SearchResult -> Bool # (/=) :: SearchResult -> SearchResult -> Bool # | |
Show SearchResult Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> SearchResult -> ShowS # show :: SearchResult -> String # showList :: [SearchResult] -> ShowS # | |
ToJSON SearchResult Source # | |
Defined in OpenAI.Resources toJSON :: SearchResult -> Value # toEncoding :: SearchResult -> Encoding # toJSONList :: [SearchResult] -> Value # toEncodingList :: [SearchResult] -> Encoding # | |
FromJSON SearchResult Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser SearchResult # parseJSONList :: Value -> Parser [SearchResult] # |
data SearchResultCreate Source #
Instances
Eq SearchResultCreate Source # | |
Defined in OpenAI.Resources (==) :: SearchResultCreate -> SearchResultCreate -> Bool # (/=) :: SearchResultCreate -> SearchResultCreate -> Bool # | |
Show SearchResultCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> SearchResultCreate -> ShowS # show :: SearchResultCreate -> String # showList :: [SearchResultCreate] -> ShowS # | |
ToJSON SearchResultCreate Source # | |
Defined in OpenAI.Resources toJSON :: SearchResultCreate -> Value # toEncoding :: SearchResultCreate -> Encoding # toJSONList :: [SearchResultCreate] -> Value # toEncodingList :: [SearchResultCreate] -> Encoding # | |
FromJSON SearchResultCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser SearchResultCreate # parseJSONList :: Value -> Parser [SearchResultCreate] # |