Safe Haskell | Safe-Inferred |
---|---|
Language | Haskell2010 |
Synopsis
- newtype TimeStamp = TimeStamp {}
- newtype OpenAIList a = OpenAIList {}
- data Usage = Usage {}
- data Model = Model {}
- newtype ModelId = ModelId {}
- data CompletionCreate = CompletionCreate {
- ccrModel :: ModelId
- ccrPrompt :: Maybe Text
- ccrSuffix :: Maybe Text
- ccrMaxTokens :: Maybe Int
- ccrTemperature :: Maybe Double
- ccrTopP :: Maybe Double
- ccrN :: Maybe Int
- ccrStream :: Maybe Bool
- ccrLogprobs :: Maybe Int
- ccrEcho :: Maybe Bool
- ccrStop :: Maybe (Vector Text)
- ccrPresencePenalty :: Maybe Double
- ccrFrequencyPenalty :: Maybe Double
- ccrBestOf :: Maybe Int
- ccrLogitBias :: Maybe (Vector Double)
- ccrUser :: Maybe String
- data CompletionChoice = CompletionChoice {}
- data CompletionResponse = CompletionResponse {}
- defaultCompletionCreate :: ModelId -> Text -> CompletionCreate
- data ChatFunction = ChatFunction {
- chfName :: Text
- chfDescription :: Text
- chfParameters :: Value
- data ChatFunctionCall = ChatFunctionCall {
- chfcName :: Text
- chfcArguments :: Value
- data ChatMessage = ChatMessage {}
- data ChatCompletionRequest = ChatCompletionRequest {
- chcrModel :: ModelId
- chcrMessages :: [ChatMessage]
- chcrFunctions :: Maybe [ChatFunction]
- chcrTemperature :: Maybe Double
- chcrTopP :: Maybe Double
- chcrN :: Maybe Int
- chcrStream :: Maybe Bool
- chcrStop :: Maybe (Vector Text)
- chcrMaxTokens :: Maybe Int
- chcrPresencePenalty :: Maybe Double
- chcrFrequencyPenalty :: Maybe Double
- chcrLogitBias :: Maybe (Vector Double)
- chcrUser :: Maybe String
- data ChatChoice = ChatChoice {}
- data ChatResponse = ChatResponse {
- chrId :: Text
- chrObject :: Text
- chrCreated :: Int
- chrChoices :: [ChatChoice]
- chrUsage :: Usage
- defaultChatCompletionRequest :: ModelId -> [ChatMessage] -> ChatCompletionRequest
- data EditCreate = EditCreate {}
- data EditChoice = EditChoice {}
- data EditResponse = EditResponse {
- edrObject :: Text
- edrCreated :: Int
- edrChoices :: [EditChoice]
- edrUsage :: Usage
- defaultEditCreate :: ModelId -> Text -> Text -> EditCreate
- data ImageResponse = ImageResponse {}
- data ImageResponseData = ImageResponseData {}
- data ImageCreate = ImageCreate {}
- data ImageEditRequest = ImageEditRequest {}
- data ImageVariationRequest = ImageVariationRequest {}
- data EmbeddingCreate = EmbeddingCreate {}
- data EmbeddingResponseData = EmbeddingResponseData {
- embdObject :: Text
- embdEmbedding :: Vector Double
- embdIndex :: Int
- data EmbeddingUsage = EmbeddingUsage {}
- data EmbeddingResponse = EmbeddingResponse {}
- data AudioResponseData = AudioResponseData {}
- data AudioTranscriptionRequest = AudioTranscriptionRequest {}
- data AudioTranslationRequest = AudioTranslationRequest {}
- newtype FineTuneId = FineTuneId {
- unFineTuneId :: Text
- data FineTuneCreate = FineTuneCreate {
- ftcTrainingFile :: FileId
- ftcValidationFile :: Maybe FileId
- ftcModel :: Maybe Text
- ftcBatchSize :: Maybe Int
- ftcNEpochs :: Maybe Text
- ftcLearningRateMultiplier :: Maybe Double
- ftcPromptLossWeight :: Maybe Double
- ftcComputeClassificationMetrics :: Maybe Bool
- ftcClassificationNClasses :: Maybe Int
- ftcClassificationPositiveClass :: Maybe Text
- defaultFineTuneCreate :: FileId -> FineTuneCreate
- data FineTune = FineTune {
- ftId :: FineTuneId
- ftModel :: Text
- ftCreatedAt :: Int
- ftEvents :: Vector FineTuneEvent
- ftTunedModel :: Maybe Text
- ftStatus :: Text
- data FineTuneEvent = FineTuneEvent {
- fteCreatedAt :: Int
- fteLevel :: Text
- fteMessage :: Text
- data FileCreate = FileCreate {
- fcPurpose :: Text
- fcDocuments :: [FileHunk]
- newtype FileId = FileId {}
- data File = File {}
- data FileHunk = FhFineTune FineTuneHunk
- data FineTuneHunk = FineTuneHunk {
- fthPrompt :: Text
- fthCompletion :: Text
- data FileDeleteConfirmation = FileDeleteConfirmation {}
- 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 {}
- defaultEngineTextCompletionCreate :: Text -> TextCompletionCreate
- data EngineEmbeddingCreate = EngineEmbeddingCreate {}
- data EngineEmbedding = EngineEmbedding {
- eneEmbedding :: Vector Double
- eneIndex :: Int
Core Types
A UTCTime
wrapper that has unix timestamp JSON representation
Instances
FromJSON TimeStamp Source # | |
ToJSON TimeStamp Source # | |
Defined in OpenAI.Resources | |
Show TimeStamp Source # | |
Eq 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
Usage | |
|
Models
Instances
FromJSON ModelId Source # | |
ToJSON ModelId Source # | |
Defined in OpenAI.Resources | |
Show ModelId Source # | |
Eq ModelId Source # | |
ToHttpApiData ModelId Source # | |
Defined in OpenAI.Resources toUrlPiece :: ModelId -> Text # toEncodedUrlPiece :: ModelId -> Builder # toHeader :: ModelId -> ByteString # toQueryParam :: ModelId -> Text # |
Completion
data CompletionCreate Source #
CompletionCreate | |
|
Instances
FromJSON CompletionCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser CompletionCreate # parseJSONList :: Value -> Parser [CompletionCreate] # | |
ToJSON CompletionCreate Source # | |
Defined in OpenAI.Resources toJSON :: CompletionCreate -> Value # toEncoding :: CompletionCreate -> Encoding # toJSONList :: [CompletionCreate] -> Value # toEncodingList :: [CompletionCreate] -> Encoding # | |
Show CompletionCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> CompletionCreate -> ShowS # show :: CompletionCreate -> String # showList :: [CompletionCreate] -> ShowS # | |
Eq CompletionCreate Source # | |
Defined in OpenAI.Resources (==) :: CompletionCreate -> CompletionCreate -> Bool # (/=) :: CompletionCreate -> CompletionCreate -> Bool # |
data CompletionChoice Source #
Instances
FromJSON CompletionChoice Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser CompletionChoice # parseJSONList :: Value -> Parser [CompletionChoice] # | |
ToJSON CompletionChoice Source # | |
Defined in OpenAI.Resources toJSON :: CompletionChoice -> Value # toEncoding :: CompletionChoice -> Encoding # toJSONList :: [CompletionChoice] -> Value # toEncodingList :: [CompletionChoice] -> Encoding # | |
Show CompletionChoice Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> CompletionChoice -> ShowS # show :: CompletionChoice -> String # showList :: [CompletionChoice] -> ShowS # | |
Eq CompletionChoice Source # | |
Defined in OpenAI.Resources (==) :: CompletionChoice -> CompletionChoice -> Bool # (/=) :: CompletionChoice -> CompletionChoice -> Bool # |
data CompletionResponse Source #
Instances
FromJSON CompletionResponse Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser CompletionResponse # parseJSONList :: Value -> Parser [CompletionResponse] # | |
ToJSON CompletionResponse Source # | |
Defined in OpenAI.Resources toJSON :: CompletionResponse -> Value # toEncoding :: CompletionResponse -> Encoding # toJSONList :: [CompletionResponse] -> Value # toEncodingList :: [CompletionResponse] -> Encoding # | |
Show CompletionResponse Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> CompletionResponse -> ShowS # show :: CompletionResponse -> String # showList :: [CompletionResponse] -> ShowS # | |
Eq CompletionResponse Source # | |
Defined in OpenAI.Resources (==) :: CompletionResponse -> CompletionResponse -> Bool # (/=) :: CompletionResponse -> CompletionResponse -> Bool # |
Chat
data ChatFunction Source #
ChatFunction | |
|
Instances
FromJSON ChatFunction Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ChatFunction # parseJSONList :: Value -> Parser [ChatFunction] # | |
ToJSON ChatFunction Source # | |
Defined in OpenAI.Resources toJSON :: ChatFunction -> Value # toEncoding :: ChatFunction -> Encoding # toJSONList :: [ChatFunction] -> Value # toEncodingList :: [ChatFunction] -> Encoding # | |
Show ChatFunction Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ChatFunction -> ShowS # show :: ChatFunction -> String # showList :: [ChatFunction] -> ShowS # | |
Eq ChatFunction Source # | |
Defined in OpenAI.Resources (==) :: ChatFunction -> ChatFunction -> Bool # (/=) :: ChatFunction -> ChatFunction -> Bool # |
data ChatFunctionCall Source #
Instances
FromJSON ChatFunctionCall Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ChatFunctionCall # parseJSONList :: Value -> Parser [ChatFunctionCall] # | |
ToJSON ChatFunctionCall Source # | |
Defined in OpenAI.Resources toJSON :: ChatFunctionCall -> Value # toEncoding :: ChatFunctionCall -> Encoding # toJSONList :: [ChatFunctionCall] -> Value # toEncodingList :: [ChatFunctionCall] -> Encoding # | |
Show ChatFunctionCall Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ChatFunctionCall -> ShowS # show :: ChatFunctionCall -> String # showList :: [ChatFunctionCall] -> ShowS # | |
Eq ChatFunctionCall Source # | |
Defined in OpenAI.Resources (==) :: ChatFunctionCall -> ChatFunctionCall -> Bool # (/=) :: ChatFunctionCall -> ChatFunctionCall -> Bool # |
data ChatMessage Source #
ChatMessage | |
|
Instances
FromJSON ChatMessage Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ChatMessage # parseJSONList :: Value -> Parser [ChatMessage] # | |
ToJSON ChatMessage Source # | |
Defined in OpenAI.Resources toJSON :: ChatMessage -> Value # toEncoding :: ChatMessage -> Encoding # toJSONList :: [ChatMessage] -> Value # toEncodingList :: [ChatMessage] -> Encoding # | |
Show ChatMessage Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ChatMessage -> ShowS # show :: ChatMessage -> String # showList :: [ChatMessage] -> ShowS # | |
Eq ChatMessage Source # | |
Defined in OpenAI.Resources (==) :: ChatMessage -> ChatMessage -> Bool # (/=) :: ChatMessage -> ChatMessage -> Bool # |
data ChatCompletionRequest Source #
ChatCompletionRequest | |
|
Instances
FromJSON ChatCompletionRequest Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ChatCompletionRequest # parseJSONList :: Value -> Parser [ChatCompletionRequest] # | |
ToJSON ChatCompletionRequest Source # | |
Defined in OpenAI.Resources toJSON :: ChatCompletionRequest -> Value # toEncoding :: ChatCompletionRequest -> Encoding # toJSONList :: [ChatCompletionRequest] -> Value # toEncodingList :: [ChatCompletionRequest] -> Encoding # | |
Show ChatCompletionRequest Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ChatCompletionRequest -> ShowS # show :: ChatCompletionRequest -> String # showList :: [ChatCompletionRequest] -> ShowS # | |
Eq ChatCompletionRequest Source # | |
Defined in OpenAI.Resources (==) :: ChatCompletionRequest -> ChatCompletionRequest -> Bool # (/=) :: ChatCompletionRequest -> ChatCompletionRequest -> Bool # |
data ChatChoice Source #
Instances
FromJSON ChatChoice Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ChatChoice # parseJSONList :: Value -> Parser [ChatChoice] # | |
ToJSON ChatChoice Source # | |
Defined in OpenAI.Resources toJSON :: ChatChoice -> Value # toEncoding :: ChatChoice -> Encoding # toJSONList :: [ChatChoice] -> Value # toEncodingList :: [ChatChoice] -> Encoding # | |
Show ChatChoice Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ChatChoice -> ShowS # show :: ChatChoice -> String # showList :: [ChatChoice] -> ShowS # | |
Eq ChatChoice Source # | |
Defined in OpenAI.Resources (==) :: ChatChoice -> ChatChoice -> Bool # (/=) :: ChatChoice -> ChatChoice -> Bool # |
data ChatResponse Source #
ChatResponse | |
|
Instances
FromJSON ChatResponse Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ChatResponse # parseJSONList :: Value -> Parser [ChatResponse] # | |
ToJSON ChatResponse Source # | |
Defined in OpenAI.Resources toJSON :: ChatResponse -> Value # toEncoding :: ChatResponse -> Encoding # toJSONList :: [ChatResponse] -> Value # toEncodingList :: [ChatResponse] -> Encoding # |
Edits
data EditCreate Source #
Instances
FromJSON EditCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EditCreate # parseJSONList :: Value -> Parser [EditCreate] # | |
ToJSON EditCreate Source # | |
Defined in OpenAI.Resources toJSON :: EditCreate -> Value # toEncoding :: EditCreate -> Encoding # toJSONList :: [EditCreate] -> Value # toEncodingList :: [EditCreate] -> Encoding # | |
Show EditCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EditCreate -> ShowS # show :: EditCreate -> String # showList :: [EditCreate] -> ShowS # | |
Eq EditCreate Source # | |
Defined in OpenAI.Resources (==) :: EditCreate -> EditCreate -> Bool # (/=) :: EditCreate -> EditCreate -> Bool # |
data EditChoice Source #
Instances
FromJSON EditChoice Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EditChoice # parseJSONList :: Value -> Parser [EditChoice] # | |
ToJSON EditChoice Source # | |
Defined in OpenAI.Resources toJSON :: EditChoice -> Value # toEncoding :: EditChoice -> Encoding # toJSONList :: [EditChoice] -> Value # toEncodingList :: [EditChoice] -> Encoding # | |
Show EditChoice Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EditChoice -> ShowS # show :: EditChoice -> String # showList :: [EditChoice] -> ShowS # | |
Eq EditChoice Source # | |
Defined in OpenAI.Resources (==) :: EditChoice -> EditChoice -> Bool # (/=) :: EditChoice -> EditChoice -> Bool # |
data EditResponse Source #
EditResponse | |
|
Instances
FromJSON EditResponse Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EditResponse # parseJSONList :: Value -> Parser [EditResponse] # | |
ToJSON EditResponse Source # | |
Defined in OpenAI.Resources toJSON :: EditResponse -> Value # toEncoding :: EditResponse -> Encoding # toJSONList :: [EditResponse] -> Value # toEncodingList :: [EditResponse] -> Encoding # | |
Show EditResponse Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EditResponse -> ShowS # show :: EditResponse -> String # showList :: [EditResponse] -> ShowS # | |
Eq EditResponse Source # | |
Defined in OpenAI.Resources (==) :: EditResponse -> EditResponse -> Bool # (/=) :: EditResponse -> EditResponse -> Bool # |
defaultEditCreate :: ModelId -> Text -> Text -> EditCreate Source #
Images
data ImageResponse Source #
Instances
FromJSON ImageResponse Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ImageResponse # parseJSONList :: Value -> Parser [ImageResponse] # | |
ToJSON ImageResponse Source # | |
Defined in OpenAI.Resources toJSON :: ImageResponse -> Value # toEncoding :: ImageResponse -> Encoding # toJSONList :: [ImageResponse] -> Value # toEncodingList :: [ImageResponse] -> Encoding # | |
Show ImageResponse Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ImageResponse -> ShowS # show :: ImageResponse -> String # showList :: [ImageResponse] -> ShowS # | |
Eq ImageResponse Source # | |
Defined in OpenAI.Resources (==) :: ImageResponse -> ImageResponse -> Bool # (/=) :: ImageResponse -> ImageResponse -> Bool # |
data ImageResponseData Source #
Instances
FromJSON ImageResponseData Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ImageResponseData # parseJSONList :: Value -> Parser [ImageResponseData] # | |
ToJSON ImageResponseData Source # | |
Defined in OpenAI.Resources toJSON :: ImageResponseData -> Value # toEncoding :: ImageResponseData -> Encoding # toJSONList :: [ImageResponseData] -> Value # toEncodingList :: [ImageResponseData] -> Encoding # | |
Show ImageResponseData Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ImageResponseData -> ShowS # show :: ImageResponseData -> String # showList :: [ImageResponseData] -> ShowS # | |
Eq ImageResponseData Source # | |
Defined in OpenAI.Resources (==) :: ImageResponseData -> ImageResponseData -> Bool # (/=) :: ImageResponseData -> ImageResponseData -> Bool # |
data ImageCreate Source #
Image create API
Instances
FromJSON ImageCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ImageCreate # parseJSONList :: Value -> Parser [ImageCreate] # | |
ToJSON ImageCreate Source # | |
Defined in OpenAI.Resources toJSON :: ImageCreate -> Value # toEncoding :: ImageCreate -> Encoding # toJSONList :: [ImageCreate] -> Value # toEncodingList :: [ImageCreate] -> Encoding # | |
Show ImageCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ImageCreate -> ShowS # show :: ImageCreate -> String # showList :: [ImageCreate] -> ShowS # | |
Eq ImageCreate Source # | |
Defined in OpenAI.Resources (==) :: ImageCreate -> ImageCreate -> Bool # (/=) :: ImageCreate -> ImageCreate -> Bool # |
data ImageEditRequest Source #
Image edit API
Instances
FromJSON ImageEditRequest Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ImageEditRequest # parseJSONList :: Value -> Parser [ImageEditRequest] # | |
ToJSON ImageEditRequest Source # | |
Defined in OpenAI.Resources toJSON :: ImageEditRequest -> Value # toEncoding :: ImageEditRequest -> Encoding # toJSONList :: [ImageEditRequest] -> Value # toEncodingList :: [ImageEditRequest] -> Encoding # | |
Show ImageEditRequest Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ImageEditRequest -> ShowS # show :: ImageEditRequest -> String # showList :: [ImageEditRequest] -> ShowS # | |
Eq ImageEditRequest Source # | |
Defined in OpenAI.Resources (==) :: ImageEditRequest -> ImageEditRequest -> Bool # (/=) :: ImageEditRequest -> ImageEditRequest -> Bool # |
data ImageVariationRequest Source #
Image variation API
Instances
FromJSON ImageVariationRequest Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser ImageVariationRequest # parseJSONList :: Value -> Parser [ImageVariationRequest] # | |
ToJSON ImageVariationRequest Source # | |
Defined in OpenAI.Resources toJSON :: ImageVariationRequest -> Value # toEncoding :: ImageVariationRequest -> Encoding # toJSONList :: [ImageVariationRequest] -> Value # toEncodingList :: [ImageVariationRequest] -> Encoding # | |
Show ImageVariationRequest Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> ImageVariationRequest -> ShowS # show :: ImageVariationRequest -> String # showList :: [ImageVariationRequest] -> ShowS # | |
Eq ImageVariationRequest Source # | |
Defined in OpenAI.Resources (==) :: ImageVariationRequest -> ImageVariationRequest -> Bool # (/=) :: ImageVariationRequest -> ImageVariationRequest -> Bool # |
Embeddings
data EmbeddingCreate Source #
Instances
FromJSON EmbeddingCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EmbeddingCreate # parseJSONList :: Value -> Parser [EmbeddingCreate] # | |
ToJSON EmbeddingCreate Source # | |
Defined in OpenAI.Resources toJSON :: EmbeddingCreate -> Value # toEncoding :: EmbeddingCreate -> Encoding # toJSONList :: [EmbeddingCreate] -> Value # toEncodingList :: [EmbeddingCreate] -> Encoding # | |
Show EmbeddingCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EmbeddingCreate -> ShowS # show :: EmbeddingCreate -> String # showList :: [EmbeddingCreate] -> ShowS # | |
Eq EmbeddingCreate Source # | |
Defined in OpenAI.Resources (==) :: EmbeddingCreate -> EmbeddingCreate -> Bool # (/=) :: EmbeddingCreate -> EmbeddingCreate -> Bool # |
data EmbeddingResponseData Source #
Instances
FromJSON EmbeddingResponseData Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EmbeddingResponseData # parseJSONList :: Value -> Parser [EmbeddingResponseData] # | |
ToJSON EmbeddingResponseData Source # | |
Defined in OpenAI.Resources toJSON :: EmbeddingResponseData -> Value # toEncoding :: EmbeddingResponseData -> Encoding # toJSONList :: [EmbeddingResponseData] -> Value # toEncodingList :: [EmbeddingResponseData] -> Encoding # | |
Show EmbeddingResponseData Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EmbeddingResponseData -> ShowS # show :: EmbeddingResponseData -> String # showList :: [EmbeddingResponseData] -> ShowS # | |
Eq EmbeddingResponseData Source # | |
Defined in OpenAI.Resources (==) :: EmbeddingResponseData -> EmbeddingResponseData -> Bool # (/=) :: EmbeddingResponseData -> EmbeddingResponseData -> Bool # |
data EmbeddingUsage Source #
Instances
FromJSON EmbeddingUsage Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EmbeddingUsage # parseJSONList :: Value -> Parser [EmbeddingUsage] # | |
ToJSON EmbeddingUsage Source # | |
Defined in OpenAI.Resources toJSON :: EmbeddingUsage -> Value # toEncoding :: EmbeddingUsage -> Encoding # toJSONList :: [EmbeddingUsage] -> Value # toEncodingList :: [EmbeddingUsage] -> Encoding # | |
Show EmbeddingUsage Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EmbeddingUsage -> ShowS # show :: EmbeddingUsage -> String # showList :: [EmbeddingUsage] -> ShowS # | |
Eq EmbeddingUsage Source # | |
Defined in OpenAI.Resources (==) :: EmbeddingUsage -> EmbeddingUsage -> Bool # (/=) :: EmbeddingUsage -> EmbeddingUsage -> Bool # |
data EmbeddingResponse Source #
EmbeddingResponse | |
|
Instances
FromJSON EmbeddingResponse Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EmbeddingResponse # parseJSONList :: Value -> Parser [EmbeddingResponse] # | |
ToJSON EmbeddingResponse Source # | |
Defined in OpenAI.Resources toJSON :: EmbeddingResponse -> Value # toEncoding :: EmbeddingResponse -> Encoding # toJSONList :: [EmbeddingResponse] -> Value # toEncodingList :: [EmbeddingResponse] -> Encoding # | |
Show EmbeddingResponse Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EmbeddingResponse -> ShowS # show :: EmbeddingResponse -> String # showList :: [EmbeddingResponse] -> ShowS # | |
Eq EmbeddingResponse Source # | |
Defined in OpenAI.Resources (==) :: EmbeddingResponse -> EmbeddingResponse -> Bool # (/=) :: EmbeddingResponse -> EmbeddingResponse -> Bool # |
Audio
data AudioResponseData Source #
Instances
FromJSON AudioResponseData Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser AudioResponseData # parseJSONList :: Value -> Parser [AudioResponseData] # | |
ToJSON AudioResponseData Source # | |
Defined in OpenAI.Resources toJSON :: AudioResponseData -> Value # toEncoding :: AudioResponseData -> Encoding # toJSONList :: [AudioResponseData] -> Value # toEncodingList :: [AudioResponseData] -> Encoding # | |
Show AudioResponseData Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> AudioResponseData -> ShowS # show :: AudioResponseData -> String # showList :: [AudioResponseData] -> ShowS # | |
Eq AudioResponseData Source # | |
Defined in OpenAI.Resources (==) :: AudioResponseData -> AudioResponseData -> Bool # (/=) :: AudioResponseData -> AudioResponseData -> Bool # |
data AudioTranscriptionRequest Source #
Audio create API
Instances
FromJSON AudioTranscriptionRequest Source # | |
Defined in OpenAI.Resources | |
ToJSON AudioTranscriptionRequest Source # | |
Defined in OpenAI.Resources | |
Show AudioTranscriptionRequest Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> AudioTranscriptionRequest -> ShowS # show :: AudioTranscriptionRequest -> String # showList :: [AudioTranscriptionRequest] -> ShowS # | |
Eq AudioTranscriptionRequest Source # | |
Defined in OpenAI.Resources | |
ToMultipart Tmp AudioTranscriptionRequest Source # | |
Defined in OpenAI.Resources |
data AudioTranslationRequest Source #
Audio translation API
Instances
FromJSON AudioTranslationRequest Source # | |
Defined in OpenAI.Resources | |
ToJSON AudioTranslationRequest Source # | |
Defined in OpenAI.Resources | |
Show AudioTranslationRequest Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> AudioTranslationRequest -> ShowS # show :: AudioTranslationRequest -> String # showList :: [AudioTranslationRequest] -> ShowS # | |
Eq AudioTranslationRequest Source # | |
Defined in OpenAI.Resources | |
ToMultipart Tmp AudioTranslationRequest Source # | |
Defined in OpenAI.Resources |
Fine tuning (out of date)
newtype FineTuneId Source #
Instances
FromJSON FineTuneId Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser FineTuneId # parseJSONList :: Value -> Parser [FineTuneId] # | |
ToJSON FineTuneId Source # | |
Defined in OpenAI.Resources toJSON :: FineTuneId -> Value # toEncoding :: FineTuneId -> Encoding # toJSONList :: [FineTuneId] -> Value # toEncodingList :: [FineTuneId] -> Encoding # | |
Show FineTuneId Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> FineTuneId -> ShowS # show :: FineTuneId -> String # showList :: [FineTuneId] -> ShowS # | |
Eq FineTuneId Source # | |
Defined in OpenAI.Resources (==) :: FineTuneId -> FineTuneId -> Bool # (/=) :: FineTuneId -> FineTuneId -> Bool # | |
ToHttpApiData FineTuneId Source # | |
Defined in OpenAI.Resources toUrlPiece :: FineTuneId -> Text # toEncodedUrlPiece :: FineTuneId -> Builder # toHeader :: FineTuneId -> ByteString # toQueryParam :: FineTuneId -> Text # |
data FineTuneCreate Source #
Instances
FromJSON FineTuneCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser FineTuneCreate # parseJSONList :: Value -> Parser [FineTuneCreate] # | |
ToJSON FineTuneCreate Source # | |
Defined in OpenAI.Resources toJSON :: FineTuneCreate -> Value # toEncoding :: FineTuneCreate -> Encoding # toJSONList :: [FineTuneCreate] -> Value # toEncodingList :: [FineTuneCreate] -> Encoding # | |
Show FineTuneCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> FineTuneCreate -> ShowS # show :: FineTuneCreate -> String # showList :: [FineTuneCreate] -> ShowS # | |
Eq FineTuneCreate Source # | |
Defined in OpenAI.Resources (==) :: FineTuneCreate -> FineTuneCreate -> Bool # (/=) :: FineTuneCreate -> FineTuneCreate -> Bool # |
FineTune | |
|
data FineTuneEvent Source #
FineTuneEvent | |
|
Instances
FromJSON FineTuneEvent Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser FineTuneEvent # parseJSONList :: Value -> Parser [FineTuneEvent] # | |
ToJSON FineTuneEvent Source # | |
Defined in OpenAI.Resources toJSON :: FineTuneEvent -> Value # toEncoding :: FineTuneEvent -> Encoding # toJSONList :: [FineTuneEvent] -> Value # toEncodingList :: [FineTuneEvent] -> Encoding # | |
Show FineTuneEvent Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> FineTuneEvent -> ShowS # show :: FineTuneEvent -> String # showList :: [FineTuneEvent] -> ShowS # | |
Eq FineTuneEvent Source # | |
Defined in OpenAI.Resources (==) :: FineTuneEvent -> FineTuneEvent -> Bool # (/=) :: FineTuneEvent -> FineTuneEvent -> Bool # |
File API (out of date)
data FileCreate Source #
File upload API
FileCreate | |
|
Instances
Show FileCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> FileCreate -> ShowS # show :: FileCreate -> String # showList :: [FileCreate] -> ShowS # | |
Eq FileCreate Source # | |
Defined in OpenAI.Resources (==) :: FileCreate -> FileCreate -> Bool # (/=) :: FileCreate -> FileCreate -> Bool # | |
ToMultipart Mem FileCreate Source # | |
Defined in OpenAI.Resources toMultipart :: FileCreate -> MultipartData Mem # |
Instances
FromJSON FileId Source # | |
ToJSON FileId Source # | |
Defined in OpenAI.Resources | |
Show FileId Source # | |
Eq FileId Source # | |
ToHttpApiData FileId Source # | |
Defined in OpenAI.Resources toUrlPiece :: FileId -> Text # toEncodedUrlPiece :: FileId -> Builder # toHeader :: FileId -> ByteString # toQueryParam :: FileId -> Text # |
data FineTuneHunk Source #
Instances
FromJSON FineTuneHunk Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser FineTuneHunk # parseJSONList :: Value -> Parser [FineTuneHunk] # | |
ToJSON FineTuneHunk Source # | |
Defined in OpenAI.Resources toJSON :: FineTuneHunk -> Value # toEncoding :: FineTuneHunk -> Encoding # toJSONList :: [FineTuneHunk] -> Value # toEncodingList :: [FineTuneHunk] -> Encoding # | |
Show FineTuneHunk Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> FineTuneHunk -> ShowS # show :: FineTuneHunk -> String # showList :: [FineTuneHunk] -> ShowS # | |
Eq FineTuneHunk Source # | |
Defined in OpenAI.Resources (==) :: FineTuneHunk -> FineTuneHunk -> Bool # (/=) :: FineTuneHunk -> FineTuneHunk -> Bool # |
data FileDeleteConfirmation Source #
File delete API
Instances
FromJSON FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources | |
ToJSON FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources toJSON :: FileDeleteConfirmation -> Value # toEncoding :: FileDeleteConfirmation -> Encoding # toJSONList :: [FileDeleteConfirmation] -> Value # | |
Show FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> FileDeleteConfirmation -> ShowS # show :: FileDeleteConfirmation -> String # showList :: [FileDeleteConfirmation] -> ShowS # | |
Eq FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources |
Engine (deprecated)
File retrieve API TODO
File retrieve content API TODO
Instances
FromJSON EngineId Source # | |
ToJSON EngineId Source # | |
Defined in OpenAI.Resources | |
Show EngineId Source # | |
Eq EngineId Source # | |
ToHttpApiData EngineId Source # | |
Defined in OpenAI.Resources toUrlPiece :: EngineId -> Text # toEncodedUrlPiece :: EngineId -> Builder # toHeader :: EngineId -> ByteString # toQueryParam :: EngineId -> Text # |
Engine text completion (deprecated)
newtype TextCompletionId Source #
Instances
FromJSON TextCompletionId Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletionId # parseJSONList :: Value -> Parser [TextCompletionId] # | |
ToJSON TextCompletionId Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletionId -> Value # toEncoding :: TextCompletionId -> Encoding # toJSONList :: [TextCompletionId] -> Value # toEncodingList :: [TextCompletionId] -> Encoding # | |
Show TextCompletionId Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletionId -> ShowS # show :: TextCompletionId -> String # showList :: [TextCompletionId] -> ShowS # | |
Eq TextCompletionId Source # | |
Defined in OpenAI.Resources (==) :: TextCompletionId -> TextCompletionId -> Bool # (/=) :: TextCompletionId -> TextCompletionId -> Bool # | |
ToHttpApiData TextCompletionId Source # | |
Defined in OpenAI.Resources toUrlPiece :: TextCompletionId -> Text # toEncodedUrlPiece :: TextCompletionId -> Builder # toHeader :: TextCompletionId -> ByteString # toQueryParam :: TextCompletionId -> Text # |
data TextCompletionChoice Source #
TextCompletionChoice | |
|
Instances
FromJSON TextCompletionChoice Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletionChoice # parseJSONList :: Value -> Parser [TextCompletionChoice] # | |
ToJSON TextCompletionChoice Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletionChoice -> Value # toEncoding :: TextCompletionChoice -> Encoding # toJSONList :: [TextCompletionChoice] -> Value # toEncodingList :: [TextCompletionChoice] -> Encoding # | |
Show TextCompletionChoice Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletionChoice -> ShowS # show :: TextCompletionChoice -> String # showList :: [TextCompletionChoice] -> ShowS # | |
Eq TextCompletionChoice Source # | |
Defined in OpenAI.Resources (==) :: TextCompletionChoice -> TextCompletionChoice -> Bool # (/=) :: TextCompletionChoice -> TextCompletionChoice -> Bool # |
data TextCompletion Source #
Instances
FromJSON TextCompletion Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletion # parseJSONList :: Value -> Parser [TextCompletion] # | |
ToJSON TextCompletion Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletion -> Value # toEncoding :: TextCompletion -> Encoding # toJSONList :: [TextCompletion] -> Value # toEncodingList :: [TextCompletion] -> Encoding # | |
Show TextCompletion Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletion -> ShowS # show :: TextCompletion -> String # showList :: [TextCompletion] -> ShowS # | |
Eq TextCompletion Source # | |
Defined in OpenAI.Resources (==) :: TextCompletion -> TextCompletion -> Bool # (/=) :: TextCompletion -> TextCompletion -> Bool # |
data TextCompletionCreate Source #
TextCompletionCreate | |
|
Instances
FromJSON TextCompletionCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser TextCompletionCreate # parseJSONList :: Value -> Parser [TextCompletionCreate] # | |
ToJSON TextCompletionCreate Source # | |
Defined in OpenAI.Resources toJSON :: TextCompletionCreate -> Value # toEncoding :: TextCompletionCreate -> Encoding # toJSONList :: [TextCompletionCreate] -> Value # toEncodingList :: [TextCompletionCreate] -> Encoding # | |
Show TextCompletionCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> TextCompletionCreate -> ShowS # show :: TextCompletionCreate -> String # showList :: [TextCompletionCreate] -> ShowS # | |
Eq TextCompletionCreate Source # | |
Defined in OpenAI.Resources (==) :: TextCompletionCreate -> TextCompletionCreate -> Bool # (/=) :: TextCompletionCreate -> TextCompletionCreate -> Bool # |
defaultEngineTextCompletionCreate :: Text -> TextCompletionCreate Source #
Applies API defaults, only passing a prompt.
Engine Embeddings (deprecated)
data EngineEmbeddingCreate Source #
Instances
FromJSON EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EngineEmbeddingCreate # parseJSONList :: Value -> Parser [EngineEmbeddingCreate] # | |
ToJSON EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources toJSON :: EngineEmbeddingCreate -> Value # toEncoding :: EngineEmbeddingCreate -> Encoding # toJSONList :: [EngineEmbeddingCreate] -> Value # toEncodingList :: [EngineEmbeddingCreate] -> Encoding # | |
Show EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EngineEmbeddingCreate -> ShowS # show :: EngineEmbeddingCreate -> String # showList :: [EngineEmbeddingCreate] -> ShowS # | |
Eq EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources (==) :: EngineEmbeddingCreate -> EngineEmbeddingCreate -> Bool # (/=) :: EngineEmbeddingCreate -> EngineEmbeddingCreate -> Bool # |
data EngineEmbedding Source #
Instances
FromJSON EngineEmbedding Source # | |
Defined in OpenAI.Resources parseJSON :: Value -> Parser EngineEmbedding # parseJSONList :: Value -> Parser [EngineEmbedding] # | |
ToJSON EngineEmbedding Source # | |
Defined in OpenAI.Resources toJSON :: EngineEmbedding -> Value # toEncoding :: EngineEmbedding -> Encoding # toJSONList :: [EngineEmbedding] -> Value # toEncodingList :: [EngineEmbedding] -> Encoding # | |
Show EngineEmbedding Source # | |
Defined in OpenAI.Resources showsPrec :: Int -> EngineEmbedding -> ShowS # show :: EngineEmbedding -> String # showList :: [EngineEmbedding] -> ShowS # | |
Eq EngineEmbedding Source # | |
Defined in OpenAI.Resources (==) :: EngineEmbedding -> EngineEmbedding -> Bool # (/=) :: EngineEmbedding -> EngineEmbedding -> Bool # |