From 87e5c27c85227adad7f408a0b0e7e00bd2e0c9e7 Mon Sep 17 00:00:00 2001 From: Daniel Lenton Date: Thu, 7 Nov 2024 11:48:52 +0000 Subject: [PATCH] small bug fix in _handle_cache. --- unify/evals/utils/logging.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/unify/evals/utils/logging.py b/unify/evals/utils/logging.py index 32dd11e..657b5da 100644 --- a/unify/evals/utils/logging.py +++ b/unify/evals/utils/logging.py @@ -54,7 +54,7 @@ def wrapped(*args, **kwargs): if ret is not None: return ret ret = fn(*args, **kwargs) - _write_to_cache(fn_name="log", kw=combined_kw, response=ret) + _write_to_cache(fn_name=fn.__name__, kw=combined_kw, response=ret) return ret return wrapped