fix: change ddg to DDGS (#6480)

This commit updates the duckduckgo search utility by using a more
accurate name in the import statement.
master
Zeeland 11 months ago committed by GitHub
parent 8cd5f65a6f
commit ad7089a6d0
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -30,7 +30,7 @@ class DuckDuckGoSearchAPIWrapper(BaseModel):
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. "

Loading…
Cancel
Save