precise edit blocks prompting language

This commit is contained in:
Paul Gauthier 2023-08-09 11:57:00 -03:00
parent 2c53c153b8
commit 9e64e7bb9d
2 changed files with 6 additions and 4 deletions

View file

@ -13,7 +13,7 @@ from openai.error import (
Timeout,
)
CACHE_PATH = ".aider.send.cache.v1"
CACHE_PATH = "~/.aider.send.cache.v1"
CACHE = Cache(CACHE_PATH)
@ -54,11 +54,8 @@ def send_with_retries(model, messages, functions, stream):
hash_object = hashlib.sha1(key)
if not stream and key in CACHE:
print("hit", key)
return hash_object, CACHE[key]
print("miss", key)
res = openai.ChatCompletion.create(**kwargs)
if not stream: