Class FileUploadRequest
public sealed class FileUploadRequest : IDisposable
- Inheritance
-
FileUploadRequest
- Implements
- Inherited Members
Constructors
FileUploadRequest(Stream, string, string)
Constructor.
public FileUploadRequest(Stream stream, string fileName, string purpose)
Parameters
streamStreamThe file contents to upload.
fileNamestringThe file name.
purposestringThe intended purpose of the uploaded documents. If the purpose is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields representing your training examples.
Exceptions
FileUploadRequest(string, string)
Constructor.
public FileUploadRequest(string filePath, string purpose)
Parameters
filePathstringLocal file path to upload.
purposestringThe intended purpose of the uploaded documents. If the purpose is set to "fine-tune", each line is a JSON record with "prompt" and "completion" fields representing your training examples.
Exceptions
Properties
File
public Stream File { get; }
Property Value
FileName
public string FileName { get; }
Property Value
Purpose
public string Purpose { get; }
Property Value
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
~FileUploadRequest()
protected ~FileUploadRequest()