dify icon indicating copy to clipboard operation
dify copied to clipboard

build(deps): bump duckduckgo_search from 6.3.x to 7.3.2

Open takatea opened this issue 1 year ago • 0 comments

Summary

Updates duckduckgo-search from v6.3.0 to v7.3.2 to resolve the "subsection not found" error that was causing issues with tool creation. This update includes:

  • Fix for "subsection not found" error originally addressed in v6.4.2
    • https://github.com/deedy5/duckduckgo_search/releases/tag/v6.4.2
    • https://github.com/deedy5/duckduckgo_search/commit/c55a1338f18a0c1aec7b0eac0168be06edd3f884
  • Additional improvements and stability updates from newer versions
  • Verified compatibility with our tool creation workflow

Fix: #13458 Related to #12307 (previously closed but unresolved)

Changes

  • Updated duckduckgo-search dependency in pyproject.toml from ~6.3.0 to ~7.3.2
  • Updated poetry.lock with corresponding dependency changes
  • Verified tool creation functionality works with the new version

Testing

  • Confirmed that the "subsection not found" error no longer occurs
  • Verified that tools can be created successfully with the updated version
  • Ran all existing tests to ensure no regressions

Screenshots

Require Summary is False (Default)

Shows the default behavior where summary generation is turned off.

Before After
image image

Require Summary is True

Demonstrates the tool's behavior when summary generation is activated.

Before After
image image

Using Query Prefix

Example using the query prefix site:wikipedia.org to filter search results.

Before After
image image

Additonal Note

The issue has already been addressed in the official plugins repository (dify-official-plugins), where duckduckgo-search is set to ~7.2.1: https://github.com/langgenius/dify-official-plugins/blob/main/tools/duckduckgo/requirements.txt

While this PR's changes might become obsolete in v1.0, it could still be helpful for users running pre-v1.0 versions who encounter the "subsection not found" error.

Checklist

  • [ ] This change requires a documentation update, included: Dify Document
  • [x] I understand that this PR may be closed in case there was no previous discussion or issues. (This doesn't apply to typos!)
  • [x] I've added a test for each change that was introduced, and I tried as much as possible to make a single atomic change.
  • [x] I've updated the documentation accordingly.
  • [x] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods

takatea avatar Feb 12 '25 11:02 takatea