Commit
·
4c06d73
1
Parent(s):
2882777
delete unreachable code
Browse files- lightrag/llm.py +0 -18
lightrag/llm.py
CHANGED
@@ -455,24 +455,6 @@ async def ollama_model_if_cache(
|
|
455 |
),
|
456 |
)
|
457 |
return result
|
458 |
-
result = response["message"]["content"]
|
459 |
-
|
460 |
-
# Save to cache
|
461 |
-
await save_to_cache(
|
462 |
-
hashing_kv,
|
463 |
-
CacheData(
|
464 |
-
args_hash=args_hash,
|
465 |
-
content=result,
|
466 |
-
model=model,
|
467 |
-
prompt=prompt,
|
468 |
-
quantized=quantized,
|
469 |
-
min_val=min_val,
|
470 |
-
max_val=max_val,
|
471 |
-
mode=mode,
|
472 |
-
),
|
473 |
-
)
|
474 |
-
|
475 |
-
return result
|
476 |
|
477 |
|
478 |
@lru_cache(maxsize=1)
|
|
|
455 |
),
|
456 |
)
|
457 |
return result
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
458 |
|
459 |
|
460 |
@lru_cache(maxsize=1)
|