Back
create-file (clj)
(source)function
(create-file params)
(create-file params options)
Upload a file that contains document(s) to be used across various endpoints/features. Currently, the size of all the files uploaded by one organization can be up to 1 GB.
Example:
```
(create-file {:purpose "fine-tune"
:file (clojure.java.io/file "path/to/fine-tune.jsonl")})
```
Also see the [OpenAI documentation](https://platform.openai.com/docs/api-reference/files/upload)