Skip to content

Commit d6a09cc

Browse files
committed
👌 IMPROVE: Chunk inputs
1 parent 6594041 commit d6a09cc

2 files changed

Lines changed: 0 additions & 3 deletions

File tree

examples/nodejs/examples/chunk/index.ts

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff 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);

packages/langbase/src/langbase/langbase.ts

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -394,7 +394,6 @@ export interface ChunkOptions {
394394
contentType: ContentType;
395395
chunkMaxLength?: string;
396396
chunkOverlap?: string;
397-
separator?: string;
398397
}
399398

400399
export 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',

0 commit comments

Comments
 (0)