| Safe Haskell | Safe-Inferred |
|---|---|
| Language | Haskell2010 |
OpenAI.Resources
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
Constructors
| TimeStamp | |
Fields | |
Instances
| FromJSON TimeStamp Source # | |
| ToJSON TimeStamp Source # | |
Defined in OpenAI.Resources | |
| Show TimeStamp Source # | |
| Eq TimeStamp Source # | |
| ToHttpApiData TimeStamp Source # | |
Defined in OpenAI.Resources Methods toUrlPiece :: TimeStamp -> Text # toEncodedUrlPiece :: TimeStamp -> Builder # toHeader :: TimeStamp -> ByteString # toQueryParam :: TimeStamp -> Text # | |
newtype OpenAIList a Source #
A Vector wrapper.
Constructors
| OpenAIList | |
Instances
Constructors
| Usage | |
Fields
| |
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 Methods toUrlPiece :: ModelId -> Text # toEncodedUrlPiece :: ModelId -> Builder # toHeader :: ModelId -> ByteString # toQueryParam :: ModelId -> Text # | |
Completion
data CompletionCreate Source #
Constructors
| CompletionCreate | |
Fields
| |
Instances
| FromJSON CompletionCreate Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser CompletionCreate # parseJSONList :: Value -> Parser [CompletionCreate] # | |
| ToJSON CompletionCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: CompletionCreate -> Value # toEncoding :: CompletionCreate -> Encoding # toJSONList :: [CompletionCreate] -> Value # toEncodingList :: [CompletionCreate] -> Encoding # | |
| Show CompletionCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> CompletionCreate -> ShowS # show :: CompletionCreate -> String # showList :: [CompletionCreate] -> ShowS # | |
| Eq CompletionCreate Source # | |
Defined in OpenAI.Resources Methods (==) :: CompletionCreate -> CompletionCreate -> Bool # (/=) :: CompletionCreate -> CompletionCreate -> Bool # | |
data CompletionChoice Source #
Constructors
| CompletionChoice | |
Instances
| FromJSON CompletionChoice Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser CompletionChoice # parseJSONList :: Value -> Parser [CompletionChoice] # | |
| ToJSON CompletionChoice Source # | |
Defined in OpenAI.Resources Methods toJSON :: CompletionChoice -> Value # toEncoding :: CompletionChoice -> Encoding # toJSONList :: [CompletionChoice] -> Value # toEncodingList :: [CompletionChoice] -> Encoding # | |
| Show CompletionChoice Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> CompletionChoice -> ShowS # show :: CompletionChoice -> String # showList :: [CompletionChoice] -> ShowS # | |
| Eq CompletionChoice Source # | |
Defined in OpenAI.Resources Methods (==) :: CompletionChoice -> CompletionChoice -> Bool # (/=) :: CompletionChoice -> CompletionChoice -> Bool # | |
data CompletionResponse Source #
Constructors
| CompletionResponse | |
Instances
| FromJSON CompletionResponse Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser CompletionResponse # parseJSONList :: Value -> Parser [CompletionResponse] # | |
| ToJSON CompletionResponse Source # | |
Defined in OpenAI.Resources Methods toJSON :: CompletionResponse -> Value # toEncoding :: CompletionResponse -> Encoding # toJSONList :: [CompletionResponse] -> Value # toEncodingList :: [CompletionResponse] -> Encoding # | |
| Show CompletionResponse Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> CompletionResponse -> ShowS # show :: CompletionResponse -> String # showList :: [CompletionResponse] -> ShowS # | |
| Eq CompletionResponse Source # | |
Defined in OpenAI.Resources Methods (==) :: CompletionResponse -> CompletionResponse -> Bool # (/=) :: CompletionResponse -> CompletionResponse -> Bool # | |
Chat
data ChatFunction Source #
Constructors
| ChatFunction | |
Fields
| |
Instances
| FromJSON ChatFunction Source # | |
Defined in OpenAI.Resources | |
| ToJSON ChatFunction Source # | |
Defined in OpenAI.Resources Methods toJSON :: ChatFunction -> Value # toEncoding :: ChatFunction -> Encoding # toJSONList :: [ChatFunction] -> Value # toEncodingList :: [ChatFunction] -> Encoding # | |
| Show ChatFunction Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ChatFunction -> ShowS # show :: ChatFunction -> String # showList :: [ChatFunction] -> ShowS # | |
| Eq ChatFunction Source # | |
Defined in OpenAI.Resources | |
data ChatFunctionCall Source #
Constructors
| ChatFunctionCall | |
Fields
| |
Instances
| FromJSON ChatFunctionCall Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser ChatFunctionCall # parseJSONList :: Value -> Parser [ChatFunctionCall] # | |
| ToJSON ChatFunctionCall Source # | |
Defined in OpenAI.Resources Methods toJSON :: ChatFunctionCall -> Value # toEncoding :: ChatFunctionCall -> Encoding # toJSONList :: [ChatFunctionCall] -> Value # toEncodingList :: [ChatFunctionCall] -> Encoding # | |
| Show ChatFunctionCall Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ChatFunctionCall -> ShowS # show :: ChatFunctionCall -> String # showList :: [ChatFunctionCall] -> ShowS # | |
| Eq ChatFunctionCall Source # | |
Defined in OpenAI.Resources Methods (==) :: ChatFunctionCall -> ChatFunctionCall -> Bool # (/=) :: ChatFunctionCall -> ChatFunctionCall -> Bool # | |
data ChatMessage Source #
Constructors
| ChatMessage | |
Fields
| |
Instances
| FromJSON ChatMessage Source # | |
Defined in OpenAI.Resources | |
| ToJSON ChatMessage Source # | |
Defined in OpenAI.Resources Methods toJSON :: ChatMessage -> Value # toEncoding :: ChatMessage -> Encoding # toJSONList :: [ChatMessage] -> Value # toEncodingList :: [ChatMessage] -> Encoding # | |
| Show ChatMessage Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ChatMessage -> ShowS # show :: ChatMessage -> String # showList :: [ChatMessage] -> ShowS # | |
| Eq ChatMessage Source # | |
Defined in OpenAI.Resources | |
data ChatCompletionRequest Source #
Constructors
| ChatCompletionRequest | |
Fields
| |
Instances
| FromJSON ChatCompletionRequest Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser ChatCompletionRequest # parseJSONList :: Value -> Parser [ChatCompletionRequest] # | |
| ToJSON ChatCompletionRequest Source # | |
Defined in OpenAI.Resources Methods toJSON :: ChatCompletionRequest -> Value # toEncoding :: ChatCompletionRequest -> Encoding # toJSONList :: [ChatCompletionRequest] -> Value # toEncodingList :: [ChatCompletionRequest] -> Encoding # | |
| Show ChatCompletionRequest Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ChatCompletionRequest -> ShowS # show :: ChatCompletionRequest -> String # showList :: [ChatCompletionRequest] -> ShowS # | |
| Eq ChatCompletionRequest Source # | |
Defined in OpenAI.Resources Methods (==) :: ChatCompletionRequest -> ChatCompletionRequest -> Bool # (/=) :: ChatCompletionRequest -> ChatCompletionRequest -> Bool # | |
data ChatChoice Source #
Constructors
| ChatChoice | |
Fields
| |
Instances
| FromJSON ChatChoice Source # | |
Defined in OpenAI.Resources | |
| ToJSON ChatChoice Source # | |
Defined in OpenAI.Resources Methods toJSON :: ChatChoice -> Value # toEncoding :: ChatChoice -> Encoding # toJSONList :: [ChatChoice] -> Value # toEncodingList :: [ChatChoice] -> Encoding # | |
| Show ChatChoice Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ChatChoice -> ShowS # show :: ChatChoice -> String # showList :: [ChatChoice] -> ShowS # | |
| Eq ChatChoice Source # | |
Defined in OpenAI.Resources | |
data ChatResponse Source #
Constructors
| ChatResponse | |
Fields
| |
Instances
| FromJSON ChatResponse Source # | |
Defined in OpenAI.Resources | |
| ToJSON ChatResponse Source # | |
Defined in OpenAI.Resources Methods toJSON :: ChatResponse -> Value # toEncoding :: ChatResponse -> Encoding # toJSONList :: [ChatResponse] -> Value # toEncodingList :: [ChatResponse] -> Encoding # | |
Edits
data EditCreate Source #
Constructors
| EditCreate | |
Instances
| FromJSON EditCreate Source # | |
Defined in OpenAI.Resources | |
| ToJSON EditCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: EditCreate -> Value # toEncoding :: EditCreate -> Encoding # toJSONList :: [EditCreate] -> Value # toEncodingList :: [EditCreate] -> Encoding # | |
| Show EditCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EditCreate -> ShowS # show :: EditCreate -> String # showList :: [EditCreate] -> ShowS # | |
| Eq EditCreate Source # | |
Defined in OpenAI.Resources | |
data EditChoice Source #
Constructors
| EditChoice | |
Instances
| FromJSON EditChoice Source # | |
Defined in OpenAI.Resources | |
| ToJSON EditChoice Source # | |
Defined in OpenAI.Resources Methods toJSON :: EditChoice -> Value # toEncoding :: EditChoice -> Encoding # toJSONList :: [EditChoice] -> Value # toEncodingList :: [EditChoice] -> Encoding # | |
| Show EditChoice Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EditChoice -> ShowS # show :: EditChoice -> String # showList :: [EditChoice] -> ShowS # | |
| Eq EditChoice Source # | |
Defined in OpenAI.Resources | |
data EditResponse Source #
Constructors
| EditResponse | |
Fields
| |
Instances
| FromJSON EditResponse Source # | |
Defined in OpenAI.Resources | |
| ToJSON EditResponse Source # | |
Defined in OpenAI.Resources Methods toJSON :: EditResponse -> Value # toEncoding :: EditResponse -> Encoding # toJSONList :: [EditResponse] -> Value # toEncodingList :: [EditResponse] -> Encoding # | |
| Show EditResponse Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EditResponse -> ShowS # show :: EditResponse -> String # showList :: [EditResponse] -> ShowS # | |
| Eq EditResponse Source # | |
Defined in OpenAI.Resources | |
defaultEditCreate :: ModelId -> Text -> Text -> EditCreate Source #
Images
data ImageResponse Source #
Constructors
| ImageResponse | |
Fields
| |
Instances
| FromJSON ImageResponse Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser ImageResponse # parseJSONList :: Value -> Parser [ImageResponse] # | |
| ToJSON ImageResponse Source # | |
Defined in OpenAI.Resources Methods toJSON :: ImageResponse -> Value # toEncoding :: ImageResponse -> Encoding # toJSONList :: [ImageResponse] -> Value # toEncodingList :: [ImageResponse] -> Encoding # | |
| Show ImageResponse Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ImageResponse -> ShowS # show :: ImageResponse -> String # showList :: [ImageResponse] -> ShowS # | |
| Eq ImageResponse Source # | |
Defined in OpenAI.Resources Methods (==) :: ImageResponse -> ImageResponse -> Bool # (/=) :: ImageResponse -> ImageResponse -> Bool # | |
data ImageResponseData Source #
Constructors
| ImageResponseData | |
Instances
| FromJSON ImageResponseData Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser ImageResponseData # parseJSONList :: Value -> Parser [ImageResponseData] # | |
| ToJSON ImageResponseData Source # | |
Defined in OpenAI.Resources Methods toJSON :: ImageResponseData -> Value # toEncoding :: ImageResponseData -> Encoding # toJSONList :: [ImageResponseData] -> Value # toEncodingList :: [ImageResponseData] -> Encoding # | |
| Show ImageResponseData Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ImageResponseData -> ShowS # show :: ImageResponseData -> String # showList :: [ImageResponseData] -> ShowS # | |
| Eq ImageResponseData Source # | |
Defined in OpenAI.Resources Methods (==) :: ImageResponseData -> ImageResponseData -> Bool # (/=) :: ImageResponseData -> ImageResponseData -> Bool # | |
data ImageCreate Source #
Image create API
Constructors
| ImageCreate | |
Instances
| FromJSON ImageCreate Source # | |
Defined in OpenAI.Resources | |
| ToJSON ImageCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: ImageCreate -> Value # toEncoding :: ImageCreate -> Encoding # toJSONList :: [ImageCreate] -> Value # toEncodingList :: [ImageCreate] -> Encoding # | |
| Show ImageCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ImageCreate -> ShowS # show :: ImageCreate -> String # showList :: [ImageCreate] -> ShowS # | |
| Eq ImageCreate Source # | |
Defined in OpenAI.Resources | |
data ImageEditRequest Source #
Image edit API
Constructors
| ImageEditRequest | |
Instances
| FromJSON ImageEditRequest Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser ImageEditRequest # parseJSONList :: Value -> Parser [ImageEditRequest] # | |
| ToJSON ImageEditRequest Source # | |
Defined in OpenAI.Resources Methods toJSON :: ImageEditRequest -> Value # toEncoding :: ImageEditRequest -> Encoding # toJSONList :: [ImageEditRequest] -> Value # toEncodingList :: [ImageEditRequest] -> Encoding # | |
| Show ImageEditRequest Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ImageEditRequest -> ShowS # show :: ImageEditRequest -> String # showList :: [ImageEditRequest] -> ShowS # | |
| Eq ImageEditRequest Source # | |
Defined in OpenAI.Resources Methods (==) :: ImageEditRequest -> ImageEditRequest -> Bool # (/=) :: ImageEditRequest -> ImageEditRequest -> Bool # | |
data ImageVariationRequest Source #
Image variation API
Constructors
| ImageVariationRequest | |
Instances
| FromJSON ImageVariationRequest Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser ImageVariationRequest # parseJSONList :: Value -> Parser [ImageVariationRequest] # | |
| ToJSON ImageVariationRequest Source # | |
Defined in OpenAI.Resources Methods toJSON :: ImageVariationRequest -> Value # toEncoding :: ImageVariationRequest -> Encoding # toJSONList :: [ImageVariationRequest] -> Value # toEncodingList :: [ImageVariationRequest] -> Encoding # | |
| Show ImageVariationRequest Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> ImageVariationRequest -> ShowS # show :: ImageVariationRequest -> String # showList :: [ImageVariationRequest] -> ShowS # | |
| Eq ImageVariationRequest Source # | |
Defined in OpenAI.Resources Methods (==) :: ImageVariationRequest -> ImageVariationRequest -> Bool # (/=) :: ImageVariationRequest -> ImageVariationRequest -> Bool # | |
Embeddings
data EmbeddingCreate Source #
Instances
| FromJSON EmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser EmbeddingCreate # parseJSONList :: Value -> Parser [EmbeddingCreate] # | |
| ToJSON EmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: EmbeddingCreate -> Value # toEncoding :: EmbeddingCreate -> Encoding # toJSONList :: [EmbeddingCreate] -> Value # toEncodingList :: [EmbeddingCreate] -> Encoding # | |
| Show EmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EmbeddingCreate -> ShowS # show :: EmbeddingCreate -> String # showList :: [EmbeddingCreate] -> ShowS # | |
| Eq EmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods (==) :: EmbeddingCreate -> EmbeddingCreate -> Bool # (/=) :: EmbeddingCreate -> EmbeddingCreate -> Bool # | |
data EmbeddingResponseData Source #
Constructors
| EmbeddingResponseData | |
Fields
| |
Instances
| FromJSON EmbeddingResponseData Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser EmbeddingResponseData # parseJSONList :: Value -> Parser [EmbeddingResponseData] # | |
| ToJSON EmbeddingResponseData Source # | |
Defined in OpenAI.Resources Methods toJSON :: EmbeddingResponseData -> Value # toEncoding :: EmbeddingResponseData -> Encoding # toJSONList :: [EmbeddingResponseData] -> Value # toEncodingList :: [EmbeddingResponseData] -> Encoding # | |
| Show EmbeddingResponseData Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EmbeddingResponseData -> ShowS # show :: EmbeddingResponseData -> String # showList :: [EmbeddingResponseData] -> ShowS # | |
| Eq EmbeddingResponseData Source # | |
Defined in OpenAI.Resources Methods (==) :: EmbeddingResponseData -> EmbeddingResponseData -> Bool # (/=) :: EmbeddingResponseData -> EmbeddingResponseData -> Bool # | |
data EmbeddingUsage Source #
Constructors
| EmbeddingUsage | |
Fields | |
Instances
| FromJSON EmbeddingUsage Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser EmbeddingUsage # parseJSONList :: Value -> Parser [EmbeddingUsage] # | |
| ToJSON EmbeddingUsage Source # | |
Defined in OpenAI.Resources Methods toJSON :: EmbeddingUsage -> Value # toEncoding :: EmbeddingUsage -> Encoding # toJSONList :: [EmbeddingUsage] -> Value # toEncodingList :: [EmbeddingUsage] -> Encoding # | |
| Show EmbeddingUsage Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EmbeddingUsage -> ShowS # show :: EmbeddingUsage -> String # showList :: [EmbeddingUsage] -> ShowS # | |
| Eq EmbeddingUsage Source # | |
Defined in OpenAI.Resources Methods (==) :: EmbeddingUsage -> EmbeddingUsage -> Bool # (/=) :: EmbeddingUsage -> EmbeddingUsage -> Bool # | |
data EmbeddingResponse Source #
Constructors
| EmbeddingResponse | |
Fields
| |
Instances
| FromJSON EmbeddingResponse Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser EmbeddingResponse # parseJSONList :: Value -> Parser [EmbeddingResponse] # | |
| ToJSON EmbeddingResponse Source # | |
Defined in OpenAI.Resources Methods toJSON :: EmbeddingResponse -> Value # toEncoding :: EmbeddingResponse -> Encoding # toJSONList :: [EmbeddingResponse] -> Value # toEncodingList :: [EmbeddingResponse] -> Encoding # | |
| Show EmbeddingResponse Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EmbeddingResponse -> ShowS # show :: EmbeddingResponse -> String # showList :: [EmbeddingResponse] -> ShowS # | |
| Eq EmbeddingResponse Source # | |
Defined in OpenAI.Resources Methods (==) :: EmbeddingResponse -> EmbeddingResponse -> Bool # (/=) :: EmbeddingResponse -> EmbeddingResponse -> Bool # | |
Audio
data AudioResponseData Source #
Constructors
| AudioResponseData | |
Instances
| FromJSON AudioResponseData Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser AudioResponseData # parseJSONList :: Value -> Parser [AudioResponseData] # | |
| ToJSON AudioResponseData Source # | |
Defined in OpenAI.Resources Methods toJSON :: AudioResponseData -> Value # toEncoding :: AudioResponseData -> Encoding # toJSONList :: [AudioResponseData] -> Value # toEncodingList :: [AudioResponseData] -> Encoding # | |
| Show AudioResponseData Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> AudioResponseData -> ShowS # show :: AudioResponseData -> String # showList :: [AudioResponseData] -> ShowS # | |
| Eq AudioResponseData Source # | |
Defined in OpenAI.Resources Methods (==) :: AudioResponseData -> AudioResponseData -> Bool # (/=) :: AudioResponseData -> AudioResponseData -> Bool # | |
data AudioTranscriptionRequest Source #
Audio create API
Constructors
| AudioTranscriptionRequest | |
Fields | |
Instances
data AudioTranslationRequest Source #
Audio translation API
Constructors
| AudioTranslationRequest | |
Fields | |
Instances
| FromJSON AudioTranslationRequest Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser AudioTranslationRequest # parseJSONList :: Value -> Parser [AudioTranslationRequest] # | |
| ToJSON AudioTranslationRequest Source # | |
Defined in OpenAI.Resources Methods toJSON :: AudioTranslationRequest -> Value # toEncoding :: AudioTranslationRequest -> Encoding # toJSONList :: [AudioTranslationRequest] -> Value # | |
| Show AudioTranslationRequest Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> AudioTranslationRequest -> ShowS # show :: AudioTranslationRequest -> String # showList :: [AudioTranslationRequest] -> ShowS # | |
| Eq AudioTranslationRequest Source # | |
Defined in OpenAI.Resources Methods (==) :: AudioTranslationRequest -> AudioTranslationRequest -> Bool # (/=) :: AudioTranslationRequest -> AudioTranslationRequest -> Bool # | |
| ToMultipart Tmp AudioTranslationRequest Source # | |
Defined in OpenAI.Resources Methods toMultipart :: AudioTranslationRequest -> MultipartData Tmp # | |
Fine tuning (out of date)
newtype FineTuneId Source #
Constructors
| FineTuneId | |
Fields
| |
Instances
| FromJSON FineTuneId Source # | |
Defined in OpenAI.Resources | |
| ToJSON FineTuneId Source # | |
Defined in OpenAI.Resources Methods toJSON :: FineTuneId -> Value # toEncoding :: FineTuneId -> Encoding # toJSONList :: [FineTuneId] -> Value # toEncodingList :: [FineTuneId] -> Encoding # | |
| Show FineTuneId Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> FineTuneId -> ShowS # show :: FineTuneId -> String # showList :: [FineTuneId] -> ShowS # | |
| Eq FineTuneId Source # | |
Defined in OpenAI.Resources | |
| ToHttpApiData FineTuneId Source # | |
Defined in OpenAI.Resources Methods toUrlPiece :: FineTuneId -> Text # toEncodedUrlPiece :: FineTuneId -> Builder # toHeader :: FineTuneId -> ByteString # toQueryParam :: FineTuneId -> Text # | |
data FineTuneCreate Source #
Constructors
Instances
| FromJSON FineTuneCreate Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser FineTuneCreate # parseJSONList :: Value -> Parser [FineTuneCreate] # | |
| ToJSON FineTuneCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: FineTuneCreate -> Value # toEncoding :: FineTuneCreate -> Encoding # toJSONList :: [FineTuneCreate] -> Value # toEncodingList :: [FineTuneCreate] -> Encoding # | |
| Show FineTuneCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> FineTuneCreate -> ShowS # show :: FineTuneCreate -> String # showList :: [FineTuneCreate] -> ShowS # | |
| Eq FineTuneCreate Source # | |
Defined in OpenAI.Resources Methods (==) :: FineTuneCreate -> FineTuneCreate -> Bool # (/=) :: FineTuneCreate -> FineTuneCreate -> Bool # | |
Constructors
| FineTune | |
Fields
| |
data FineTuneEvent Source #
Constructors
| FineTuneEvent | |
Fields
| |
Instances
| FromJSON FineTuneEvent Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser FineTuneEvent # parseJSONList :: Value -> Parser [FineTuneEvent] # | |
| ToJSON FineTuneEvent Source # | |
Defined in OpenAI.Resources Methods toJSON :: FineTuneEvent -> Value # toEncoding :: FineTuneEvent -> Encoding # toJSONList :: [FineTuneEvent] -> Value # toEncodingList :: [FineTuneEvent] -> Encoding # | |
| Show FineTuneEvent Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> FineTuneEvent -> ShowS # show :: FineTuneEvent -> String # showList :: [FineTuneEvent] -> ShowS # | |
| Eq FineTuneEvent Source # | |
Defined in OpenAI.Resources Methods (==) :: FineTuneEvent -> FineTuneEvent -> Bool # (/=) :: FineTuneEvent -> FineTuneEvent -> Bool # | |
File API (out of date)
data FileCreate Source #
File upload API
Constructors
| FileCreate | |
Fields
| |
Instances
| Show FileCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> FileCreate -> ShowS # show :: FileCreate -> String # showList :: [FileCreate] -> ShowS # | |
| Eq FileCreate Source # | |
Defined in OpenAI.Resources | |
| ToMultipart Mem FileCreate Source # | |
Defined in OpenAI.Resources Methods 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 Methods toUrlPiece :: FileId -> Text # toEncodedUrlPiece :: FileId -> Builder # toHeader :: FileId -> ByteString # toQueryParam :: FileId -> Text # | |
Constructors
| File | |
Constructors
| FhFineTune FineTuneHunk |
Instances
data FineTuneHunk Source #
Constructors
| FineTuneHunk | |
Fields
| |
Instances
| FromJSON FineTuneHunk Source # | |
Defined in OpenAI.Resources | |
| ToJSON FineTuneHunk Source # | |
Defined in OpenAI.Resources Methods toJSON :: FineTuneHunk -> Value # toEncoding :: FineTuneHunk -> Encoding # toJSONList :: [FineTuneHunk] -> Value # toEncodingList :: [FineTuneHunk] -> Encoding # | |
| Show FineTuneHunk Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> FineTuneHunk -> ShowS # show :: FineTuneHunk -> String # showList :: [FineTuneHunk] -> ShowS # | |
| Eq FineTuneHunk Source # | |
Defined in OpenAI.Resources | |
data FileDeleteConfirmation Source #
File delete API
Constructors
| FileDeleteConfirmation | |
Instances
| FromJSON FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser FileDeleteConfirmation # parseJSONList :: Value -> Parser [FileDeleteConfirmation] # | |
| ToJSON FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources Methods toJSON :: FileDeleteConfirmation -> Value # toEncoding :: FileDeleteConfirmation -> Encoding # toJSONList :: [FileDeleteConfirmation] -> Value # | |
| Show FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> FileDeleteConfirmation -> ShowS # show :: FileDeleteConfirmation -> String # showList :: [FileDeleteConfirmation] -> ShowS # | |
| Eq FileDeleteConfirmation Source # | |
Defined in OpenAI.Resources Methods (==) :: FileDeleteConfirmation -> FileDeleteConfirmation -> Bool # (/=) :: FileDeleteConfirmation -> FileDeleteConfirmation -> Bool # | |
Engine (deprecated)
File retrieve API TODO
File retrieve content API TODO
Constructors
| EngineId | |
Fields
| |
Instances
| FromJSON EngineId Source # | |
| ToJSON EngineId Source # | |
Defined in OpenAI.Resources | |
| Show EngineId Source # | |
| Eq EngineId Source # | |
| ToHttpApiData EngineId Source # | |
Defined in OpenAI.Resources Methods toUrlPiece :: EngineId -> Text # toEncodedUrlPiece :: EngineId -> Builder # toHeader :: EngineId -> ByteString # toQueryParam :: EngineId -> Text # | |
Engine text completion (deprecated)
newtype TextCompletionId Source #
Constructors
| TextCompletionId | |
Fields | |
Instances
data TextCompletionChoice Source #
Constructors
| TextCompletionChoice | |
Fields
| |
Instances
| FromJSON TextCompletionChoice Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser TextCompletionChoice # parseJSONList :: Value -> Parser [TextCompletionChoice] # | |
| ToJSON TextCompletionChoice Source # | |
Defined in OpenAI.Resources Methods toJSON :: TextCompletionChoice -> Value # toEncoding :: TextCompletionChoice -> Encoding # toJSONList :: [TextCompletionChoice] -> Value # toEncodingList :: [TextCompletionChoice] -> Encoding # | |
| Show TextCompletionChoice Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> TextCompletionChoice -> ShowS # show :: TextCompletionChoice -> String # showList :: [TextCompletionChoice] -> ShowS # | |
| Eq TextCompletionChoice Source # | |
Defined in OpenAI.Resources Methods (==) :: TextCompletionChoice -> TextCompletionChoice -> Bool # (/=) :: TextCompletionChoice -> TextCompletionChoice -> Bool # | |
data TextCompletion Source #
Constructors
| TextCompletion | |
Fields | |
Instances
| FromJSON TextCompletion Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser TextCompletion # parseJSONList :: Value -> Parser [TextCompletion] # | |
| ToJSON TextCompletion Source # | |
Defined in OpenAI.Resources Methods toJSON :: TextCompletion -> Value # toEncoding :: TextCompletion -> Encoding # toJSONList :: [TextCompletion] -> Value # toEncodingList :: [TextCompletion] -> Encoding # | |
| Show TextCompletion Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> TextCompletion -> ShowS # show :: TextCompletion -> String # showList :: [TextCompletion] -> ShowS # | |
| Eq TextCompletion Source # | |
Defined in OpenAI.Resources Methods (==) :: TextCompletion -> TextCompletion -> Bool # (/=) :: TextCompletion -> TextCompletion -> Bool # | |
data TextCompletionCreate Source #
Constructors
| TextCompletionCreate | |
Fields
| |
Instances
| FromJSON TextCompletionCreate Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser TextCompletionCreate # parseJSONList :: Value -> Parser [TextCompletionCreate] # | |
| ToJSON TextCompletionCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: TextCompletionCreate -> Value # toEncoding :: TextCompletionCreate -> Encoding # toJSONList :: [TextCompletionCreate] -> Value # toEncodingList :: [TextCompletionCreate] -> Encoding # | |
| Show TextCompletionCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> TextCompletionCreate -> ShowS # show :: TextCompletionCreate -> String # showList :: [TextCompletionCreate] -> ShowS # | |
| Eq TextCompletionCreate Source # | |
Defined in OpenAI.Resources Methods (==) :: TextCompletionCreate -> TextCompletionCreate -> Bool # (/=) :: TextCompletionCreate -> TextCompletionCreate -> Bool # | |
defaultEngineTextCompletionCreate :: Text -> TextCompletionCreate Source #
Applies API defaults, only passing a prompt.
Engine Embeddings (deprecated)
data EngineEmbeddingCreate Source #
Constructors
| EngineEmbeddingCreate | |
Instances
| FromJSON EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser EngineEmbeddingCreate # parseJSONList :: Value -> Parser [EngineEmbeddingCreate] # | |
| ToJSON EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods toJSON :: EngineEmbeddingCreate -> Value # toEncoding :: EngineEmbeddingCreate -> Encoding # toJSONList :: [EngineEmbeddingCreate] -> Value # toEncodingList :: [EngineEmbeddingCreate] -> Encoding # | |
| Show EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EngineEmbeddingCreate -> ShowS # show :: EngineEmbeddingCreate -> String # showList :: [EngineEmbeddingCreate] -> ShowS # | |
| Eq EngineEmbeddingCreate Source # | |
Defined in OpenAI.Resources Methods (==) :: EngineEmbeddingCreate -> EngineEmbeddingCreate -> Bool # (/=) :: EngineEmbeddingCreate -> EngineEmbeddingCreate -> Bool # | |
data EngineEmbedding Source #
Constructors
| EngineEmbedding | |
Fields
| |
Instances
| FromJSON EngineEmbedding Source # | |
Defined in OpenAI.Resources Methods parseJSON :: Value -> Parser EngineEmbedding # parseJSONList :: Value -> Parser [EngineEmbedding] # | |
| ToJSON EngineEmbedding Source # | |
Defined in OpenAI.Resources Methods toJSON :: EngineEmbedding -> Value # toEncoding :: EngineEmbedding -> Encoding # toJSONList :: [EngineEmbedding] -> Value # toEncodingList :: [EngineEmbedding] -> Encoding # | |
| Show EngineEmbedding Source # | |
Defined in OpenAI.Resources Methods showsPrec :: Int -> EngineEmbedding -> ShowS # show :: EngineEmbedding -> String # showList :: [EngineEmbedding] -> ShowS # | |
| Eq EngineEmbedding Source # | |
Defined in OpenAI.Resources Methods (==) :: EngineEmbedding -> EngineEmbedding -> Bool # (/=) :: EngineEmbedding -> EngineEmbedding -> Bool # | |