Skip to content

Commit 0c4aa4a

Browse files
committed
Make GetVectorStoreAsync public for consistency with sync method
1 parent a15aaad commit 0c4aa4a

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
@@ -5773,6 +5773,7 @@ public class VectorStoreClient {
57735773
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsAsync(string vectorStoreId, string batchJobId, ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
57745774
public virtual AsyncCollectionResult GetFileAssociationsAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
57755775
public virtual ClientResult<VectorStore> GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default);
5776+
public virtual Task<ClientResult<VectorStore>> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default);
57765777
public virtual CollectionResult<VectorStore> GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);
57775778
public virtual CollectionResult<VectorStore> GetVectorStores(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
57785779
public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options);

api/OpenAI.netstandard2.0.cs

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5125,6 +5125,7 @@ public class VectorStoreClient {
51255125
public virtual AsyncCollectionResult<VectorStoreFileAssociation> GetFileAssociationsAsync(string vectorStoreId, string batchJobId, ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
51265126
public virtual AsyncCollectionResult GetFileAssociationsAsync(string vectorStoreId, string batchId, int? limit, string order, string after, string before, string filter, RequestOptions options);
51275127
public virtual ClientResult<VectorStore> GetVectorStore(string vectorStoreId, CancellationToken cancellationToken = default);
5128+
public virtual Task<ClientResult<VectorStore>> GetVectorStoreAsync(string vectorStoreId, CancellationToken cancellationToken = default);
51285129
public virtual CollectionResult<VectorStore> GetVectorStores(VectorStoreCollectionOptions options = null, CancellationToken cancellationToken = default);
51295130
public virtual CollectionResult<VectorStore> GetVectorStores(ContinuationToken firstPageToken, CancellationToken cancellationToken = default);
51305131
public virtual CollectionResult GetVectorStores(int? limit, string order, string after, string before, RequestOptions options);

src/Custom/VectorStores/VectorStoreClient.cs

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

0 commit comments

Comments
 (0)