Skip to content

Commit 4e0ec10

Browse files
chore(types): rename vector store chunking strategy (#1263)
1 parent abbdb98 commit 4e0ec10

File tree

5 files changed

+8
-8
lines changed

5 files changed

+8
-8
lines changed

api.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -282,7 +282,7 @@ Types:
282282
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">OtherFileChunkingStrategyObject</a></code>
283283
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategy</a></code>
284284
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyObject</a></code>
285-
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyParam</a></code>
285+
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyObjectParam</a></code>
286286
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">VectorStore</a></code>
287287
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">VectorStoreDeleted</a></code>
288288

src/resources/beta/beta.ts

+2-2
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ import {
4545
OtherFileChunkingStrategyObject,
4646
StaticFileChunkingStrategy,
4747
StaticFileChunkingStrategyObject,
48-
StaticFileChunkingStrategyParam,
48+
StaticFileChunkingStrategyObjectParam,
4949
VectorStore,
5050
VectorStoreCreateParams,
5151
VectorStoreDeleted,
@@ -80,7 +80,7 @@ export declare namespace Beta {
8080
type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject,
8181
type StaticFileChunkingStrategy as StaticFileChunkingStrategy,
8282
type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject,
83-
type StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam,
83+
type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam,
8484
type VectorStore as VectorStore,
8585
type VectorStoreDeleted as VectorStoreDeleted,
8686
VectorStoresPage as VectorStoresPage,

src/resources/beta/index.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ export {
4343
type OtherFileChunkingStrategyObject,
4444
type StaticFileChunkingStrategy,
4545
type StaticFileChunkingStrategyObject,
46-
type StaticFileChunkingStrategyParam,
46+
type StaticFileChunkingStrategyObjectParam,
4747
type VectorStore,
4848
type VectorStoreDeleted,
4949
type VectorStoreCreateParams,

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

+1-1
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

+3-3
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)