Skip to content

Commit

Permalink
chore(types): rename vector store chunking strategy (#1263)
Browse files Browse the repository at this point in the history
  • Loading branch information
stainless-app[bot] committed Jan 17, 2025
1 parent 2bc9652 commit 5df7738
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
2 changes: 1 addition & 1 deletion api.md
Original file line number Diff line number Diff line change
Expand Up @@ -283,7 +283,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 @@ -48,7 +48,7 @@ import {
OtherFileChunkingStrategyObject,
StaticFileChunkingStrategy,
StaticFileChunkingStrategyObject,
StaticFileChunkingStrategyParam,
StaticFileChunkingStrategyObjectParam,
VectorStore,
VectorStoreCreateParams,
VectorStoreDeleted,
Expand Down Expand Up @@ -85,7 +85,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 @@ -46,7 +46,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

0 comments on commit 5df7738

Please sign in to comment.