Skip to content

Commit

Permalink
Missing input for is cache breakpoint
Browse files Browse the repository at this point in the history
  • Loading branch information
abrenneke committed Sep 4, 2024
1 parent b331b4c commit b71c26f
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions packages/core/src/model/nodes/PromptNode.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,6 +91,14 @@ export class PromptNodeImpl extends NodeImpl<PromptNode> {
});
}

if (this.data.useIsCacheBreakpointInput) {
inputs.push({
id: 'isCacheBreakpoint' as PortId,
title: 'Is Cache Breakpoint',
dataType: 'boolean',
});
}

// Extract inputs from promptText, everything like {{input}}
const inputNames = [...new Set(this.chartNode.data.promptText.match(/\{\{([^}]+)\}\}/g))];
inputs = [
Expand Down

0 comments on commit b71c26f

Please sign in to comment.