Skip to content

Commit

Permalink
Use the old API for referencing evaluators, non-breaking (#1257)
Browse files Browse the repository at this point in the history
  • Loading branch information
ssbushi authored Nov 12, 2024
1 parent f47a4a8 commit 0441ea5
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion genkit-tools/cli/src/commands/eval-flow.ts
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,12 @@ export const evalFlow = new Command('eval:flow')
if (!options.evaluators) {
evaluatorActions = await getAllEvaluatorActions(manager);
} else {
const evalActionKeys = options.evaluators
.split(',')
.map((k) => `/evaluator/${k}`);
evaluatorActions = await getMatchingEvaluatorActions(
manager,
options.evaluators.split(',')
evalActionKeys
);
}
logger.debug(
Expand Down
5 changes: 4 additions & 1 deletion genkit-tools/cli/src/commands/eval-run.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,9 +71,12 @@ export const evalRun = new Command('eval:run')
if (!options.evaluators) {
evaluatorActions = await getAllEvaluatorActions(manager);
} else {
const evalActionKeys = options.evaluators
.split(',')
.map((k) => `/evaluator/${k}`);
evaluatorActions = await getMatchingEvaluatorActions(
manager,
options.evaluators.split(',')
evalActionKeys
);
}
logger.info(
Expand Down

0 comments on commit 0441ea5

Please sign in to comment.