langgenius / dify

Dify is an open-source LLM app development platform. Dify's intuitive interface combines AI workflow, RAG pipeline, agent capabilities, model management, observability features and more, letting you quickly go from prototype to production.
https://dify.ai
Other
35.59k stars 4.8k forks source link

fix: DuckDuckGo image search tool error #5606

Closed hjlarry closed 3 days ago

hjlarry commented 3 days ago

Description

  1. Fixes https://github.com/langgenius/dify/issues/5244. As the doc described, we should pass IDs instead of Model objects to avoid DetachedInstanceError.
  2. Now the image search results will not be downloaded. For agent mode, the images display well. For workflow mode, I add a remote_url field in the files response to avoid affect others.

1719371661878

Type of Change

How Has This Been Tested?

I test it locally.

Suggested Checklist: