fix: if rules
This commit is contained in:
parent
06b76d752f
commit
a6dd5a83de
1 changed files with 4 additions and 4 deletions
|
|
@ -19,10 +19,10 @@ const evaluateIf = (condition: string, activePaths: string[]) => {
|
|||
try {
|
||||
debugger;
|
||||
|
||||
const evaluate = compileExpression(`current.model == "gpt-4"`, {
|
||||
// extraFunctions: {
|
||||
// glob: createGlobFunction(activePaths),
|
||||
// },
|
||||
const evaluate = compileExpression(expression, {
|
||||
extraFunctions: {
|
||||
glob: createGlobFunction(activePaths),
|
||||
},
|
||||
constants: {
|
||||
current: {
|
||||
model: "gpt-4",
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue