Skip to content

Commit

Permalink
Update llm_utils to check llama use
Browse files Browse the repository at this point in the history
  • Loading branch information
TPLin22 authored Dec 20, 2024
1 parent d64a228 commit bda45b2
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 @@ -44,7 +44,8 @@ def md5_hash(input_string: str) -> str:
logger.warning("openai is not installed.")

try:
from llama import Llama
if LLM_SETTINGS.use_llama2:
from llama import Llama
except ImportError:
logger.warning("llama is not installed.")

Expand Down

0 comments on commit bda45b2

Please sign in to comment.