UploadResponse

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 Serializable
trait Product
trait Equals
class Object
trait Matchable
class Any
Show all

Members list

Value members

Inherited methods

def productElementNames: Iterator[String]

Attributes

Inherited from:
Product
def productIterator: Iterator[Any]

Attributes

Inherited from:
Product