Skip to content

Commit

Permalink
community[patch]: Fix error message when litellm is not installed (#1…
Browse files Browse the repository at this point in the history
…6316)

The error message was mentioning the wrong package. I updated it to the
correct one.
  • Loading branch information
jeremi authored Jan 24, 2024
1 parent b3ed98d commit 9e95699
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions libs/community/langchain_community/chat_models/litellm.py
Original file line number Diff line number Diff line change
Expand Up @@ -246,8 +246,8 @@ def validate_environment(cls, values: Dict) -> Dict:
import litellm
except ImportError:
raise ChatLiteLLMException(
"Could not import google.generativeai python package. "
"Please install it with `pip install google-generativeai`"
"Could not import litellm python package. "
"Please install it with `pip install litellm`"
)

values["openai_api_key"] = get_from_dict_or_env(
Expand Down

0 comments on commit 9e95699

Please sign in to comment.