IOpenAIClient.CreateVectorStoreAsync

IOpenAIClient.CreateVectorStoreAsync method

Creates a new vector store asynchronously.

public Task<VectorStoreResponse> CreateVectorStoreAsync(
    VectorStoreCreateRequest vectorStoreCreateRequest, 
    CancellationToken? cancellationToken = default)
ParameterTypeDescription
vectorStoreCreateRequestVectorStoreCreateRequestThe request object containing details for creating the vector store.
cancellationTokenNullable`1A token to cancel the operation.

Return Value

A task that represents the asynchronous operation. The task result contains the response from the vector store creation.

See Also