✨ What’s New in v0.6.15? ✨
Hey everyone, we’ve got a fresh update for you! Version 0.6.15 is here, and it’s packed with new features, model support, tools, and enhancements. Let’s dive in:
🚀 New Features
-
Environment Variables in Workflow: Now you can use environment variables directly in your chatflows/workflows, by @laipz8200 and @JzoNgKVO in #6515.
Environment variables can be used to store private information and credentials. They are read-only and can be separated from the DSL file during export.
The
secret
variable type is used to define sensitive information or data, with DSL settings configured for leak prevention. -
New Prompt Generator: We’ve introduced a new prompt generator, by @iamjoel in #6514, #6525, #6564, and @ZhouhaoJiang in #6516.
🧠 Models
- Stepfun LLM Support: Added by @forrestlinfeng in #6346.
- OpenAI GPT-4o-mini Support: Now available, by @takatost in #6442.
- GPT-4o-mini for OpenRouter Provider: Added by @sinomoe in #6447.
- Amazon Sagemaker Model Provider: Integrated by @ybalbert001 in #6255.
- Updated Ernie Models: Thanks to @Weaxs in #6454.
- Tencent Cloud ASR Support: Added by @lancemao in #6091.
🛠️ Tools
- Mingdao HAP Tool: Read and maintain HAP application worksheet data, implemented by @coldstone in #6257.
- Google Translate Tool: Added by @svcvit in #6156.
- Tianditu Tool: Integrated by @listeng in #6320.
- Spider Web Scraper & Crawler Tool: Added by @WilliamEspegren in #5725.
- Getimg.ai Integration: Added by @MatriQ in #6260.
⚙️ Enhancements
- Full Text Search with Oracle23ai as Vector DB: Added by @tmuife in #6559.
- API Key Support for Xinference: Integrated by @themanforfree in #6417.
- Fix for Anthropic Header Issue: Quickly resolved by @richards199999 in #6445.
For additional enhancements and updates, refer to the What's Changed section below.
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 new docker compose deployment" section above for usage and migration tips.
-
Back up your customized docker-compose YAML file (optional)
cd docker cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
-
Get the latest code from the main branch
git checkout main git pull origin main
-
Stop the service,Command, please execute in the docker directory
docker compose down
-
Back up data
tar -cvf volumes-$(date +%s).tgz volumes
-
Upgrade services
docker compose up -d
Source Code deployments
-
Stop API server, Worker and Web frontend Server.
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Update Python dependencies:
cd api poetry install
-
Then, let's run the migration script:
poetry shell flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- chore:update azure GA version 2024-06-01 by @leslie2046 in #6307
- fix: prompt editor new line by @zxhlyh in #6310
- dep: bump Pydantic from 2.7 to 2.8 by @bowenliang123 in #6273
- update clean_unused_datasets_task timedelta by @JohnJyong in #6324
- Docs: Translate by @AllenWriter in #6329
- fix: better qr code panel and webapp url regen confirmation by @chazzhou in #6321
- Add tool: Google Translate by @svcvit in #6156
- feat: bedrock model runtime enhancement by @longzhihun in #6299
- fix wrong using of RetrievalMethod Enum by @JohnJyong in #6345
- Fix tts api err by @charli117 in #6349
- update celery beat scheduler time to env by @JohnJyong in #6352
- chore: fix legacy API usages of Query.get() by Session.get() in SqlAlchemy 2 by @bowenliang123 in #6340
- WebscraperTool bypass cloudflare site by cloudscraper by @Weaxs in #6337
- fix: default model set wrong(#6327) by @FamousMai in #6332
- Add multilingual support for TTS (Text-to-Speech) functionality. by @ic-xu in #6369
- fix: incorrect config key name by @yujunhui in #6371
- fix: workflow sync before export by @zxhlyh in #6380
- refactor(api/core/workflow/nodes/http_request): Remove
mask_authorization_header
because its alwary true. by @laipz8200 in #6379 - Feat/optimize clean dataset logic by @JohnJyong in #6384
- fix: rename model from ernie-4.0-8k-Latest to ernie-4.0-8k-latest by @xielong in #6383
- Add the API documentation for streaming TTS (Text-to-Speech) by @ic-xu in #6382
- Fix issues related to search apps, notification duration, and loading icon on the explore page by @faye1225 in #6374
- update empty document caused delete exist collection by @JohnJyong in #6392
- embed.js add esc exit and fix avoid infinite nesting by @charli117 in #6360
- fix: tool authorization setting panel not validate required fields by @hjlarry in #6387
- fix: default duration by @crazywoola in #6393
- refactor(models&tools): switch to dify_config in models and tools. by @Poorandy in #6394
- fix web import url is too long by @JohnJyong in #6402
- Support new Claude-3.5 Sonnet max token limit by @richards199999 in #6335
- Add Stepfun LLM Support by @forrestlinfeng in #6346
- fix: kill signal is not passed to the main process by @tmokmss in #6159
- fix inconsistent label by @harrywang in #6404
- feat: added custom secure_ascii to the json_process tool by @XiaoLey in #6401
- feat: add a Tianditu tool by @listeng in #6320
- feat: Spider web scraper & crawler tool by @WilliamEspegren in #5725
- fix: improve separation element in prompt log and TTS buttons in the operation by @kuizuo in #6413
- feat: support get workflow task execution status by @hjlarry in #6411
- feat: add frontend unit test framework by @iamjoel in #6426
- feat: add custom tool timeout config to docker-compose.yaml and .env by @forrestsocool in #6419
- refactor(rag): switch to dify_config. by @Poorandy in #6410
- fix tool icon get failed by @Songyawn in #6375
- feat: api_key support for xinference by @themanforfree in #6417
- fix: tools edit modal schema edit issue by @qweasdzxcpkh in #6396
- fix(api/core/tools/provider/builtin/spider/tools/scraper_crawler.yaml): Fix wrong placeholder config in scraper crawler tool. by @laipz8200 in #6432
- Fix the vector retrieval sorting issue by @leoterry-ulrica in #6431
- Enhancement: add model provider - Amazon Sagemaker by @ybalbert001 in #6255
- fix: Unable to display images generated by Dall-E 3 by @Weishan-0 in #6155
- update clean embedding cache logic by @JohnJyong in #6434
- feat: passing the inputs values using
difyChatbotConfig
by @yoyocircle in #6376 - feat: add gpt-4o-mini by @takatost in #6442
- [EMERGENCY] Fix Anthropic header issue by @richards199999 in #6445
- refactor(myscale):Set the default value of the myscale vector db in DifyConfig. by @ox01024 in #6441
- chore: make text generation timeout duration configurable by @gijigae in #6450
- update ernie models by @Weaxs in #6454
- feat: support gpt-4o-mini for openrouter provider by @sinomoe in #6447
- fix wrong method using by @JohnJyong in #6459
- chore: some components upgrage to new ui by @iamjoel in #6468
- Update CONTRIBUTING_JA "installation FAQ" link. by @moqimoqidea in #6469
- Update CONTRIBUTING "installation FAQ" link. by @moqimoqidea in #6471
- Update CONTRIBUTING_CN "安装常见问题解答" link. by @moqimoqidea in #6470
- fix: correct gpt-4o-mini max token by @sinomoe in #6472
- fix: build error by @crazywoola in #6480
- fix: next suggest question logic problem by @EvenYan in #6451
- feat(tool): getimg.ai integration by @MatriQ in #6260
- Fix/extra table tracing app config by @ZhouhaoJiang in #6487
- update clean embedding cache query logic by @JohnJyong in #6483
- update delete embeddings by id by @JohnJyong in #6489
- refactor(api): switch to dify_config in controllers/console by @morugu in #6485
- clean vector collection redis cache by @JohnJyong in #6494
- fix: extract tool calls correctly while arguments is empty by @sinomoe in #6503
- chore: improve prompt auto generator by @iamjoel in #6514
- allow custom base_url of dify api server by @akayj in #6510
- refactor: handle missing position file gracefully by @BenjaminX in #6513
- fix: privilege for editor role by @cuckootan in #6521
- Feat/environment variables in workflow by @laipz8200 in #6515
- fix: iteration node bg color by @zxhlyh in #6523
- chore: remove support email from readme by @crazywoola in #6530
- chore: use node specify llm to auto generate prompt by @iamjoel in #6525
- Feat/add email support for pro and team by @crazywoola in #6533
- fix(api/services/app_generate_service.py): Remove wrong type hints. by @laipz8200 in #6535
- fix(api/core/model_manager.py): Avoid mutation during iteration. by @laipz8200 in #6536
- update discussion template by @crazywoola in #6544
- fix: template by @crazywoola in #6545
- Update help.yml by @crazywoola in #6546
- feat: renanme template by @crazywoola in #6547
- Revert "chore: use node specify llm to auto generate prompt" by @iamjoel in #6555
- Revert "chore: improve prompt auto generator" by @iamjoel in #6556
- chore(deps): bump sentry-sdk from 1.39.2 to 2.8.0 in /api by @dependabot in #6517
- fix: chat flow chat with annotation or moderation but answer empty by @guogeer in #6202
- feat: add Mingdao HAP tool, implemented read and maintain HAP application worksheet data. by @coldstone in #6257
- fix: escape double quotation marks in the vector DB search query by @gijigae in #6506
- Add search by full text when using Oracle23ai as vector DB by @tmuife in #6559
- fix the issue of MILVUS_DATABASE has no effect. by @cui-liang in #6424
- fix: fetch context error in llm node by @takatost in #6562
- fix(api/nodes): Fallback to
get_any
in some nodes that use object or array. by @laipz8200 in #6566 - feat(variables): Support
to_object
. by @laipz8200 in #6572 - fix: extract only
like
feedback to caculate User Satisfaction by @hjlarry in #6553 - feat: add tencent asr by @lancemao in #6091
- fix: name 'current_app' is not defined in recommended_app_service by @takatost in #6574
- fix: tool params not work as expected when develop a tool by @hjlarry in #6550
- fix(api/core/workflow/nodes/llm/llm_node.py): Fix LLM Node error. by @laipz8200 in #6576
- chore: layout UI upgrade by @iamjoel in #6577
- fix audio not working during development due to react's useEffect wil be triggered twice by @lancemao in #6126
- fix(segments): Support NoneType. by @laipz8200 in #6581
- chore: enchance auto generate prompt by @iamjoel in #6564
- feat: update prompt generate by @ZhouhaoJiang in #6516
- fix(variables): NoneVariable should inherit from NoneSegment. by @laipz8200 in #6584
- bump to 0.6.15 by @takatost in #6592
New Contributors
- @AllenWriter made their first contribution in #6329
- @svcvit made their first contribution in #6156
- @FamousMai made their first contribution in #6332
- @yujunhui made their first contribution in #6371
- @faye1225 made their first contribution in #6374
- @Poorandy made their first contribution in #6394
- @forrestlinfeng made their first contribution in #6346
- @kuizuo made their first contribution in #6413
- @forrestsocool made their first contribution in #6419
- @Songyawn made their first contribution in #6375
- @themanforfree made their first contribution in #6417
- @qweasdzxcpkh made their first contribution in #6396
- @leoterry-ulrica made their first contribution in #6431
- @ybalbert001 made their first contribution in #6255
- @yoyocircle made their first contribution in #6376
- @gijigae made their first contribution in #6450
- @moqimoqidea made their first contribution in #6469
- @EvenYan made their first contribution in #6451
- @morugu made their first contribution in #6485
- @akayj made their first contribution in #6510
- @cuckootan made their first contribution in #6521
- @coldstone made their first contribution in #6257
- @cui-liang made their first contribution in #6424
Full Changelog: 0.6.14...0.6.15