trait Files extends AnyRef
- Alphabetic
- By Inheritance
- Files
- AnyRef
- Any
- Hide All
- Show All
- Public
- Protected
Abstract Value Members
- abstract def createFile(body: CreateFileRequest): ZIO[Any, OpenAIFailure, OpenAIFile]
Upload a file that can be used across various endpoints.
Upload a file that can be used across various endpoints. The size of all the files uploaded by one organization can be up to 100 GB.
The size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See the [Assistants Tools guide](/docs/assistants/tools) to learn more about the types of files supported. The Fine-tuning API only supports
.jsonlfiles.Please [contact us](https://help.openai.com/) if you need to increase these storage limits.
- abstract def deleteFile(file_id: String): ZIO[Any, OpenAIFailure, DeleteFileResponse]
Delete a file.
Delete a file.
- file_id
The ID of the file to use for this request.
- abstract def downloadFile(file_id: String): ZIO[Any, OpenAIFailure, String]
Returns the contents of the specified file.
Returns the contents of the specified file.
- file_id
The ID of the file to use for this request.
- abstract def listFiles(purpose: Optional[String] = Optional.Absent): ZIO[Any, OpenAIFailure, ListFilesResponse]
Returns a list of files that belong to the user's organization.
Returns a list of files that belong to the user's organization.
- purpose
Only return files with the given purpose.
- abstract def retrieveFile(file_id: String): ZIO[Any, OpenAIFailure, OpenAIFile]
Returns information about a specific file.
Returns information about a specific file.
- file_id
The ID of the file to use for this request.
Concrete Value Members
- final def !=(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def ##: Int
- Definition Classes
- AnyRef → Any
- final def ==(arg0: Any): Boolean
- Definition Classes
- AnyRef → Any
- final def asInstanceOf[T0]: T0
- Definition Classes
- Any
- def clone(): AnyRef
- Attributes
- protected[lang]
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.CloneNotSupportedException]) @IntrinsicCandidate() @native()
- def createFile(file: File, purpose: Purpose): ZIO[Any, OpenAIFailure, OpenAIFile]
Upload a file that can be used across various endpoints.
Upload a file that can be used across various endpoints. The size of all the files uploaded by one organization can be up to 100 GB.
The size of individual files can be a maximum of 512 MB or 2 million tokens for Assistants. See the [Assistants Tools guide](/docs/assistants/tools) to learn more about the types of files supported. The Fine-tuning API only supports
.jsonlfiles.Please [contact us](https://help.openai.com/) if you need to increase these storage limits.
- file
The File object (not file name) to be uploaded.
- purpose
The intended purpose of the uploaded file. Use "fine-tune" for [Fine-tuning](/docs/api-reference/fine-tuning) and "assistants" for [Assistants](/docs/api-reference/assistants) and [Messages](/docs/api-reference/messages). This allows us to validate the format of the uploaded file is correct for fine-tuning.
- final def eq(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- def equals(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef → Any
- final def getClass(): Class[_ <: AnyRef]
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- def hashCode(): Int
- Definition Classes
- AnyRef → Any
- Annotations
- @IntrinsicCandidate() @native()
- final def isInstanceOf[T0]: Boolean
- Definition Classes
- Any
- final def ne(arg0: AnyRef): Boolean
- Definition Classes
- AnyRef
- final def notify(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def notifyAll(): Unit
- Definition Classes
- AnyRef
- Annotations
- @IntrinsicCandidate() @native()
- final def synchronized[T0](arg0: => T0): T0
- Definition Classes
- AnyRef
- def toString(): String
- Definition Classes
- AnyRef → Any
- final def wait(arg0: Long, arg1: Int): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])
- final def wait(arg0: Long): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException]) @native()
- final def wait(): Unit
- Definition Classes
- AnyRef
- Annotations
- @throws(classOf[java.lang.InterruptedException])