Skip to content

Commit

Permalink
fix: change ddg to DDGS (langchain-ai#6480)
Browse files Browse the repository at this point in the history
This commit updates the duckduckgo search utility by using a more
accurate name in the import statement.
  • Loading branch information
Undertone0809 authored Jun 20, 2023
1 parent 8cd5f65 commit ad7089a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion langchain/utilities/duckduckgo_search.py
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class Config:
def validate_environment(cls, values: Dict) -> Dict:
"""Validate that python package exists in environment."""
try:
from duckduckgo_search import ddg # noqa: F401
from duckduckgo_search import DDGS # noqa: F401
except ImportError:
raise ValueError(
"Could not import duckduckgo-search python package. "
Expand Down

0 comments on commit ad7089a

Please sign in to comment.