zrguo
commited on
Update utils.py
Browse files- lightrag/utils.py +1 -1
lightrag/utils.py
CHANGED
|
@@ -449,7 +449,7 @@ def dequantize_embedding(
|
|
| 449 |
|
| 450 |
async def handle_cache(hashing_kv, args_hash, prompt, mode="default"):
|
| 451 |
"""Generic cache handling function"""
|
| 452 |
-
if hashing_kv is None or not hashing_kv.global_config.get("
|
| 453 |
return None, None, None, None
|
| 454 |
|
| 455 |
# For naive mode, only use simple cache matching
|
|
|
|
| 449 |
|
| 450 |
async def handle_cache(hashing_kv, args_hash, prompt, mode="default"):
|
| 451 |
"""Generic cache handling function"""
|
| 452 |
+
if hashing_kv is None or not hashing_kv.global_config.get("enable_llm_cache"):
|
| 453 |
return None, None, None, None
|
| 454 |
|
| 455 |
# For naive mode, only use simple cache matching
|