OpenAIClient.CreateVectorStoreFileBatchAsync
OpenAIClient.CreateVectorStoreFileBatchAsync method
Creates a new vector store file batch asynchronously.
public Task<VectorStoreFileBatchResponse> CreateVectorStoreFileBatchAsync(string vectorStoreId,
VectorStoreFileBatchCreateRequest vectorStoreFileCreateRequest,
CancellationToken? cancellationToken = default)
Parameter | Type | Description |
---|---|---|
vectorStoreId | String | The ID of the vector store where the file batch will be created. |
vectorStoreFileCreateRequest | VectorStoreFileBatchCreateRequest | The request object containing details for creating the file batch. |
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 batch creation.
Exceptions
exception | condition |
---|---|
AIClientException | Thrown when the vector store Id is null or empty. |
See Also
- class VectorStoreFileBatchResponse
- class VectorStoreFileBatchCreateRequest
- class OpenAIClient
- namespace Aspose.Pdf.AI
- assembly Aspose.PDF