Skip to content

UploadFileParameters

MarcoDotIO edited this page Dec 5, 2022 · 1 revision

UploadFileParameters

Parameter used for uploading files.

public struct UploadFileParameters 

Initializers

init(file:fileName:purpose:)

public init(
        file: Data,
        fileName: String,
        purpose: String
    ) 

Properties

file

Name of the JSON Lines file to be uploaded.

public var file: FormData

If the purpose is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields representing your training examples.

purpose

The intended purpose of the uploaded documents.

public var purpose: String

Use "fine-tune" for Fine-tuning. This allows us to validate the format of the uploaded file.

body

public var body: [String: Any] 
Types
Global Functions
Clone this wiki locally