Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 1 addition & 3 deletions nodes/LlmWhisperer/LlmWhisperer.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -264,8 +264,7 @@ export class LlmWhisperer implements INodeType {
);
}

const binaryData = items[i].binary![fileContents];
const fileBuffer = Buffer.from(binaryData.data, 'base64');
const fileBuffer = await this.helpers.getBinaryDataBuffer(i, fileContents);

const host = this.getNodeParameter('host', i) as string;
const mode = this.getNodeParameter('mode', i) as string;
Expand Down Expand Up @@ -307,7 +306,6 @@ export class LlmWhisperer implements INodeType {
file_name: fileName,
add_line_nos: addLineNumbers,
},
accept: 'application/json',
};


Expand Down
2 changes: 1 addition & 1 deletion nodes/Unstract/Unstract.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -185,7 +185,7 @@ export class Unstract implements INodeType {
}

const binaryData = items[i].binary![binaryPropertyName];
const fileBuffer = Buffer.from(binaryData.data, 'base64');
const fileBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);

const timeout = this.getNodeParameter('timeout', i) as number;
const deploymentName = this.getNodeParameter('deployment_name', i) as string;
Expand Down
2 changes: 1 addition & 1 deletion nodes/UnstractHitlPush/UnstractHitlPush.node.ts
Original file line number Diff line number Diff line change
Expand Up @@ -193,7 +193,7 @@ export class UnstractHitlPush implements INodeType {
}

const binaryData = items[i].binary![binaryPropertyName];
const fileBuffer = Buffer.from(binaryData.data, 'base64');
const fileBuffer = await this.helpers.getBinaryDataBuffer(i, binaryPropertyName);

const timeout = this.getNodeParameter('timeout', i) as number;
const deploymentName = this.getNodeParameter('deployment_name', i) as string;
Expand Down
Loading