Skip to content

Commit

Permalink
fix: cache key as string
Browse files Browse the repository at this point in the history
  • Loading branch information
Lap1n committed Sep 4, 2024
1 parent 72377db commit 8ae4086
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion outlines/caching.py
Original file line number Diff line number Diff line change
Expand Up @@ -126,7 +126,8 @@ def wrapper(*args, **kwargs):

def __cache_key__(*args, **kwargs):
"""Make key for cache given function arguments."""
return args_to_key(base, args, kwargs, typed, ignore)
# return args_to_key(base, args, kwargs, typed, ignore)
return str(args_to_key(base, args, kwargs, typed, ignore))

wrapper.__cache_key__ = __cache_key__ # type: ignore
wrapper.__memory__ = memory # type: ignore
Expand Down

0 comments on commit 8ae4086

Please sign in to comment.