Skip to content

Commit

Permalink
update pip install -U "gradientai>=1.4.0"
Browse files Browse the repository at this point in the history
  • Loading branch information
michaelfeil committed Dec 18, 2023
1 parent 5482bf4 commit 2dbfe9a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions libs/community/langchain_community/embeddings/gradient_ai.py
Original file line number Diff line number Diff line change
Expand Up @@ -67,18 +67,18 @@ def validate_environment(cls, values: Dict) -> Dict:
)

values["gradient_api_url"] = get_from_dict_or_env(
values, "gradient_api_url", "GRADIENT_API_URL", default=None
values, "gradient_api_url", "GRADIENT_API_URL"
)
try:
import gradientai
except ImportError:
raise ImportError(
"GradientEmbeddings requires `pip install gradientai>=1.4.0`."
'GradientEmbeddings requires `pip install -U "gradientai>=1.4.0"`.'
)

if parse(gradientai.__version__) < parse("1.4.0"):
raise ImportError(
"GradientEmbeddings requires `pip install gradientai>=1.4.0`."
'GradientEmbeddings requires `pip install -U "gradientai>=1.4.0"`.'
)

gradient = gradientai.Gradient(
Expand Down

0 comments on commit 2dbfe9a

Please sign in to comment.