From 34f7e5e30a787ad247a7c35f2438d3d9ff381bd2 Mon Sep 17 00:00:00 2001 From: Peter Hayes Date: Wed, 11 Dec 2024 12:26:33 +0000 Subject: [PATCH] Fix the issue where if you are referencing a non flow file by id it fails --- src/humanloop/eval_utils/run.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/humanloop/eval_utils/run.py b/src/humanloop/eval_utils/run.py index ad1bb092..ff6dce61 100644 --- a/src/humanloop/eval_utils/run.py +++ b/src/humanloop/eval_utils/run.py @@ -274,7 +274,7 @@ def run_eval( try: type_ = typing.cast(FileType, file_.pop("type")) logger.info( - f"{CYAN}Evaluating your {type_} function corresponding to `{file_['path']}` on Humanloop{RESET} \n\n" + f"{CYAN}Evaluating your {type_} function corresponding to `{file_.get('path') or file_.get('id')}` on Humanloop{RESET} \n\n" ) except KeyError as _: type_ = "flow"