Releases: langgenius/dify
v0.6.1
✨ Spotlight on Dify v0.6.0 ✨
🚀 Introducing Dify Workflow 🚀
Eager to elevate the stability and reproducibility of your LLM applications? The latest release, Dify Workflow, is here to empower you.
Curious for more? Swing by the v0.6.0 Release Notes for the full scoop.
What’s New in v0.6.1?
This update primarily focuses on enhancing system stability and improving user experience. Key updates include:
- feat: moonshot function call support by @Yeuoly in #3227
- feat: prompt-editor in App Orchestrate support operation
undo
by @zxhlyh in #3242 - feat: support setting
database
parameter used in Milvus by @LeoQuote in #3003 - For additional enhancements and updates, refer to the What's Changed section below.
Update Guide
Docker compose deployments:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker 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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- fix keyword index error when storage source is S3 by @JohnJyong in #3182
- Update README.md to include workflows by @guchenhe in #3180
- Compatible with unique index conflicts by @JohnJyong in #3183
- fix: sometimes chosed old selected knowledge may overwirte the new knowledge by @iamjoel in #3199
- Fix: remove unavailable return_preamble parameter in cohere by @jat001 in #3201
- Fix/code transform result by @Yeuoly in #3203
- fix(code_executor): surrogates not allowed error in jinja2 template by @lroolle in #3191
- fix: node connect self by @zxhlyh in #3194
- Update README.md by @guchenhe in #3206
- fix economy index search in workflow by @JohnJyong in #3205
- fix: index number in api/README by @bowenliang123 in #3214
- Update README.md by @guchenhe in #3212
- fix detached instance error in keyword index create thread and fix question classifier node out of index error by @JohnJyong in #3219
- fix: incomplete response by @Yeuoly in #3215
- fix: latest image tag not push in GitHub action by @takatost in #3213
- fix: vision config doesn't enabled in llm by @iamjoel in #3225
- fixed the issue of missing cleanup function in the AudioBtn component by @yikayiyo in #3133
- fix: image text when retrieve chat histories by @takatost in #3220
- feat: moonshot function call by @Yeuoly in #3227
- feat: support setting database used in Milvus by @LeoQuote in #3003
- fix milvus database name parameter missed by @JohnJyong in #3229
- fix: file not uploaded caused api error by @iamjoel in #3228
- update link by @lychees in #3226
- fix: skip Celery warning by setting broker_connection_retry_on_startup config by @bowenliang123 in #3188
- fix: workflow run edge status by @zxhlyh in #3236
- fix: empty conversation list of explore chatbot by @takatost in #3235
- Fix: picture of workflow by @JzoNgKVO in #3241
- feat: prompt-editor support undo by @zxhlyh in #3242
- fix: number type in app would render as select type in webapp by @iamjoel in #3244
- fix: token is not logging of question classifier node by @takatost in #3249
- chore: remove langchain in tools by @Yeuoly in #3247
- make sure validation flow works for all model providers in bedrock by @guchenhe in #3250
- feat: remove unregistered-llm-in-debug by @crazywoola in #3251
- version to 0.6.1 by @takatost in #3253
New Contributors
Full Changelog: 0.6.0-fix1...0.6.1
v0.6.0-fix1
Important
EMERGENCY FIX: ADD FEATURE
dialog of Agent application that incorrectly used the Text Generator App dialog content.
Introducing Dify Workflow! 🎉
The much-anticipated workflow feature is here: In a nutshell, workflow provides a visual canvas for defining complex tasks as smaller, manageable steps (nodes). This reduces reliance on prompt engineering and LLM agent capabilities, taking the stability and reproducibility of your LLM applications to the next level by letting you be in control.
There are two Workflow application types with this update:
-
Workflow App
Targeting Automation and Batch Processing: This is ideal for translation, data analysis, content generation, email automation, and more.
-
Chatflow App (A Sub-Type of Chatbot)
For Conversational Applications: Suitable for customer service, semantic search, and more conversational apps requiring multi-step logic in crafting the response.
Compared to the regular Workflow app type, Chatflow adds chat-specific features such as conversation history support (Memory), tagged replies, an Answer node type for streaming responses, and support for rich text and images.
For more information, please visit: https://docs.dify.ai/features/workflow/introduce
Other Enhancements:
-
Optimized UI flow for app creation.
-
Conversion support from various basic application types to Workflow-based applications.
-
Dify's official app templates are now available in self-hosted mode.
-
Support for adding descriptions to applications.
-
Support for porting applications in and out of Dify with DSL.
-
Under the hood, we also refactored the underlying execution logic of all app types for cleaner architecture and a tidier repo.
Update Guide
If you need to upgrade from 0.6.0-preview-workflow.1
, you will need to connect to PostgreSQL and execute the following SQL (migration inserted in the main branch) to ensure data integrity.
ALTER TABLE dataset_keyword_tables ADD COLUMN data_source_type VARCHAR(255) NOT NULL DEFAULT 'database';
ALTER TABLE embeddings ADD COLUMN provider_name VARCHAR(40) NOT NULL DEFAULT '';
ALTER TABLE embeddings DROP CONSTRAINT embedding_hash_idx;
ALTER TABLE embeddings ADD CONSTRAINT embedding_hash_idx UNIQUE (model_name, hash, provider_name);
Docker compose deployments:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker compose up -d
-
We also moved the agent data within the database, Execute the below script to complete the migrate: (NEW)
docker compose exec api flask convert-to-agent-apps
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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
We also moved the agent data within the database, Execute the below script to complete the migrate: (NEW)
flask convert-to-agent-apps
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- fix: metadata in generate npe issue by @takatost in #3166
- fix: app export dsl not include desc by @takatost in #3167
- Fix: prompt of expert mode by @JzoNgKVO in #3168
- feat: translations by @crazywoola in #3176
- fix: prompt editor variable picker by @zxhlyh in #3177
- Fix: features of agent-chat by @JzoNgKVO in #3178
- version to 0.6.0-fix1 by @takatost in #3179
Full Changelog: 0.6.0...0.6.0-fix1
v0.6.0
Introducing Dify Workflow! 🎉
The much-anticipated workflow feature is here: In a nutshell, workflow provides a visual canvas for defining complex tasks as smaller, manageable steps (nodes). This reduces reliance on prompt engineering and LLM agent capabilities, taking the stability and reproducibility of your LLM applications to the next level by letting you be in control.
There are two Workflow application types with this update:
-
Workflow App
Targeting Automation and Batch Processing: This is ideal for translation, data analysis, content generation, email automation, and more.
-
Chatflow App (A Sub-Type of Chatbot)
For Conversational Applications: Suitable for customer service, semantic search, and more conversational apps requiring multi-step logic in crafting the response.
Compared to the regular Workflow app type, Chatflow adds chat-specific features such as conversation history support (Memory), tagged replies, an Answer node type for streaming responses, and support for rich text and images.
For more information, please visit: https://docs.dify.ai/features/workflow/introduce
Other Enhancements:
-
Optimized UI flow for app creation.
-
Conversion support from various basic application types to Workflow-based applications.
-
Dify's official app templates are now available in self-hosted mode.
-
Support for adding descriptions to applications.
-
Support for porting applications in and out of Dify with DSL.
-
Under the hood, we also refactored the underlying execution logic of all app types for cleaner architecture and a tidier repo.
Update Guide
If you need to upgrade from 0.6.0-preview-workflow.1
, you will need to connect to PostgreSQL and execute the following SQL (migration inserted in the main branch) to ensure data integrity.
ALTER TABLE dataset_keyword_tables ADD COLUMN data_source_type VARCHAR(255) NOT NULL DEFAULT 'database';
ALTER TABLE embeddings ADD COLUMN provider_name VARCHAR(40) NOT NULL DEFAULT '';
ALTER TABLE embeddings DROP CONSTRAINT embedding_hash_idx;
ALTER TABLE embeddings ADD CONSTRAINT embedding_hash_idx UNIQUE (model_name, hash, provider_name);
Docker compose deployments:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker compose up -d
-
We also moved the agent data within the database, Execute the below script to complete the migrate: (NEW)
docker compose exec api flask convert-to-agent-apps
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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
We also moved the agent data within the database, Execute the below script to complete the migrate: (NEW)
flask convert-to-agent-apps
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- Update README.md by @guchenhe in #3081
- add segment function billing check for SAAS env by @JohnJyong in #3082
- feat (new llm): add support for openrouter by @Korayem in #3042
- fix(duckduckgo-search): invoke error by @QIN2DIM in #3077
- Chore/move chrome ext by @crazywoola in #3085
- add embedding cache and clean embedding cache job by @JohnJyong in #3087
- new readme slogan by @guchenhe in #3094
- fix: update show names for supported file types of xlsx and docx by @bowenliang123 in #3091
- fix typo by @leslie2046 in #3098
- fix typo in readme by @jat001 in #3096
- fix unstructured api,remove unused parameters by @vikeychen in #3056
- Improve ModelTypeEnum type by @lng2020 in #3051
- feat: claude3 tool call by @Yeuoly in #3111
- chore: replace outdated config in vscode debug settings by @lng2020 in #3106
- feat: update link by @crazywoola in #3121
- chore: update link of feedback by @JzoNgKVO in #3130
- Duplicate embedding cache check by @JohnJyong in #3134
- improve qa generate prompt by @JohnJyong in #3132
- fix: Turn off SWR automatic revalidation when window is focused by @Mxtzz in #3129
- Feat/update issue template by @crazywoola in #3147
- fix: chat app sometimes may crash by @iamjoel in #3151
- Update descriptions in StackExchange Tool by @richards199999 in #3043
- Fix: stop indexing status check when api of status checking failed by @JzoNgKVO in #3156
- Optimize csv and excel extract by @JohnJyong in #3155
- fix: knowledge create display error by @zxhlyh in #3157
- FEAT: NEW WORKFLOW ENGINE by @takatost in #3160
New Contributors
- @Korayem made their first contribution in #3042
- @QIN2DIM made their first contribution in #3077
- @jat001 made their first contribution in #3096
- @Mxtzz made their first contribution in #3129
Full Changelog: 0.5.11-fix1...0.6.0
v0.6.0-preview-workflow.2
Important Notice
This version is a preview release intended for feature workflow internal testing only. It is not a formal release. Please proceed with caution before upgrading. Please do not use it in a production environment.
What's Changed
-
Refactored the variable reference logic for LLM, Answer, Tool, and Http Request nodes. Now you can simply input "/" in the text box to directly select variables without having to declare variable relationships and import them separately.
Due to changes in the data structure, the previous workflow configurations will no longer be available. Please create a new App to experience it and avoid running into any error issues caused by inconsistent data structures.
-
Optimized the user experience of app creation.
-
A lot of details to optimize for user experience.
-
Fixed few issues.
Update Guide
If you need to upgrade from 0.6.0-preview-workflow.1
, you will need to connect to PostgreSQL and execute the following SQL (migration inserted in the main branch) to ensure data integrity.
ALTER TABLE dataset_keyword_tables ADD COLUMN data_source_type VARCHAR(255) NOT NULL DEFAULT 'database';
ALTER TABLE embeddings ADD COLUMN provider_name VARCHAR(40) NOT NULL DEFAULT '';
ALTER TABLE embeddings DROP CONSTRAINT embedding_hash_idx;
ALTER TABLE embeddings ADD CONSTRAINT embedding_hash_idx UNIQUE (model_name, hash, provider_name);
Deploying with Docker Compose:
-
Get the latest code from the
feat/workflow
branch:git fetch --tags git checkout 0.6.0-preview-workflow.2
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
Stop API server, Worker and Web frontend Server.
-
Get the latest code from the
feat/workflow
branch:git fetch --tags git checkout 0.6.0-preview-workflow.2
-
Update Python dependencies:
cd api pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
v0.5.11-fix1
Fixed critical issue
Fixed the error issue caused by batch embedding and creating collections simultaneously of vector db on knowledge base processing. #3054
New Features
- Add xinference audio model support by @leslie2046 in #3045
- Add Brave Search and Trello(12 Tools) Included by @Yash-1511 in #3040
- feat: add Feishu(飞书) tool for sending message to chat group bot via webhook by @arkii in #3059
Update Guide
Deploying with Docker Compose:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- fix: agent tool label by @Yeuoly in #3039
- provide a bit more info in logs when parsing api schema error by @LeoQuote in #3026
- Fix typo by @lng2020 in #3041
- feat:xinference audio model support by @leslie2046 in #3045
- add clean_unused_datasets_task by @JohnJyong in #3057
- add redis lock on create collection in multiple thread mode by @JohnJyong in #3054
- FEAT: Add Brave Search and Trello(12 Tools) Included by @Yash-1511 in #3040
- feat: use en-US as fallback recommend app if using unmaintained language by @takatost in #3063
- feat: add Feishu(飞书) tool for sending message to chat group bot via webhook by @arkii in #3059
- add keyword table s3 storage support by @JohnJyong in #3065
- version to 0.5.11-fix1 by @takatost in #3073
New Contributors
Full Changelog: 0.5.11...0.5.11-fix1
v0.5.11
New Features
- Add azure blob storage support by @JohnJyong in #2919
- Add NVIDIA triton-inference-server by @Yeuoly in #2928
- Support new reranker [jina-colbert-v1-en] by @rickythink in #2975
- Add New Tool: DevDocs by @richards199999 in #2993
- Add New Tool: StackExchange by @richards199999 in #3034
- Add S3_ADDRESS_STYLE configuration option by @LeoQuote in #2934
- Update nginx and docker-compose files to support HTTPS. by @Kennytian in #2940
- Update wenxin llm by @Weaxs in #2929
- Support mutil-thread document embedding by @JohnJyong in #3016
- Fix some problems.
Update Guide
Deploying with Docker Compose:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- fix: typo $ mark in logs of vdb migrate command by @bowenliang123 in #2901
- fix: init qdrant vector max recursion by @ethuwlwfu3288 in #2909
- chore: change Yi model SDK to OpenAI by @soulteary in #2910
- fix: suggest service api missed user in query by @iamjoel in #2918
- Add azure blob storage support by @JohnJyong in #2919
- Update docker-compose files version by @Kennytian in #2920
- Feat/add triton inference server by @Yeuoly in #2928
- Authentication is only applied when both the username and password have values. by @LeoQuote in #2937
- fix: Upgrade duckduckgo-search to version 5.1.0 & update document segment api parameter error by @shjyh in #2938
- doc: model schema document fix and wording about the model price parameter by @orangeclk in #2944
- fix: invalid i18 link in README by @lng2020 in #2947
- fix: yi model price correction by @orangeclk in #2946
- fix: max_token default help info improved by @orangeclk in #2951
- fix: adjust popup panel's z-index value by @yikayiyo in #2952
- reuse layout by @yikayiyo in #2956
- When disabling the "Annotation Reply" button, the backend reports an error. #2904 by @colvin777 in #2933
- fix: white screen when editing annotaion in log panel by @rickythink in #2968
- improve: cache tool icons by setting max-age HTTP header and enable gzip compression SVG icons from backend by @bowenliang123 in #2971
- fix: correct response hint for generated image to avoid illusion of regernerated image link by @bowenliang123 in #2962
- Add S3_ADDRESS_STYLE configuration option by @LeoQuote in #2934
- Fix/2969 add model provider ollama not work by @crazywoola in #2973
- feat: update nginx and docker-compose files to support HTTPS. by @Kennytian in #2940
- fix: Correct image parameter passing in GLM-4v model API calls by @Weishan-0 in #2948
- Fix handling of missing required parameters in ApiTool by @Ag2S1 in #2965
- fix tool_inputs parse error in message that in CoT(ReAct) agent mode by @listeng in #2949
- fix: the batch annotaion btn should also be loading when progress status is waiting by @rickythink in #2974
- feat: support new reranker [jina-colbert-v1-en] by @rickythink in #2975
- fix: chat scroll by @zxhlyh in #2981
- fix: the issue of text overflow in the NavSelector component by @yikayiyo in #2976
- fix: progress bar issue by @yikayiyo in #2957
- Fix the time in the annotation from 12-hour clock to 24-hour clock. by @rickythink in #2990
- fix: resolve header.uid' length must be less or equal than 32 on Spark V1.5 by @Kennytian in #2983
- update wenxin llm by @Weaxs in #2929
- fix: missing comma in JSON for
/completion-messages
request by @aqachun in #2999 - generalize helper for loading module from source by @bowenliang123 in #2862
- bump redis client to 5.0 and enable hiredis support by @bowenliang123 in #2518
- bump celery from 5.2 to 5.3 by @bowenliang123 in #2478
- fix: 'next' button unresponsive when uploading additional documents before previous batch completes by @rickythink in #2991
- doc: update helm charts by @crazywoola in #3012
- add mutil-thread document embedding by @JohnJyong in #3016
- some optimization for admin api key, create tenant and reset-encrypt-key-pair command by @JohnJyong in #3013
- Add New Tool: DevDocs by @richards199999 in #2993
- fix add segment when dataset and document is empty by @JohnJyong in #3021
- update the discord Invalid invite by @kun321 in #3028
- Fix claude request errors in bedrock by @guchenhe in #3015
- Add New Tool: StackExchange by @richards199999 in #3034
- fix: prompt editor linebreak by @zxhlyh in #3036
- fix: api / moderation extension import error by @takatost in #3037
- version to 0.5.11 by @takatost in #3038
New Contributors
- @Kennytian made their first contribution in #2920
- @LeoQuote made their first contribution in #2937
- @shjyh made their first contribution in #2938
- @lng2020 made their first contribution in #2947
- @yikayiyo made their first contribution in #2952
- @colvin777 made their first contribution in #2933
- @Weishan-0 made their first contribution in #2948
- @aqachun made their first contribution in #2999
- @richards199999 made their first contribution in #2993
- @kun321 made their first contribution in #3028
Full Changelog: 0.5.10...0.5.11
v0.6.0-preview-workflow.1
Important Notice
This version is a preview release intended for feature workflow internal testing only. It is not a formal release. Please proceed with caution before upgrading.
TL;DR
- Introduced two new App types:
Chatflow
andWorkflow
. - The creation entry for the Chatbot Expert Mode has been removed, with support provided for migration to Chatflow apps.
- Chatbots can now be migrated to Chatflow apps, and Text Generation apps can be migrated to Workflow apps.
Update Guide
Deploying with Docker Compose:
-
Get the latest code from the
feat/workflow
branch:git fetch --tags git checkout 0.6.0-preview-workflow.1
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
Stop API server, Worker and Web frontend Server.
-
Get the latest code from the
feat/workflow
branch:git fetch --tags git checkout 0.6.0-preview-workflow.1
-
Update Python dependencies:
cd api pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
v0.5.10
New Features
- Added Anthripic
claude-3-haiku-20240307
by @lroolle #2825 - Added weekday calculator in time tool by @bowenliang123 in #2822
- Added model provider
01.ai
, yi-chat-34b series by @soulteary in #2865 - Added Embedding models for the Aliyun dashscope
text-embedding-v1
andtext-embedding-v2
by @Onelevenvy in #2874 - Added tools for open weather search and image generation using the Spark API. by @Onelevenvy in #2845
- Added AWS Bedrock Claude3 by @soulteary in #2864
- Added support Azure OpenAI llm
0125
version by @leslie2046 in #2889 - Added
NVIDIA
model provider by @joshua20231026 in #2900 - Fix some problems.
Update Guide
Deploying with Docker Compose:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- enhance: add stable diffusion user guide by @Yeuoly in #2795
- Fix/2770 suggestions for next steps by @crazywoola in #2788
- excel: get keys from every sheet by @Weaxs in #2796
- Update README.md by @joshua20231026 in #2799
- Update README.md by @joshua20231026 in #2800
- Refactor Markdown component to include paragraph after image by @Ag2S1 in #2798
- fix:change azure openai api_version default value to 2024-02-15-preview by @leslie2046 in #2797
- fix:typo by @leslie2046 in #2808
- Improve automatic prompt generation by @WeepsDanky in #2805
- Fix tts api err by @charli117 in #2809
- feat: add Vietnamese vi-VN by @vigstudio in #2807
- feat: add French fr-FR by @lmagnien in #2810
- generalize position helper for parsing _position.yaml and sorting objects by name by @bowenliang123 in #2803
- fix: doc for completion-messages by @crazywoola in #2820
- feat:add api-version selection for azure openai APIs by @leslie2046 in #2821
- feat(llm/models): add claude-3-haiku-20240307 by @lroolle in #2825
- enhance: use override_settings for concurrent stable diffusion by @QunBB in #2818
- fix: doc for datasets by @ChiayenGu in #2831
- feat: add weekday calculator in time tool by @bowenliang123 in #2822
- fix: compatible to old tool config by @Yeuoly in #2837
- fix: The generate conversation name was not saved by @fengdwx in #2836
- Feat/add script to check i18n keys by @crazywoola in #2835
- Fix/localai by @Yeuoly in #2840
- Fix/compatible to old tool config by @Yeuoly in #2839
- fix: use supported languages only for install form by @crazywoola in #2844
- prevent auto scrolling down to bottom when user already scrolled up by @wststone in #2813
- fix: charts encoding by @Yeuoly in #2848
- fix: api doc duplicate symbols by @crazywoola in #2853
- Refactor: Streamline the build-push and deploy-dev workflow by @lroolle in #2852
- fix: print exception logs for ValueError and InvokeError by @bowenliang123 in #2823
- feat: add model for 01.ai, yi-chat-34b series by @soulteary in #2865
- feat: Allow users to specify AWS Bedrock validation models by @soulteary in #2857
- fix: unstable function call response arguments missing by @VoidIsVoid in #2872
- add max_tokens parameter rule for zhipuai glm4 and glm4v by @orangeclk in #2861
- add tenant id index for document and document_segment table by @JohnJyong in #2873
- feat:Embedding models Support for the Aliyun dashscope text-embedding-v1 and text-embedding-v2 by @Onelevenvy in #2874
- feat: Add tools for open weather search and image generation using the Spark API. by @Onelevenvy in #2845
- Feat/support tool credentials bool schema by @Yeuoly in #2875
- fix/Add isModel flag to AgentTools component by @Yeuoly in #2876
- fix enable annotation reply when collection is None by @JohnJyong in #2877
- feat: AWS Bedrock Claude3 by @soulteary in #2864
- i18n: update bedrock label by @soulteary in #2879
- feat: add icons for 01.ai by @crazywoola in #2883
- fix: Fix the problem of system not working by @soulteary in #2884
- fix: anthropic system prompt not working by @soulteary in #2885
- Bump tiktoken to 0.6.0 to support text-embedding-3-* in encoding_for_model by @bowenliang123 in #2891
- chore: use API Key instead of APIKey by @soulteary in #2888
- feat:support azure openai llm 0125 version by @leslie2046 in #2889
- chore: Update TongYi models prices by @soulteary in #2890
- chore: update pr template by @crazywoola in #2893
- chore: update Qwen model params by @soulteary in #2892
- fix incorrect exception raised by api tool which leads to incorrect L… by @lancemao in #2886
- feat: optimize ollama model default parameters by @takatost in #2894
- chore: update Yi models params by @soulteary in #2895
- fix: Ignore some emtpy page_content when append to split_documents by @listeng in #2898
- Feat/add-NVIDIA-as-a-new-model-provider by @joshua20231026 in #2900
- bump version to 0.5.10 by @takatost in #2902
New Contributors
- @Weaxs made their first contribution in #2796
- @Ag2S1 made their first contribution in #2798
- @vigstudio made their first contribution in #2807
- @QunBB made their first contribution in #2818
- @ChiayenGu made their first contribution in #2831
- @fengdwx made their first contribution in #2836
- @soulteary made their first contribution in #2865
- @VoidIsVoid made their first contribution in #2872
- @Onelevenvy made their first contribution in #2874
- @listeng made their first contribution in #2898
Full Changelog: 0.5.9...0.5.10
v0.5.9
New Features
- Supported Groq LLM by @Yeuoly #2733
- Supported Azure OpenAI Embedding v3 models by @Tuccuay #2758
- Supported Azure Whisper model by @leslie2046 #2732
- Supported Azure TTS by @leslie2046 #2751
- OpenAI compatible API provider supported function calling by @JohnJyong #2783
- Added tavily tool for searching by @Yash-1511 #2681
- Added QR code generation tool by @bowenliang123 #2699
- Added Twilio tool for sending text and WhatsApp messages by @Yash-1511 #2700
- Added DingTalk(钉钉) tool for sending messages to chat group bot via webhook by @bowenliang123 #2693
- Added AIPPT tool by @Yeuoly #2725
- Optimized database connection when LLM invoking, avoid occupying database connection pool connections for a long time in LLM reasoning by @takatost #2774
Update Guide
Deploying with Docker Compose:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
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 pip install -r requirements.txt
-
Then, let's run the migration script:
flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- Fix tts play logic by @charli117 in #2683
- FEAT: add tavily tool for searching... A search engine for LLM by @Yash-1511 in #2681
- Fix/agent react output parser by @Yeuoly in #2689
- feat: support HTTP response compression in api server by @bowenliang123 in #2680
- fix: replace os.path.join with yarl by @Yeuoly in #2690
- make volume folders for milvus docker containers ignored by git by @bowenliang123 in #2694
- fix mistralai icon by @joshua20231026 in #2707
- feat: add qrcode tool for QR code generation by @bowenliang123 in #2699
- Fix rebuild index&csv parsing by @charli117 in #2705
- FEAT: Add twilio tool for sending text and whatsapp messages by @Yash-1511 in #2700
- fix(web): chat input auto resize by window by @JunIce in #2696
- fix: chatbot service api auto generate name default value error by @iamjoel in #2709
- fix error msg format issue by @JohnJyong in #2715
- fix qa index processor tenant id is None error by @JohnJyong in #2713
- fix typo: responsing -> responding by @lancemao in #2718
- Feat: AIPPT & DynamicToolParamter by @Yeuoly in #2725
- fix: max tokens can only up to 2048 by @Yeuoly in #2734
- fix:delete the slash at the end of xinference provider server_url by @kztao in #2730
- fix: check webhook key of Wecom tool in valid UUID form and fix typo by @bowenliang123 in #2719
- Feat/add groq by @Yeuoly in #2733
- Fix/jina tokenizer cache by @Yeuoly in #2735
- feat:support azure whisper model and fix:rename text-embedidng-ada-002.yaml to text-embedding-ada-002.yaml by @leslie2046 in #2732
- fix: missing en_name of aippt by @Yeuoly in #2737
- fix: the behavior of save action in opening config panel by @crazywoola in #2736
- fix:missing import by @leslie2046 in #2739
- UPDATE: Twilio tool crdential verification by @Yash-1511 in #2741
- Use
python-docx
to extract docx files by @bowenliang123 in #2654 - fix overlap and splitter optimization by @JohnJyong in #2742
- feat: support error correction and border size in qrcode tool by @bowenliang123 in #2731
- use SVG icons for built-in tools by @bowenliang123 in #2748
- fix: image tokenizer by @Yeuoly in #2752
- Feat/model as tool by @Yeuoly in #2744
- enhance: custom tool timeout by @Yeuoly in #2754
- fix: valid password on reset-password page by @yoogoc in #2753
- replace message content type list to string when file_objs is empty .. by @vikeychen in #2745
- feat: Add new Azure OpenAI Embedding models by @Tuccuay in #2758
- chore: rename lastStep to previousStep by @crazywoola in #2759
- Feat/tool secret parameter by @Yeuoly in #2760
- SMTP authentication is optional by @lmagnien in #2765
- fix: app name can be empty in settings modal by @vikeychen in #2761
- fix: auto prompt by @zxhlyh in #2768
- fix: auto closing when close local image uploading by @wststone in #2767
- doc: add suggested questions back by @crazywoola in #2771
- feat: optimize db connection when llm invoking by @takatost in #2774
- fix: dataset segements api by @crazywoola in #2766
- fix: deep copy of model-tool label by @Yeuoly in #2775
- fix: aippt default styles by @Yeuoly in #2779
- overview: fix filter today calc start & end by @lroolle in #2777
- debug/chat: increase notify error duration to 3000 by @lroolle in #2778
- Update README.md by @crazywoola in #2780
- chunk-overlap None check by @JohnJyong in #2781
- fix: api tool provider not found by @Yeuoly in #2782
- Feat/open ai compatible functioncall by @JohnJyong in #2783
- fix delete dataset when dataset has no document by @JohnJyong in #2789
- feat:support azure tts by @leslie2046 in #2751
- feat: add DingTalk(钉钉) tool for sending message to chat group bot via webhook by @bowenliang123 in #2693
- bump version to 0.5.9 by @takatost in #2794
New Contributors
- @lancemao made their first contribution in #2718
- @yoogoc made their first contribution in #2753
- @Tuccuay made their first contribution in #2758
- @lmagnien made their first contribution in #2765
- @lroolle made their first contribution in #2777
Full Changelog: 0.5.8...0.5.9
v0.5.8
New Features
- Added Anthropic
claude-3
LLM with Vision #2684 - Added
jina-reranker-v1-base-en
rerank model #2676 - Added Wecom(企业微信) tool for sending message to chat group bot via webhook by @bowenliang123 #2638
- Added PubMed to tools #2652
- Added arxiv tool for searching scientific papers and articles from Arxiv by @Yash-1511 #2632
Update Guide
Deploying with Docker Compose:
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Go to the next step and update to the latest image:
cd docker docker-compose up -d
Deploying from Source Code:
-
Stop API server, Worker and Web frontend Server.
-
Get the latest code from the main branch:
git checkout main git pull origin main
-
Then, let's run the migration script:
cd api flask db upgrade
Note: To use TTS,
ffmpeg
installation is required on servers running Dify API from source. More details can be found in our FAQ. -
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- feat: support auth type like basic bearer and custom by @Yeuoly in #2613
- refactor: remove unused codes, move core/agent module into dataset retrieval feature by @takatost in #2614
- fix: wrong default model parameters when creating app by @takatost in #2623
- fix: model parameter load presets config by @zxhlyh in #2622
- chore: bump superlinter action from v5 to v6 by @bowenliang123 in #2325
- generalize the generation of new collection name by dataset id by @bowenliang123 in #2620
- fix: remove unnecessary credentials of custom tool by @Yeuoly in #2621
- Fix/custom tool any of by @Yeuoly in #2625
- add logs for vdb-migrate command by @bowenliang123 in #2626
- fix: default mail type invalid in .env.example by @takatost in #2628
- FEAT: Add arxiv tool for searching scientific papers and articles fro… by @Yash-1511 in #2632
- fix: typo in gaode tool by @bowenliang123 in #2636
- fix: Replace path.join with urljoin. by @kztao in #2631
- fix: custom tool max tool by @takatost in #2641
- feat: displaying the tool description when clicking on a custom tool by @iamjoel in #2642
- fix: missing description by @Yeuoly in #2643
- fix: click tool item in app debug page would show detail by @iamjoel in #2644
- Feat/jpn support by @crazywoola in #2651
- fix: default to allcategories when search params is not from recommended by @wststone in #2653
- bugfix: model str maybe empty by @kingo233 in #2660
- fix: use English as the default i18n language by @Yeuoly in #2663
- Add PubMed to tools by @crazywoola in #2652
- Feat: Add documents limitation by @GarfieldDai in #2662
- feat: add Wecom(企业微信) tool for sending message to chat group bot via webhook by @bowenliang123 in #2638
- Fix/app runner typo by @kingo233 in #2661
- fix: fix import from explore apps err when OpenAI not inited by @takatost in #2671
- Doc/update license by @guchenhe in #2666
- fix typo recale to recalc by @xiangpingjiang in #2670
- fix: test custom tool already exists without decrypting credentials by @Yeuoly in #2668
- fix: setup default filters while add credentials by @Yeuoly in #2669
- fix: deep copy customColletion by @Yeuoly in #2673
- Fix vdb merge error by @waltcow in #2650
- Feat/add annotation migrate by @JohnJyong in #2675
- fix: CE edition limits upload file nums by @iamjoel in #2677
- fix: typo in wecom tool by @bowenliang123 in #2674
- add jina-reranker-v1-base-en by @joshua20231026 in #2676
- fix: auto generate prompt result not show by @iamjoel in #2678
- Fix voice selection by @charli117 in #2664
- feat: add Anthropic claude-3 models support by @takatost in #2684
- bump version to 0.5.8 by @takatost in #2685
New Contributors
Full Changelog: 0.5.7...0.5.8