File tree Expand file tree Collapse file tree 2 files changed +12
-8
lines changed
components/openai/actions Expand file tree Collapse file tree 2 files changed +12
-8
lines changed Original file line number Diff line number Diff 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 } ) ;
Original file line number Diff line number Diff 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 } ,
You can’t perform that action at this time.
0 commit comments