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
stream
StreamThe file contents to upload.
fileName
stringThe file name.
purpose
stringThe 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
filePath
stringLocal file path to upload.
purpose
stringThe 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()