From 779ed604d881d262196148893c3765af9c7e19f1 Mon Sep 17 00:00:00 2001 From: Magic_yuan <317617749@qq.com> Date: Sun, 8 Dec 2024 17:38:49 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B8=85=E7=90=86=E5=A4=9A=E4=BD=99=E6=B3=A8?= =?UTF-8?q?=E9=87=8A?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- lightrag/llm.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/lightrag/llm.py b/lightrag/llm.py index 9c94fe6c..b2bb99b7 100644 --- a/lightrag/llm.py +++ b/lightrag/llm.py @@ -314,8 +314,7 @@ async def ollama_model_if_cache( return inner() else: - result = response["message"]["content"] - return result + return response["message"]["content"] @lru_cache(maxsize=1)