OpenAIClient.CreateVectorStoreFileAsync
OpenAIClient.CreateVectorStoreFileAsync method
Creates a new vector store file asynchronously.
public Task<VectorStoreFileResponse> CreateVectorStoreFileAsync(string vectorStoreId,
VectorStoreFileCreateRequest vectorStoreFileCreateRequest,
CancellationToken? cancellationToken = default)
| Parameter | Type | Description |
|---|---|---|
| vectorStoreId | String | The ID of the vector store where the file will be created. |
| vectorStoreFileCreateRequest | VectorStoreFileCreateRequest | The request object containing details for creating the file. |
| cancellationToken | Nullable`1 | A token to cancel the operation. |
Return Value
A task that represents the asynchronous operation. The task result contains the response from the file creation.
Exceptions
| exception | condition |
|---|---|
| AIClientException | Thrown when the vector store Id is null or empty. |
See Also
- class VectorStoreFileResponse
- class VectorStoreFileCreateRequest
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF