Skip to content

Commit cc157bd

Browse files
authored
Make GetVectorStoreAsync public for consistency with sync method (#638)
1 parent 6887637 commit cc157bd

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

api/OpenAI.net8.0.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5769,6 +5769,7 @@ public class VectorStoreClient {
57695769
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
57705770
public virtual AsyncCollectionResult GetFileAssociationsInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
57715771
public virtual ClientResult<VectorStore> GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default);
5772+
public virtual Task<ClientResult<VectorStore>> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default);
57725773
public virtual CollectionResult<VectorStore> GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);
57735774
public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options);
57745775
public virtual AsyncCollectionResult<VectorStore> GetVectorStoresAsync(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);

api/OpenAI.netstandard2.0.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5121,6 +5121,7 @@ public class VectorStoreClient {
51215121
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsInBatchAsync(string vectorStoreId, string batchId, VectorStoreFileAssociationCollectionOptions options = null, CancellationToken cancellationToken = default);
51225122
public virtual AsyncCollectionResult GetFileAssociationsInBatchAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
51235123
public virtual ClientResult<VectorStore> GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default);
5124+
public virtual Task<ClientResult<VectorStore>> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default);
51245125
public virtual CollectionResult<VectorStore> GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);
51255126
public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options);
51265127
public virtual AsyncCollectionResult<VectorStore> GetVectorStoresAsync(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);

src/Custom/VectorStores/VectorStoreClient.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -158,7 +158,7 @@ public virtual CreateVectorStoreOperation CreateVectorStore(bool waitUntilComple
158158
/// <param name="vectorStoreId"> The ID of the vector store to retrieve. </param>
159159
/// <param name="cancellationToken"> A token that can be used to cancel this method call. </param>
160160
/// <returns> A representation of an existing <see cref="VectorStore"/>. </returns>
161-
internal virtual async Task<ClientResult<VectorStore>> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default)
161+
public virtual async Task<ClientResult<VectorStore>> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default)
162162
{
163163
Argument.AssertNotNullOrEmpty(vectorStoreId, nameof(vectorStoreId));
164164

0 commit comments

Comments
 (0)