Skip to content

Commit

Permalink
fix: avoid warning for missing llama installation when not in use (mi…
Browse files Browse the repository at this point in the history
…crosoft#509)

* Update llm_utils to check llama use

* modify the logic of the condition
  • Loading branch information
TPLin22 authored Dec 20, 2024
1 parent d64a228 commit 5ec3422
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion rdagent/oai/llm_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -46,7 +46,8 @@ def md5_hash(input_string: str) -> str:
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:
Expand Down

0 comments on commit 5ec3422

Please sign in to comment.