chore: remove CACHE logic from sendchat and models files

This commit is contained in:
Paul Gauthier (aider) 2025-02-04 11:34:38 -08:00
parent db694b20df
commit c3beaedaa6
2 changed files with 1 additions and 12 deletions

View file

@ -551,13 +551,8 @@ class Model(ModelSettings):
key = json.dumps(kwargs, sort_keys=True).encode()
# dump(kwargs)
hash_object = hashlib.sha1(key)
from aider.sendchat import CACHE, litellm
if not stream and CACHE is not None and key in CACHE:
return hash_object, CACHE[key]
from aider.sendchat import litellm
res = litellm.completion(**kwargs)
if not stream and CACHE is not None:
CACHE[key] = res
return hash_object, res
def simple_send_with_retries(self, messages):

View file

@ -1,12 +1,6 @@
from aider.dump import dump # noqa: F401
from aider.utils import format_messages
# from diskcache import Cache
CACHE_PATH = "~/.aider.send.cache.v1"
CACHE = None
# CACHE = Cache(CACHE_PATH)
RETRY_TIMEOUT = 60