Skip to content

Commit

Permalink
Merge pull request #513 from theClassLight/GG/pr
Browse files Browse the repository at this point in the history
fix(utils): 修复缓存未正确启用的问题
  • Loading branch information
LarFii authored Dec 26, 2024
2 parents 1ca3f64 + 0429346 commit 1d3d4c0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion lightrag/utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -449,7 +449,7 @@ def dequantize_embedding(

async def handle_cache(hashing_kv, args_hash, prompt, mode="default"):
"""Generic cache handling function"""
if hashing_kv is None:
if hashing_kv is None or not hashing_kv.global_config.get("enable_l`lm_cache"):
return None, None, None, None

# For naive mode, only use simple cache matching
Expand Down

0 comments on commit 1d3d4c0

Please sign in to comment.