OpenAIClient.GetFileAsync
OpenAIClient.GetFileAsync method
Retrieves details of a specific file asynchronously.
public Task<FileResponse> GetFileAsync(string fileId,
CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| fileId | String | The ID of the file to retrieve. |
| cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the details of the file.
Exceptions
| exception | condition |
|---|---|
| AIClientException | Thrown when the file Id is null or empty. |
See Also
- class FileResponse
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF