Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
✨ What’s New in v0.6.12? ✨
Important
In the current version:
pip
as the primary package management tool in favor ofPoetry
for the Dify API service..env
files and allowing the option to independently select Vector Database at startup.The previous Docker Compose configuration has been moved to the
docker-legacy
directory.For more details see
Upgrade to docker compose deployment
below.Hey everyone, we’ve got a fresh update for you with v0.6.12, and it’s packed with new features, tools, and improvements. Let’s dive in:
🚀 New Features
Undo/Redo for Workflow Editor: Finally, you can undo and redo your actions in the workflow editor by @perzeuss in feat: undo/redo for workflow editor #3927.
Import and Overwrite Workflow DSL: Importing and overwriting workflow DSL is now supported, you can now manage versions indirectly through DSL Export & Import by @takatost in feat: support importing and overwriting workflow DSL #5511.
New Icons: We’ve replaced the old icons with fresh new ones by @zxhlyh in feat: new icons #5412.
Hide Workflow Steps: You now have the option to hide workflow steps in WebApp settings by @crazywoola in feat: option to hide workflow steps #5436.
Self-Hosting for Firecrawl Tool: The Firecrawl tool now supports self-hosting by @keita69 in The firecrawl tool now supports self-hosting #5528.
Latex in Chat Messages: Support for displaying Latex in chat messages by @ZuzooVn in feat: support Latex #5001.
Citations and Attributions: These are now enabled by default by @takatost in feat: make Citations and Attributions display enable default #5508.
🛠️ Tools
🤖 Model Support
Jina New Pre-defined Rerankers: Including jina-reranker-v2 by @takatost in feat: add jina new pre-defined rerankers, include: jina-reranker-v2 #5657.
Bedrock Command R Models: Added support for these models by @realjustinwu in Add bedrock command r models #4521.
Claude-3-5-Sonnet-20240620: Support added for this model by @takatost in feat: add support for claude-3-5-sonnet-20240620 #5452 and @soulteary in feat: add support for bedrock claude-3-5-sonnet-20240620 #5461.
Vertex AI Claude-3-5-Sonnet@20240620: Support added by @hellof20 in feat: add support for Vertex AI claude-3-5-sonnet@20240620 #5475.
Predefined Models for OpenRouter: Added support by @sinomoe in feat: support predefined models for openrouter #5494.
Qwen LLM: Added support by @LiXuemin in Feature/add qwen llm #5659.
Spark 4.0: Added support by @leslie2046 in feat: add support Spark4.0 #5688.
🗄️ Vector Database & Storage
🏗️ API Service Infrastructures
For additional enhancements and updates, refer to the What's Changed section below.
🎉 Upgrade to docker compose deployment
Key Changes
Persistent Custom Environment Variables: Users can now declare environment variables in .env that remain persistent across deployments. This change ensures that custom configurations are not lost during upgrades or redeployments.
Unified Vector Database Services: All vector database services have been consolidated into a single Docker file. Users can switch between different vector databases by modifying the
VECTOR_STORE
environment variable in your local.env
. This simplifies the management of various vdb services and allows for more dynamic deployments.Mandatory .env File: Unlike the previous deployment method, the new method requires an [.env] file before running
docker compose up
. Users should start by copying the.env.example
file to create their own.env
file. This step is crucial for configuring the deployment to meet specific needs.Legacy Support: The previous deployment files have been moved to a
docker-legacy
directory. These files will no longer be maintained, but they are available for use if needed.Migrating
For existing users who's customized
docker-compose.yaml
,ssrf_proxy/squid.conf
ornginx/conf.d/default.conf
, you may need to modify the corresponding environment variables in.env
to reflect your existing changes.We are actively seeking feedback from the community to refine and enhance the deployment process. As more users adopt this new method, we will continue to make improvements based on your experiences and suggestions.
How to Get Started
To get started with the new deployment method:
docker
directory.docker/.env.example
file to a new file named.env
and customize it as needed.docker compose up
to start the services.We encourage all users to transition to this new method to take advantage of the improved flexibility and configuration options. Your feedback during this beta phase is invaluable and will help us make the deployment process even better.
For detailed configuration options and environment variable settings, refer to the
.env.example
file and the Docker Compose configuration files in thedocker
directory.Upgrade Guide
Docker compose deployments
Warning
The
docker-compose.yaml
has been refactored. If you've made any changes to the file, make sure to check out the "Upgrade to docker compose deployment" section above for usage and migration tips.Back up your customized docker-compose YAML file (optional)
Get the latest code from the main branch
Stop the service,Command, please execute in the docker directory
Back up data
tar -cvf volumes-$(date +%s).tgz volumes
Upgrade services
Source Code deployments
Stop API server, Worker and Web frontend Server.
Get the latest code from the main branch:
Update Python dependencies:
cd api poetry install
Then, let's run the migration script:
Finally, run API server, Worker and Web frontend Server again.