fix: avoid warning for missing llama installation when not in use (#509)

* Update llm_utils to check llama use

* modify the logic of the condition
This commit is contained in:
Haoran Pan
2024-12-20 17:54:13 +08:00
committed by GitHub
parent cb66555a9c
commit 0a89784116
+2 -1
View File
@@ -46,7 +46,8 @@ except ImportError:
try:
from llama import Llama
except ImportError:
logger.warning("llama is not installed.")
if LLM_SETTINGS.use_llama2:
logger.warning("llama is not installed.")
class ConvManager: