Skip to content

Commit ad7089a

Browse files
fix: change ddg to DDGS (#6480)
This commit updates the duckduckgo search utility by using a more accurate name in the import statement.
1 parent 8cd5f65 commit ad7089a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

langchain/utilities/duckduckgo_search.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ class Config:
3030
def validate_environment(cls, values: Dict) -> Dict:
3131
"""Validate that python package exists in environment."""
3232
try:
33-
from duckduckgo_search import ddg # noqa: F401
33+
from duckduckgo_search import DDGS # noqa: F401
3434
except ImportError:
3535
raise ValueError(
3636
"Could not import duckduckgo-search python package. "

0 commit comments

Comments
 (0)