sttp.openai.requests.upload.UploadResponse
See theUploadResponse companion object
case class UploadResponse(id: String, `object`: String, bytes: Int, createdAt: Int, filename: String, purpose: String, status: String, expiresAt: Int, file: Option[FileMetadata])
Represents the response for an upload request.
Value parameters
- `object`
-
The object type, which is always "upload".
- bytes
-
The intended number of bytes to be uploaded.
- createdAt
-
The Unix timestamp (in seconds) for when the Upload was created.
- expiresAt
-
The Unix timestamp (in seconds) for when the Upload will expire.
- file
-
The File object represents a document that has been uploaded to OpenAI.
- filename
-
The name of the file to be uploaded.
- id
-
The Upload unique identifier, which can be referenced in API endpoints.
- purpose
-
The intended purpose of the file. Please refer here for acceptable values.
- status
-
The status of the Upload.
Attributes
- Companion
- object
- Graph
-
- Supertypes
-
trait Serializabletrait Producttrait Equalsclass Objecttrait Matchableclass Any
Members list
In this article