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