choonkeat/elm-openai/2.1.0

NOTE: the latest version is 3.0.0

OpenAI.File

Files are used to upload documents that can be used with features like Fine-tuning.

See https://beta.openai.com/docs/api-reference/files

getFile : { file_id : String } -> TaskInput (Error String) File
getFileContent : { file_id : String } -> TaskInput (Error Bytes) BinaryBlob
deleteFile : { file_id : String } -> TaskInput (Error String) DeleteOutput
= FilePurposeFineTune (List PromptCompletion)
| FilePurposeGeneral String BinaryBlob
type alias PromptCompletion =
{ prompt : String
, completion : String
}