Skip to content

Commit e4cbca4

Browse files
authored
Fix the issue where if you are referencing a non flow file by id it fails (#41)
1 parent 577de0e commit e4cbca4

File tree

1 file changed

+1
-1
lines changed
  • src/humanloop/eval_utils

1 file changed

+1
-1
lines changed

src/humanloop/eval_utils/run.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -274,7 +274,7 @@ def run_eval(
274274
try:
275275
type_ = typing.cast(FileType, file_.pop("type"))
276276
logger.info(
277-
f"{CYAN}Evaluating your {type_} function corresponding to `{file_['path']}` on Humanloop{RESET} \n\n"
277+
f"{CYAN}Evaluating your {type_} function corresponding to `{file_.get('path') or file_.get('id')}` on Humanloop{RESET} \n\n"
278278
)
279279
except KeyError as _:
280280
type_ = "flow"

0 commit comments

Comments
 (0)