UploadRequestBody

sttp.openai.requests.upload.UploadRequestBody
See theUploadRequestBody companion object
case class UploadRequestBody(filename: String, purpose: String, bytes: Int, mimeType: String)

Represents the request body for uploading a file.

Value parameters

bytes

The number of bytes in the file you are uploading.

filename

The name of the file to upload.

mimeType

The MIME type of the file. This must fall within the supported MIME types for your file purpose. See the supported MIME types for assistants and vision.

purpose

The intended purpose of the uploaded file.

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