Skip to content

Commit 9b23df7

Browse files
authored
Rename Vector Store types (#657)
* Rename vector store types
1 parent 37f15ba commit 9b23df7

File tree

48 files changed

+919
-973
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

48 files changed

+919
-973
lines changed

api/OpenAI.net8.0.cs

Lines changed: 109 additions & 105 deletions
Large diffs are not rendered by default.

api/OpenAI.netstandard2.0.cs

Lines changed: 106 additions & 102 deletions
Large diffs are not rendered by default.

codegen/generator/src/Visitors/PaginationVisitor.cs

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,20 +56,20 @@ public class PaginationVisitor : ScmLibraryVisitor
5656
("VectorStore", "VectorStoreCollectionOptions", _paginationParamsToReplace)
5757
},
5858
{
59-
"GetFileAssociations",
60-
("VectorStoreFileAssociation", "VectorStoreFileAssociationCollectionOptions", _paginationParamsToReplace)
59+
"GetVectorStoreFiles",
60+
("VectorStoreFile", "VectorStoreFileCollectionOptions", _paginationParamsToReplace)
6161
},
6262
{
63-
"GetFileAssociationsAsync",
64-
("VectorStoreFileAssociation", "VectorStoreFileAssociationCollectionOptions", _paginationParamsToReplace)
63+
"GetVectorStoreFilesAsync",
64+
("VectorStoreFile", "VectorStoreFileCollectionOptions", _paginationParamsToReplace)
6565
},
6666
{
67-
"GetFileAssociationsInBatch",
68-
("VectorStoreFileAssociation", "VectorStoreFileAssociationCollectionOptions", _paginationParamsToReplace)
67+
"GetVectorStoreFilesInBatch",
68+
("VectorStoreFile", "VectorStoreFileCollectionOptions", _paginationParamsToReplace)
6969
},
7070
{
71-
"GetFileAssociationsInBatchAsync",
72-
("VectorStoreFileAssociation", "VectorStoreFileAssociationCollectionOptions", _paginationParamsToReplace)
71+
"GetVectorStoreFilesInBatchAsync",
72+
("VectorStoreFile", "VectorStoreFileCollectionOptions", _paginationParamsToReplace)
7373
},
7474
{
7575
"GetContainers",

specification/client/models/vector-stores.models.tsp

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -44,27 +44,27 @@ model VectorStoreCollectionOptions {
4444
}
4545

4646

47-
alias VectorStoreFileAssociationCollectionOrderQueryParameter = {
47+
alias VectorStoreFileCollectionOrderQueryParameter = {
4848
/**
4949
* Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc`
5050
* for descending order.
5151
*/
52-
@query order?: VectorStoreFileAssociationCollectionOrder;
52+
@query order?: VectorStoreFileCollectionOrder;
5353
};
5454

55-
union VectorStoreFileAssociationCollectionOrder {
55+
union VectorStoreFileCollectionOrder {
5656
string,
5757
Ascending: "asc",
5858
Descending: "desc",
5959
}
6060

6161
@access(Access.public)
6262
@usage(Usage.input)
63-
model VectorStoreFileAssociationCollectionOptions {
63+
model VectorStoreFileCollectionOptions {
6464
...CollectionAfterQueryParameter,
6565
...CollectionBeforeQueryParameter,
6666
...CollectionLimitQueryParameter,
67-
...VectorStoreFileAssociationCollectionOrderQueryParameter,
67+
...VectorStoreFileCollectionOrderQueryParameter,
6868

6969
@query filter?: ListVectorStoreFilesFilter;
7070
}

specification/client/vector-stores.client.tsp

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -9,11 +9,8 @@ using Azure.ClientGenerator.Core;
99

1010
@@visibility(VectorStoreObject.metadata, Lifecycle.Read);
1111

12-
@@clientName(VectorStores.deleteVectorStoreFile, "RemoveFileFromStore");
13-
@@clientName(VectorStores.cancelVectorStoreFileBatch, "CancelBatchFileJob");
14-
@@clientName(VectorStores.getVectorStoreFile, "GetFileAssociation");
12+
@@clientName(VectorStores.deleteVectorStoreFile, "RemoveFileFromVectorStore");
1513
@@clientName(VectorStores.listVectorStores, "GetVectorStores");
16-
@@clientName(VectorStores.listVectorStoreFiles, "GetFileAssociations");
17-
@@clientName(VectorStores.listFilesInVectorStoreBatch, "GetFileAssociationsInBatch");
14+
@@clientName(VectorStores.listFilesInVectorStoreBatch, "GetVectorStoreFilesInBatch");
1815
@@clientName(VectorStores.createVectorStoreFile, "AddFileToVectorStore");
1916
@@clientName(VectorStores.createVectorStoreFileBatch, "AddFileBatchToVectorStore");

src/Custom/VectorStores/FileChunkingStrategy.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ public abstract partial class FileChunkingStrategy
99
/// Gets a value representing the default, automatic selection for a file chunking strategy.
1010
/// </summary>
1111
/// <remarks>
12-
/// This value is only valid on vector store requests. <see cref="VectorStoreFileAssociation"/> response instances
12+
/// This value is only valid on vector store requests. <see cref="VectorStoreFile"/> response instances
1313
/// will report the concrete chunking strategy applied after automatic selection.
1414
/// </remarks>
1515
public static FileChunkingStrategy Auto => _autoValue ??= new();

src/Custom/VectorStores/GeneratorStubs.cs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@ namespace OpenAI.VectorStores;
22

33
/// <summary> The options to configure how <see cref="VectorStore"/> objects are retrieved and paginated. </summary>
44
// Customization: fix namespace
5-
[CodeGenType("VectorStoreFileAssociationCollectionOptions")] public partial class VectorStoreFileAssociationCollectionOptions{ }
6-
[CodeGenType("VectorStoreFileAssociationCollectionOrder")] public partial struct VectorStoreFileAssociationCollectionOrder{ }
5+
[CodeGenType("VectorStoreFileCollectionOptions")] public partial class VectorStoreFileCollectionOptions{ }
6+
[CodeGenType("VectorStoreFileCollectionOrder")] public partial struct VectorStoreFileCollectionOrder{ }

src/Custom/VectorStores/Internal/GeneratorStubs.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ public static implicit operator BinaryContent(InternalCreateVectorStoreFileBatch
1818
[CodeGenType("CreateVectorStoreFileRequest")] internal partial class InternalCreateVectorStoreFileRequest { }
1919
[CodeGenType("DeleteVectorStoreFileResponseObject")] internal readonly partial struct InternalDeleteVectorStoreFileResponseObject { }
2020
[CodeGenType("DeleteVectorStoreResponseObject")] internal readonly partial struct InternalDeleteVectorStoreResponseObject { }
21-
[CodeGenType("ListVectorStoreFilesResponse")] internal partial class InternalListVectorStoreFilesResponse : IInternalListResponse<VectorStoreFileAssociation> { }
21+
[CodeGenType("ListVectorStoreFilesResponse")] internal partial class InternalListVectorStoreFilesResponse : IInternalListResponse<VectorStoreFile> { }
2222
[CodeGenType("ListVectorStoreFilesResponseObject")] internal readonly partial struct InternalListVectorStoreFilesResponseObject { }
2323
[CodeGenType("ListVectorStoresResponse")] internal partial class InternalListVectorStoresResponse : IInternalListResponse<VectorStore> { }
2424
[CodeGenType("ListVectorStoresResponseObject")] internal readonly partial struct InternalListVectorStoresResponseObject { }

src/Custom/VectorStores/VectorStoreClient.Protocol.cs

Lines changed: 0 additions & 85 deletions
This file was deleted.

0 commit comments

Comments
 (0)