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.
[!IMPORTANT]
Please review the checklist below before submitting your pull request.
[ ] Please open an issue before creating a PR or link to an existing issue
[ ] I have performed a self-review of my own code
[ ] I have commented my code, particularly in hard-to-understand areas
[ ] I ran dev/reformat(backend) and cd web && npx lint-staged(frontend) to appease the lint gods
Description
Set a default factory for the tools field in UserToolProvider to ensure it defaults to an empty list.
Add a field validator to UserToolProvider to convert None to an empty list for the tools field.
Simplify variable assignment in API management service by removing unnecessary type annotations in query statements.
Rename variable for clarity in list_api_tool_provider_tools to provider_name.
Type of Change
[ ] Bug fix (non-breaking change which fixes an issue)
[ ] New feature (non-breaking change which adds functionality)
[ ] Breaking change (fix or feature that would cause existing functionality to not work as expected)
[ ] This change requires a documentation update, included: Dify Document
[ ] Improvement, including but not limited to code refactoring, performance optimization, and UI/UX improvement
[ ] Dependency upgrade
Testing Instructions
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration
Checklist:
dev/reformat
(backend) andcd web && npx lint-staged
(frontend) to appease the lint godsDescription
tools
field inUserToolProvider
to ensure it defaults to an empty list.UserToolProvider
to convertNone
to an empty list for thetools
field.list_api_tool_provider_tools
toprovider_name
.Type of Change
Testing Instructions
Please describe the tests that you ran to verify your changes. Provide instructions so we can reproduce. Please also list any relevant details for your test configuration