From 50a17bb4f9fea09af5bd054f82320d23b288efa4 Mon Sep 17 00:00:00 2001 From: partoneplay Date: Sat, 7 Dec 2024 10:36:09 +0800 Subject: [PATCH] delete unreachable code --- lightrag/llm.py | 18 ------------------ 1 file changed, 18 deletions(-) diff --git a/lightrag/llm.py b/lightrag/llm.py index 63913c90..d02d5350 100644 --- a/lightrag/llm.py +++ b/lightrag/llm.py @@ -455,24 +455,6 @@ async def ollama_model_if_cache( ), ) return result - result = response["message"]["content"] - - # Save to cache - await save_to_cache( - hashing_kv, - CacheData( - args_hash=args_hash, - content=result, - model=model, - prompt=prompt, - quantized=quantized, - min_val=min_val, - max_val=max_val, - mode=mode, - ), - ) - - return result @lru_cache(maxsize=1)