Magicyuan commited on
Commit
1a2ad97
·
1 Parent(s): 4c1072b

移除kwargs中的hashing_kv参数取为变量

Browse files
Files changed (1) hide show
  1. lightrag/llm.py +2 -2
lightrag/llm.py CHANGED
@@ -97,7 +97,7 @@ async def openai_complete_if_cache(
97
 
98
  # Save to cache
99
  await save_to_cache(
100
- kwargs.get("hashing_kv"),
101
  CacheData(
102
  args_hash=args_hash,
103
  content=content,
@@ -271,7 +271,7 @@ async def bedrock_complete_if_cache(
271
 
272
  # Save to cache
273
  await save_to_cache(
274
- kwargs.get("hashing_kv"),
275
  CacheData(
276
  args_hash=args_hash,
277
  content=response["output"]["message"]["content"][0]["text"],
 
97
 
98
  # Save to cache
99
  await save_to_cache(
100
+ hashing_kv,
101
  CacheData(
102
  args_hash=args_hash,
103
  content=content,
 
271
 
272
  # Save to cache
273
  await save_to_cache(
274
+ hashing_kv,
275
  CacheData(
276
  args_hash=args_hash,
277
  content=response["output"]["message"]["content"][0]["text"],