(attr, args)
| 153 | |
| 154 | ### SQLite-based caching of LM responses |
| 155 | def hash_args(attr, args): |
| 156 | dat = json.dumps([attr] + list(args)) |
| 157 | return hashlib.sha256(dat.encode("utf-8")).hexdigest() |
| 158 | |
| 159 | |
| 160 | class CacheHook: |
no outgoing calls
no test coverage detected