Skip to content

Commit 5df7738

Browse files
chore(types): rename vector store chunking strategy (#1263)
1 parent 2bc9652 commit 5df7738

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

api.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -283,7 +283,7 @@ Types:
283283
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">OtherFileChunkingStrategyObject</a></code>
284284
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategy</a></code>
285285
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyObject</a></code>
286-
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyParam</a></code>
286+
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyObjectParam</a></code>
287287
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">VectorStore</a></code>
288288
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">VectorStoreDeleted</a></code>
289289

src/resources/beta/beta.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ import {
4848
OtherFileChunkingStrategyObject,
4949
StaticFileChunkingStrategy,
5050
StaticFileChunkingStrategyObject,
51-
StaticFileChunkingStrategyParam,
51+
StaticFileChunkingStrategyObjectParam,
5252
VectorStore,
5353
VectorStoreCreateParams,
5454
VectorStoreDeleted,
@@ -85,7 +85,7 @@ export declare namespace Beta {
8585
type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject,
8686
type StaticFileChunkingStrategy as StaticFileChunkingStrategy,
8787
type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject,
88-
type StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam,
88+
type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam,
8989
type VectorStore as VectorStore,
9090
type VectorStoreDeleted as VectorStoreDeleted,
9191
VectorStoresPage as VectorStoresPage,

src/resources/beta/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -46,7 +46,7 @@ export {
4646
type OtherFileChunkingStrategyObject,
4747
type StaticFileChunkingStrategy,
4848
type StaticFileChunkingStrategyObject,
49-
type StaticFileChunkingStrategyParam,
49+
type StaticFileChunkingStrategyObjectParam,
5050
type VectorStore,
5151
type VectorStoreDeleted,
5252
type VectorStoreCreateParams,

src/resources/beta/vector-stores/index.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ export {
2323
type OtherFileChunkingStrategyObject,
2424
type StaticFileChunkingStrategy,
2525
type StaticFileChunkingStrategyObject,
26-
type StaticFileChunkingStrategyParam,
26+
type StaticFileChunkingStrategyObjectParam,
2727
type VectorStore,
2828
type VectorStoreDeleted,
2929
type VectorStoreCreateParams,

src/resources/beta/vector-stores/vector-stores.ts

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ export type FileChunkingStrategy = StaticFileChunkingStrategyObject | OtherFileC
116116
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
117117
* strategy. Only applicable if `file_ids` is non-empty.
118118
*/
119-
export type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticFileChunkingStrategyParam;
119+
export type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticFileChunkingStrategyObjectParam;
120120

121121
/**
122122
* This is returned when the chunking strategy is unknown. Typically, this is
@@ -154,7 +154,7 @@ export interface StaticFileChunkingStrategyObject {
154154
type: 'static';
155155
}
156156

157-
export interface StaticFileChunkingStrategyParam {
157+
export interface StaticFileChunkingStrategyObjectParam {
158158
static: StaticFileChunkingStrategy;
159159

160160
/**
@@ -397,7 +397,7 @@ export declare namespace VectorStores {
397397
type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject,
398398
type StaticFileChunkingStrategy as StaticFileChunkingStrategy,
399399
type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject,
400-
type StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam,
400+
type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam,
401401
type VectorStore as VectorStore,
402402
type VectorStoreDeleted as VectorStoreDeleted,
403403
VectorStoresPage as VectorStoresPage,

0 commit comments

Comments
 (0)