Skip to content

Commit 54858d4

Browse files
committed
fix document check wrong node return format
1 parent d17b8d2 commit 54858d4

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

packages/@pufflig/ps-nodes-config/src/modifiers/document_check/document_check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,8 @@ export const documentCheck: NodeConfig = {
2323
},
2424
outputs: [
2525
{
26-
id: "list",
27-
name: "List",
26+
id: "result",
27+
name: "Result",
2828
description: "A list, checklist or other information about the document",
2929
type: "text",
3030
defaultValue: "",

packages/@pufflig/ps-nodes/src/modifiers/document_check/document_check.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export interface LLMCompletionInput {
1414
}
1515

1616
export interface LLMCompletionOutput {
17-
completion: string;
17+
result: string;
1818
}
1919

2020
export const execute: Execute<LLMCompletionInput, LLMCompletionOutput> = async (input, options = {}) => {
@@ -40,7 +40,7 @@ export const execute: Execute<LLMCompletionInput, LLMCompletionOutput> = async (
4040
});
4141

4242
return {
43-
completion: result || "",
43+
result: result || "",
4444
};
4545
};
4646

0 commit comments

Comments
 (0)