Skip to content

Commit d4d9f82

Browse files
author
Andrei Bratu
committed
allow online evaluators in run utility
1 parent b10773c commit d4d9f82

1 file changed

Lines changed: 3 additions & 1 deletion

File tree

src/eval_utils/run.ts

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -285,7 +285,9 @@ export async function runEval(
285285
// Upsert the local Evaluators; other Evaluators are just referenced by `path` or `id`
286286
let localEvaluators: [EvaluatorResponse, Function][] = [];
287287
if (evaluators) {
288-
const evaluatorsWithCallable = evaluators.filter((e) => e.callable !== null);
288+
const evaluatorsWithCallable = evaluators.filter(
289+
(e) => e.callable !== undefined,
290+
);
289291

290292
if (evaluatorsWithCallable.length > 0 && function_ == null) {
291293
throw new Error(

0 commit comments

Comments
 (0)