File tree Expand file tree Collapse file tree
examples/nodejs/examples/chunk
packages/langbase/src/langbase Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -21,7 +21,6 @@ async function main() {
2121 contentType : 'text/plain' ,
2222 chunkMaxLength : '1024' ,
2323 chunkOverlap : '256' ,
24- separator : '\n' ,
2524 } ) ;
2625
2726 console . log ( results ) ;
Original file line number Diff line number Diff line change @@ -394,7 +394,6 @@ export interface ChunkOptions {
394394 contentType : ContentType ;
395395 chunkMaxLength ?: string ;
396396 chunkOverlap ?: string ;
397- separator ?: string ;
398397}
399398
400399export type ChunkResponse = string [ ] ;
@@ -974,7 +973,6 @@ export class Langbase {
974973 formData . append ( 'chunkMaxLength' , options . chunkMaxLength ) ;
975974 if ( options . chunkOverlap )
976975 formData . append ( 'chunkOverlap' , options . chunkOverlap ) ;
977- if ( options . separator ) formData . append ( 'separator' , options . separator ) ;
978976
979977 const response = await fetch ( `${ this . baseUrl } /v1/chunk` , {
980978 method : 'POST' ,
You can’t perform that action at this time.
0 commit comments