Skip to content

Commit

Permalink
fix document check wrong node return format
Browse files Browse the repository at this point in the history
  • Loading branch information
au-re committed Oct 31, 2023
1 parent d17b8d2 commit 54858d4
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,8 @@ export const documentCheck: NodeConfig = {
},
outputs: [
{
id: "list",
name: "List",
id: "result",
name: "Result",
description: "A list, checklist or other information about the document",
type: "text",
defaultValue: "",
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ export interface LLMCompletionInput {
}

export interface LLMCompletionOutput {
completion: string;
result: string;
}

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

return {
completion: result || "",
result: result || "",
};
};

Expand Down

0 comments on commit 54858d4

Please sign in to comment.