Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore(types): rename vector store chunking strategy #1263

Merged
merged 1 commit into from
Jan 14, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -282,7 +282,7 @@ Types:
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">OtherFileChunkingStrategyObject</a></code>
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategy</a></code>
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyObject</a></code>
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyParam</a></code>
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">StaticFileChunkingStrategyObjectParam</a></code>
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">VectorStore</a></code>
- <code><a href="./src/resources/beta/vector-stores/vector-stores.ts">VectorStoreDeleted</a></code>

Expand Down
4 changes: 2 additions & 2 deletions src/resources/beta/beta.ts
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ import {
OtherFileChunkingStrategyObject,
StaticFileChunkingStrategy,
StaticFileChunkingStrategyObject,
StaticFileChunkingStrategyParam,
StaticFileChunkingStrategyObjectParam,
VectorStore,
VectorStoreCreateParams,
VectorStoreDeleted,
Expand Down Expand Up @@ -80,7 +80,7 @@ export declare namespace Beta {
type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject,
type StaticFileChunkingStrategy as StaticFileChunkingStrategy,
type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject,
type StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam,
type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam,
type VectorStore as VectorStore,
type VectorStoreDeleted as VectorStoreDeleted,
VectorStoresPage as VectorStoresPage,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/beta/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ export {
type OtherFileChunkingStrategyObject,
type StaticFileChunkingStrategy,
type StaticFileChunkingStrategyObject,
type StaticFileChunkingStrategyParam,
type StaticFileChunkingStrategyObjectParam,
type VectorStore,
type VectorStoreDeleted,
type VectorStoreCreateParams,
Expand Down
2 changes: 1 addition & 1 deletion src/resources/beta/vector-stores/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ export {
type OtherFileChunkingStrategyObject,
type StaticFileChunkingStrategy,
type StaticFileChunkingStrategyObject,
type StaticFileChunkingStrategyParam,
type StaticFileChunkingStrategyObjectParam,
type VectorStore,
type VectorStoreDeleted,
type VectorStoreCreateParams,
Expand Down
6 changes: 3 additions & 3 deletions src/resources/beta/vector-stores/vector-stores.ts
Original file line number Diff line number Diff line change
Expand Up @@ -116,7 +116,7 @@ export type FileChunkingStrategy = StaticFileChunkingStrategyObject | OtherFileC
* The chunking strategy used to chunk the file(s). If not set, will use the `auto`
* strategy. Only applicable if `file_ids` is non-empty.
*/
export type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticFileChunkingStrategyParam;
export type FileChunkingStrategyParam = AutoFileChunkingStrategyParam | StaticFileChunkingStrategyObjectParam;

/**
* This is returned when the chunking strategy is unknown. Typically, this is
Expand Down Expand Up @@ -154,7 +154,7 @@ export interface StaticFileChunkingStrategyObject {
type: 'static';
}

export interface StaticFileChunkingStrategyParam {
export interface StaticFileChunkingStrategyObjectParam {
static: StaticFileChunkingStrategy;

/**
Expand Down Expand Up @@ -397,7 +397,7 @@ export declare namespace VectorStores {
type OtherFileChunkingStrategyObject as OtherFileChunkingStrategyObject,
type StaticFileChunkingStrategy as StaticFileChunkingStrategy,
type StaticFileChunkingStrategyObject as StaticFileChunkingStrategyObject,
type StaticFileChunkingStrategyParam as StaticFileChunkingStrategyParam,
type StaticFileChunkingStrategyObjectParam as StaticFileChunkingStrategyObjectParam,
type VectorStore as VectorStore,
type VectorStoreDeleted as VectorStoreDeleted,
VectorStoresPage as VectorStoresPage,
Expand Down