0.6.15
版本发布时间: 2024-07-23 22:49:30
langgenius/dify最新发布版本:0.11.2(2024-11-18 17:54:14)
✨ 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 https://github.com/langgenius/dify/pull/6307
- fix: prompt editor new line by @zxhlyh in https://github.com/langgenius/dify/pull/6310
- dep: bump Pydantic from 2.7 to 2.8 by @bowenliang123 in https://github.com/langgenius/dify/pull/6273
- update clean_unused_datasets_task timedelta by @JohnJyong in https://github.com/langgenius/dify/pull/6324
- Docs: Translate by @AllenWriter in https://github.com/langgenius/dify/pull/6329
- fix: better qr code panel and webapp url regen confirmation by @chazzhou in https://github.com/langgenius/dify/pull/6321
- Add tool: Google Translate by @svcvit in https://github.com/langgenius/dify/pull/6156
- feat: bedrock model runtime enhancement by @longzhihun in https://github.com/langgenius/dify/pull/6299
- fix wrong using of RetrievalMethod Enum by @JohnJyong in https://github.com/langgenius/dify/pull/6345
- Fix tts api err by @charli117 in https://github.com/langgenius/dify/pull/6349
- update celery beat scheduler time to env by @JohnJyong in https://github.com/langgenius/dify/pull/6352
- chore: fix legacy API usages of Query.get() by Session.get() in SqlAlchemy 2 by @bowenliang123 in https://github.com/langgenius/dify/pull/6340
- WebscraperTool bypass cloudflare site by cloudscraper by @Weaxs in https://github.com/langgenius/dify/pull/6337
- fix: default model set wrong(#6327) by @FamousMai in https://github.com/langgenius/dify/pull/6332
- Add multilingual support for TTS (Text-to-Speech) functionality. by @ic-xu in https://github.com/langgenius/dify/pull/6369
- fix: incorrect config key name by @yujunhui in https://github.com/langgenius/dify/pull/6371
- fix: workflow sync before export by @zxhlyh in https://github.com/langgenius/dify/pull/6380
- refactor(api/core/workflow/nodes/http_request): Remove
mask_authorization_header
because its alwary true. by @laipz8200 in https://github.com/langgenius/dify/pull/6379 - Feat/optimize clean dataset logic by @JohnJyong in https://github.com/langgenius/dify/pull/6384
- fix: rename model from ernie-4.0-8k-Latest to ernie-4.0-8k-latest by @xielong in https://github.com/langgenius/dify/pull/6383
- Add the API documentation for streaming TTS (Text-to-Speech) by @ic-xu in https://github.com/langgenius/dify/pull/6382
- Fix issues related to search apps, notification duration, and loading icon on the explore page by @faye1225 in https://github.com/langgenius/dify/pull/6374
- update empty document caused delete exist collection by @JohnJyong in https://github.com/langgenius/dify/pull/6392
- embed.js add esc exit and fix avoid infinite nesting by @charli117 in https://github.com/langgenius/dify/pull/6360
- fix: tool authorization setting panel not validate required fields by @hjlarry in https://github.com/langgenius/dify/pull/6387
- fix: default duration by @crazywoola in https://github.com/langgenius/dify/pull/6393
- refactor(models&tools): switch to dify_config in models and tools. by @Poorandy in https://github.com/langgenius/dify/pull/6394
- fix web import url is too long by @JohnJyong in https://github.com/langgenius/dify/pull/6402
- Support new Claude-3.5 Sonnet max token limit by @richards199999 in https://github.com/langgenius/dify/pull/6335
- Add Stepfun LLM Support by @forrestlinfeng in https://github.com/langgenius/dify/pull/6346
- fix: kill signal is not passed to the main process by @tmokmss in https://github.com/langgenius/dify/pull/6159
- fix inconsistent label by @harrywang in https://github.com/langgenius/dify/pull/6404
- feat: added custom secure_ascii to the json_process tool by @XiaoLey in https://github.com/langgenius/dify/pull/6401
- feat: add a Tianditu tool by @listeng in https://github.com/langgenius/dify/pull/6320
- feat: Spider web scraper & crawler tool by @WilliamEspegren in https://github.com/langgenius/dify/pull/5725
- fix: improve separation element in prompt log and TTS buttons in the operation by @kuizuo in https://github.com/langgenius/dify/pull/6413
- feat: support get workflow task execution status by @hjlarry in https://github.com/langgenius/dify/pull/6411
- feat: add frontend unit test framework by @iamjoel in https://github.com/langgenius/dify/pull/6426
- feat: add custom tool timeout config to docker-compose.yaml and .env by @forrestsocool in https://github.com/langgenius/dify/pull/6419
- refactor(rag): switch to dify_config. by @Poorandy in https://github.com/langgenius/dify/pull/6410
- fix tool icon get failed by @Songyawn in https://github.com/langgenius/dify/pull/6375
- feat: api_key support for xinference by @themanforfree in https://github.com/langgenius/dify/pull/6417
- fix: tools edit modal schema edit issue by @qweasdzxcpkh in https://github.com/langgenius/dify/pull/6396
- fix(api/core/tools/provider/builtin/spider/tools/scraper_crawler.yaml): Fix wrong placeholder config in scraper crawler tool. by @laipz8200 in https://github.com/langgenius/dify/pull/6432
- Fix the vector retrieval sorting issue by @leoterry-ulrica in https://github.com/langgenius/dify/pull/6431
- Enhancement: add model provider - Amazon Sagemaker by @ybalbert001 in https://github.com/langgenius/dify/pull/6255
- fix: Unable to display images generated by Dall-E 3 by @Weishan-0 in https://github.com/langgenius/dify/pull/6155
- update clean embedding cache logic by @JohnJyong in https://github.com/langgenius/dify/pull/6434
- feat: passing the inputs values using
difyChatbotConfig
by @yoyocircle in https://github.com/langgenius/dify/pull/6376 - feat: add gpt-4o-mini by @takatost in https://github.com/langgenius/dify/pull/6442
- [EMERGENCY] Fix Anthropic header issue by @richards199999 in https://github.com/langgenius/dify/pull/6445
- refactor(myscale):Set the default value of the myscale vector db in DifyConfig. by @ox01024 in https://github.com/langgenius/dify/pull/6441
- chore: make text generation timeout duration configurable by @gijigae in https://github.com/langgenius/dify/pull/6450
- update ernie models by @Weaxs in https://github.com/langgenius/dify/pull/6454
- feat: support gpt-4o-mini for openrouter provider by @sinomoe in https://github.com/langgenius/dify/pull/6447
- fix wrong method using by @JohnJyong in https://github.com/langgenius/dify/pull/6459
- chore: some components upgrage to new ui by @iamjoel in https://github.com/langgenius/dify/pull/6468
- Update CONTRIBUTING_JA "installation FAQ" link. by @moqimoqidea in https://github.com/langgenius/dify/pull/6469
- Update CONTRIBUTING "installation FAQ" link. by @moqimoqidea in https://github.com/langgenius/dify/pull/6471
- Update CONTRIBUTING_CN "安装常见问题解答" link. by @moqimoqidea in https://github.com/langgenius/dify/pull/6470
- fix: correct gpt-4o-mini max token by @sinomoe in https://github.com/langgenius/dify/pull/6472
- fix: build error by @crazywoola in https://github.com/langgenius/dify/pull/6480
- fix: next suggest question logic problem by @EvenYan in https://github.com/langgenius/dify/pull/6451
- feat(tool): getimg.ai integration by @MatriQ in https://github.com/langgenius/dify/pull/6260
- Fix/extra table tracing app config by @ZhouhaoJiang in https://github.com/langgenius/dify/pull/6487
- update clean embedding cache query logic by @JohnJyong in https://github.com/langgenius/dify/pull/6483
- update delete embeddings by id by @JohnJyong in https://github.com/langgenius/dify/pull/6489
- refactor(api): switch to dify_config in controllers/console by @morugu in https://github.com/langgenius/dify/pull/6485
- clean vector collection redis cache by @JohnJyong in https://github.com/langgenius/dify/pull/6494
- fix: extract tool calls correctly while arguments is empty by @sinomoe in https://github.com/langgenius/dify/pull/6503
- chore: improve prompt auto generator by @iamjoel in https://github.com/langgenius/dify/pull/6514
- allow custom base_url of dify api server by @akayj in https://github.com/langgenius/dify/pull/6510
- refactor: handle missing position file gracefully by @BenjaminX in https://github.com/langgenius/dify/pull/6513
- fix: privilege for editor role by @cuckootan in https://github.com/langgenius/dify/pull/6521
- Feat/environment variables in workflow by @laipz8200 in https://github.com/langgenius/dify/pull/6515
- fix: iteration node bg color by @zxhlyh in https://github.com/langgenius/dify/pull/6523
- chore: remove support email from readme by @crazywoola in https://github.com/langgenius/dify/pull/6530
- chore: use node specify llm to auto generate prompt by @iamjoel in https://github.com/langgenius/dify/pull/6525
- Feat/add email support for pro and team by @crazywoola in https://github.com/langgenius/dify/pull/6533
- fix(api/services/app_generate_service.py): Remove wrong type hints. by @laipz8200 in https://github.com/langgenius/dify/pull/6535
- fix(api/core/model_manager.py): Avoid mutation during iteration. by @laipz8200 in https://github.com/langgenius/dify/pull/6536
- update discussion template by @crazywoola in https://github.com/langgenius/dify/pull/6544
- fix: template by @crazywoola in https://github.com/langgenius/dify/pull/6545
- Update help.yml by @crazywoola in https://github.com/langgenius/dify/pull/6546
- feat: renanme template by @crazywoola in https://github.com/langgenius/dify/pull/6547
- Revert "chore: use node specify llm to auto generate prompt" by @iamjoel in https://github.com/langgenius/dify/pull/6555
- Revert "chore: improve prompt auto generator" by @iamjoel in https://github.com/langgenius/dify/pull/6556
- chore(deps): bump sentry-sdk from 1.39.2 to 2.8.0 in /api by @dependabot in https://github.com/langgenius/dify/pull/6517
- fix: chat flow chat with annotation or moderation but answer empty by @guogeer in https://github.com/langgenius/dify/pull/6202
- feat: add Mingdao HAP tool, implemented read and maintain HAP application worksheet data. by @coldstone in https://github.com/langgenius/dify/pull/6257
- fix: escape double quotation marks in the vector DB search query by @gijigae in https://github.com/langgenius/dify/pull/6506
- Add search by full text when using Oracle23ai as vector DB by @tmuife in https://github.com/langgenius/dify/pull/6559
- fix the issue of MILVUS_DATABASE has no effect. by @cui-liang in https://github.com/langgenius/dify/pull/6424
- fix: fetch context error in llm node by @takatost in https://github.com/langgenius/dify/pull/6562
- fix(api/nodes): Fallback to
get_any
in some nodes that use object or array. by @laipz8200 in https://github.com/langgenius/dify/pull/6566 - feat(variables): Support
to_object
. by @laipz8200 in https://github.com/langgenius/dify/pull/6572 - fix: extract only
like
feedback to caculate User Satisfaction by @hjlarry in https://github.com/langgenius/dify/pull/6553 - feat: add tencent asr by @lancemao in https://github.com/langgenius/dify/pull/6091
- fix: name 'current_app' is not defined in recommended_app_service by @takatost in https://github.com/langgenius/dify/pull/6574
- fix: tool params not work as expected when develop a tool by @hjlarry in https://github.com/langgenius/dify/pull/6550
- fix(api/core/workflow/nodes/llm/llm_node.py): Fix LLM Node error. by @laipz8200 in https://github.com/langgenius/dify/pull/6576
- chore: layout UI upgrade by @iamjoel in https://github.com/langgenius/dify/pull/6577
- fix audio not working during development due to react's useEffect wil be triggered twice by @lancemao in https://github.com/langgenius/dify/pull/6126
- fix(segments): Support NoneType. by @laipz8200 in https://github.com/langgenius/dify/pull/6581
- chore: enchance auto generate prompt by @iamjoel in https://github.com/langgenius/dify/pull/6564
- feat: update prompt generate by @ZhouhaoJiang in https://github.com/langgenius/dify/pull/6516
- fix(variables): NoneVariable should inherit from NoneSegment. by @laipz8200 in https://github.com/langgenius/dify/pull/6584
- bump to 0.6.15 by @takatost in https://github.com/langgenius/dify/pull/6592
New Contributors
- @AllenWriter made their first contribution in https://github.com/langgenius/dify/pull/6329
- @svcvit made their first contribution in https://github.com/langgenius/dify/pull/6156
- @FamousMai made their first contribution in https://github.com/langgenius/dify/pull/6332
- @yujunhui made their first contribution in https://github.com/langgenius/dify/pull/6371
- @faye1225 made their first contribution in https://github.com/langgenius/dify/pull/6374
- @Poorandy made their first contribution in https://github.com/langgenius/dify/pull/6394
- @forrestlinfeng made their first contribution in https://github.com/langgenius/dify/pull/6346
- @kuizuo made their first contribution in https://github.com/langgenius/dify/pull/6413
- @forrestsocool made their first contribution in https://github.com/langgenius/dify/pull/6419
- @Songyawn made their first contribution in https://github.com/langgenius/dify/pull/6375
- @themanforfree made their first contribution in https://github.com/langgenius/dify/pull/6417
- @qweasdzxcpkh made their first contribution in https://github.com/langgenius/dify/pull/6396
- @leoterry-ulrica made their first contribution in https://github.com/langgenius/dify/pull/6431
- @ybalbert001 made their first contribution in https://github.com/langgenius/dify/pull/6255
- @yoyocircle made their first contribution in https://github.com/langgenius/dify/pull/6376
- @gijigae made their first contribution in https://github.com/langgenius/dify/pull/6450
- @moqimoqidea made their first contribution in https://github.com/langgenius/dify/pull/6469
- @EvenYan made their first contribution in https://github.com/langgenius/dify/pull/6451
- @morugu made their first contribution in https://github.com/langgenius/dify/pull/6485
- @akayj made their first contribution in https://github.com/langgenius/dify/pull/6510
- @cuckootan made their first contribution in https://github.com/langgenius/dify/pull/6521
- @coldstone made their first contribution in https://github.com/langgenius/dify/pull/6257
- @cui-liang made their first contribution in https://github.com/langgenius/dify/pull/6424
Full Changelog: https://github.com/langgenius/dify/compare/0.6.14...0.6.15