Dify v0.12.0 is Out!

New Features
File Variables in LLM Nodes
Use File and Array File variables directly in the LLM Prompt editor within Workflows to seamlessly handle documents, images, and audio files (currently supporting gpt-4o-audio-preview).
Note: For LLMs without native file processing capabilities, you'll still need to use a Document Extractor node to convert files to text format.

https://preview.redd.it/6bbhx4cq023e1.png?width=3552&format=png&auto=webp&s=e4764742bc2d0b9d2d3bb3b0764a85e05d95e563

Document Processing for ChatBot & Agent
Introducing document toggle for ChatBot and Agent applications! When your model supports document processing (txt, markdown, pdf, html, xlsx, etc.), enable this feature to let your application handle tasks based on user-uploaded files.

https://preview.redd.it/xgz5hdet023e1.png?width=3596&format=png&auto=webp&s=3c70890b3f7f688e84e67c1621d113d4be385dda

For Developers
Python Environment Updates
Default Python version upgraded to 3.12 with performance improvements and dependency updates (including Gevent). Now supporting Python 3.11-3.12. Python 3.10 tests removed for faster CI pipelines.

App DSL Import API Changes
- Deprecated: Legacy routes for DSL file/URL imports and Workflow override routes
- Added: New /imports endpoints (affects users with extensive secondary development)

For more improvements and bug fixes, read the full changelog:

https://github.com/langgenius/dify/releases/tag/0.12.0