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
53.24k stars 7.77k forks source link

SearchApi - Return error message instead of raising a ValueError #11083

Closed SebastjanPrachovskij closed 3 days ago

SebastjanPrachovskij commented 4 days ago

Summary

Instead of raising a ValueError with the message Got error from SearchApi: {res['error']}, the SearchApi now directly returns the res['error'] message. This message provides more specific information, such as YouTube Transcripts didn't return any results.. This change was implemented in response to customer complaints.

Checklist

[!IMPORTANT]
Please review the checklist below before submitting your pull request.