Skip to content

Commit ee14d18

Browse files
committed
fixes
1 parent 43a8e92 commit ee14d18

File tree

2 files changed

+12
-8
lines changed

2 files changed

+12
-8
lines changed

components/openai/actions/create-vector-store-file/create-vector-store-file.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -62,10 +62,12 @@ export default {
6262
file_id: this.fileId,
6363
chunking_strategy: this.chunkingStrategy && {
6464
type: this.chunkingStrategy,
65-
static: this.chunkingStrategy === "static" && {
66-
max_chunk_size_tokens: this.maxChunkSizeTokens,
67-
chunk_overlap_tokens: this.chunkOverlapTokens,
68-
},
65+
static: this.chunkingStrategy === "static"
66+
? {
67+
max_chunk_size_tokens: this.maxChunkSizeTokens,
68+
chunk_overlap_tokens: this.chunkOverlapTokens,
69+
}
70+
: undefined,
6971
},
7072
},
7173
});

components/openai/actions/create-vector-store/create-vector-store.mjs

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -87,10 +87,12 @@ export default {
8787
},
8888
chunking_strategy: this.chunkingStrategy && {
8989
type: this.chunkingStrategy,
90-
static: this.chunkingStrategy === "static" && {
91-
max_chunk_size_tokens: this.maxChunkSizeTokens,
92-
chunk_overlap_tokens: this.chunkOverlapTokens,
93-
},
90+
static: this.chunkingStrategy === "static"
91+
? {
92+
max_chunk_size_tokens: this.maxChunkSizeTokens,
93+
chunk_overlap_tokens: this.chunkOverlapTokens,
94+
}
95+
: undefined,
9496
},
9597
metadata: this.metadata,
9698
},

0 commit comments

Comments
 (0)