Skip to content

Commit

Permalink
add 60 days ttl to keys because the default for new litellm config is…
Browse files Browse the repository at this point in the history
… too low
  • Loading branch information
semio committed Nov 28, 2024
1 parent 3aaef54 commit 43647b4
Showing 1 changed file with 3 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,9 @@
# enable caching in the evaluator.
# litellm.cache = litellm.Cache()
# to not use Redis for caching: uncomment the line above and comment the line below.
litellm.cache = litellm.Cache(type="redis", host="127.0.0.1", port=26379)
litellm.cache = litellm.Cache(
type="redis", host="127.0.0.1", port=26379, ttl=60 * 24 * 3600
)


def model_compare(
Expand Down

0 comments on commit 43647b4

Please sign in to comment.