From 4da7dd186526b3215a5c3430b66824a95f996c1e Mon Sep 17 00:00:00 2001 From: magicyuan876 <317617749@qq.com> Date: Fri, 6 Dec 2024 15:35:09 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4kwargs=E4=B8=AD=E7=9A=84hashi?= =?UTF-8?q?ng=5Fkv=E5=8F=82=E6=95=B0=E5=8F=96=E4=B8=BA=E5=8F=98=E9=87=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/llm.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightrag/llm.py b/lightrag/llm.py index 09e9fd74..63913c90 100644 --- a/lightrag/llm.py +++ b/lightrag/llm.py @@ -97,7 +97,7 @@ async def openai_complete_if_cache( # Save to cache await save_to_cache( - kwargs.get("hashing_kv"), + hashing_kv, CacheData( args_hash=args_hash, content=content, @@ -271,7 +271,7 @@ async def bedrock_complete_if_cache( # Save to cache await save_to_cache( - kwargs.get("hashing_kv"), + hashing_kv, CacheData( args_hash=args_hash, content=response["output"]["message"]["content"][0]["text"],