OpenAIClient.CreateVectorStoreFileBatchAsync

OpenAIClient.CreateVectorStoreFileBatchAsync method

Creates a new vector store file batch asynchronously.

public Task<VectorStoreFileBatchResponse> CreateVectorStoreFileBatchAsync(string vectorStoreId, 
    VectorStoreFileBatchCreateRequest vectorStoreFileCreateRequest, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
vectorStoreIdStringThe ID of the vector store where the file batch will be created.
vectorStoreFileCreateRequestVectorStoreFileBatchCreateRequestThe request object containing details for creating the file batch.
cancellationTokenNullable`1A 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

exceptioncondition
AIClientExceptionThrown when the vector store Id is null or empty.

See Also