Releases: langgenius/dify
v0.4.8
- Jina AI
jina-embeddings-v2-base-zh
model supported. - Minimax
abab5.5s-chat
model supported. - App OpenAPI add LLM usage return
- 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
-
Then, let's run the migration script:
cd api flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- fix qdrant tag in docker-compose.yaml by @takatost in #2047
- fix: dataset sidebar by @zxhlyh in #2048
- Add jina-embeddings-v2-base-zh model configuration by @rickythink in #2049
- fix multi-dataset retrieve score limit by @JohnJyong in #2050
- timeout parameter error by @JohnJyong in #2052
- Update contribution guide by @guchenhe in #2053
- fix indentation & move contact into community section by @guchenhe in #2055
- Update README.md by @crazywoola in #2058
- fix: add sharp package to fix sharp-missing-in-production warning by @bowenliang123 in #2060
- Fix aspect ratio of buttons in readme by @guchenhe in #2062
- feat: add abab5.5s-chat by @crazywoola in #2063
- fix: free quota type apply button missing by @takatost in #2069
- fix: azure customize model name duplicate by @takatost in #2073
- feat: service api add llm usage by @takatost in #2051
- bump version to 0.4.8 by @takatost in #2074
Full Changelog: 0.4.7...0.4.8
v0.4.7
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
-
Then, let's run the migration script:
cd api flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- fix: chat log wont show up by @rickythink in #2007
- fix: model provider credentials null value validate failed by @takatost in #2009
- text spliter length method use default embedding model tokenizer by @JohnJyong in #2011
- Update CONTRIBUTING.md by @WeepsDanky in #2010
- fixup /stop api by @killpanda in #2012
- fix: tongyi stream generate not incremental and add qwen max models by @takatost in #2013
- feat: huggingface llm add new params. by @GarfieldDai in #2014
- fix: datasets indexing-status api document by @vikeychen in #2019
- fix: openai tool tokens by @Yeuoly in #2026
- doc: replace readme images by @crazywoola in #2030
- ascii filter Unicode U+FFFE by @JohnJyong in #2038
- doc: replace readme images by @crazywoola in #2039
- fix: dependencies security problems by @takatost in #2040
- feat: fix debug rerank params error by @iamjoel in #2041
- fix: dataset and moderation. by @GarfieldDai in #2042
- fix SQL slow query by @JohnJyong in #2043
- fix: qwen top_p min/max wrong by @takatost in #2044
- bump version to 0.4.7 by @takatost in #2045
New Contributors
- @WeepsDanky made their first contribution in #2010
- @vikeychen made their first contribution in #2019
Full Changelog: 0.4.6...0.4.7
v0.4.6
- Support for Models Integration Provided by the
Ollama
, details: https://docs.dify.ai/advanced/model-configuration/ollama - Fix some problems.
What's Changed
- chore: remove unused code by @crazywoola in #1989
- feat: app sidebar support collapse by @zxhlyh in #1997
- feat: make default slider behavior better by @crazywoola in #1988
- optimize baichuan invalid key error by @Yeuoly in #1996
- fix: azure openai stream response usage missing by @takatost in #1998
- fix data_source_detail_dict parameter error by @JohnJyong in #2000
- feat: ollama support by @takatost in #2003
- improve: introduce isort for linting Python imports by @bowenliang123 in #1983
- fix: model parameter default value by @zxhlyh in #2005
- bump version to 0.4.6 by @takatost in #2006
Full Changelog: 0.4.5...0.4.6
v0.4.5
Fix some BUGs.
What's Changed
- correct xorbits spelling by @guchenhe in #1965
- fix: cover missed source paths for eslint by @bowenliang123 in #1956
- fix: update model list by @zxhlyh in #1967
- improvement: introduce Super-Linter actions to check style for shell script, dockerfile and yaml files by @bowenliang123 in #1966
- web: bump Next.js to 14.0 for faster local server startup by @bowenliang123 in #1925
- enforce utf-8 encoding for provider response by @guchenhe in #1973
- web: requires NodeJs 18.17 at minimum for NextJs 14 by @bowenliang123 in #1974
- fix: indentation violations in YAML files by @bowenliang123 in #1972
- Azure openai init by @charli117 in #1929
- zhipu embedding token method by @JohnJyong in #1976
- Fix hosting cloud version limit by @charli117 in #1975
- fix: httpx socks package missing by @takatost in #1977
- fix rerank issue when doing economy search by @JohnJyong in #1978
- Update Resend SDK and resend api url in configuration. by @BenjaminX in #1963
- Update Qdrant version by @JohnJyong in #1979
- Escape capturing prices with dollar sign as math expressions by @guchenhe in #1985
- fix get embedding model provider in empty dataset by @JohnJyong in #1986
- fix: resend url optional by @takatost in #1987
- fix: baichuan max chunks by @Yeuoly in #1990
- fix: azure openai model parameters wrong when using hosting credentials by @takatost in #1993
- feat: bump version 0.4.5 by @takatost in #1994
Full Changelog: 0.4.4...0.4.5
v0.4.4
Add Together.ai model provider and fix some bugs.
What's Changed
- feat: optimize memory & invoke error output by @takatost in #1931
- fix: vision fail in complete app by @takatost in #1933
- Feat/optimize entity construct by @takatost in #1935
- feat: reuse decoding_rsa_key & decoding_cipher_rsa & optimize construct by @takatost in #1937
- fix: llm result usage none by @takatost in #1940
- fix: gpt-4-32k model name empty in OpenAI response by @takatost in #1941
- fix: arg user required and must not be null in service generate api by @takatost in #1943
- fix: text completion app cannot get data. by @GarfieldDai in #1942
- fix: text-generation run batch by @zxhlyh in #1945
- fix streaming by @guchenhe in #1944
- Add Together.ai's OpenAI API-compatible inference endpoints by @guchenhe in #1947
- feat: reorder togetherai by @takatost in #1951
- change API key field to 'required' by @guchenhe in #1953
- optimize qa prompt by @JohnJyong in #1957
- prohibit enable and disable function when segment is not completed by @JohnJyong in #1954
- delete remnant 'required': false by @guchenhe in #1955
- fix: check result should be string. by @GarfieldDai in #1959
- fix: generate not stop when pressing stop link by @takatost in #1961
- bump version to 0.4.4 by @takatost in #1962
Full Changelog: 0.4.3...0.4.4
v0.4.3
Optimize performance & fix few bugs.
What's Changed
- fix: zhipuai chatglm turbo prompts must user, assistant in sequence by @takatost in #1899
- fix: customize model schema fetch failed raise error by @takatost in #1900
- Fix/add qdrant timeout default value by @JohnJyong in #1901
- fix: remove useless code by @zxhlyh in #1903
- fix: read file encoding error by @newsouther in #1902
- fix: tongyi generate error by @takatost in #1904
- fix: array oob in azure openai embeddings by @crazywoola in #1905
- fix: spark credentials validate by @takatost in #1906
- fix: notion_indexing_estimate embedding_model_instance NPE by @takatost in #1907
- fix: window size changed causes result regeneration by @iamjoel in #1908
- fix: model quota format by @zxhlyh in #1909
- fix: remove useless code. by @GarfieldDai in #1913
- ci: Properly cache pip packages by @bowenliang123 in #1912
- web: Add style CI workflow to enforce eslint checks on web module by @bowenliang123 in #1910
- fix customer spliter character by @JohnJyong in #1915
- feat: model parameter prefefined by @zxhlyh in #1917
- fix: email template style by @takatost in #1914
- Fix comparison bug in ApplicationQueueManager by @waltcow in #1919
- fix: app create raise error when no available model providers by @takatost in #1921
- feat: optimize invoke errors by @takatost in #1922
- alter schedule timedelta by @JohnJyong in #1923
- fix a typo in file agent_app_runner.py by @liupeng0913 in #1927
- fix: xinference cache by @Yeuoly in #1926
- feat: optimize performance by @takatost in #1928
- feat: bump version 0.4.3 by @takatost in #1930
New Contributors
- @newsouther made their first contribution in #1902
- @liupeng0913 made their first contribution in #1927
Full Changelog: 0.4.2...0.4.3
v0.4.2
What's Changed
- fix: ciphertext error by @takatost in #1872
- Fix/model runtime by @Yeuoly in #1873
- fix: openai origin credential not start with { by @takatost in #1874
- fix: more like this. by @GarfieldDai in #1875
- fix: remove tiktoken from text splitter by @Yeuoly in #1876
- doc: Respect and prevent updating existed yarn lockfile when installing dependencies by @bowenliang123 in #1871
- fix: openai embedding list out of bound by @crazywoola in #1879
- fix: model parameter modal initial value by @zxhlyh in #1883
- fix: model parameter stop sequence by @zxhlyh in #1885
- Fix variable name in AgentApplicationRunner by @waltcow in #1884
- fix: gemini block error by @takatost in #1877
- fix: huggingface and replicate. by @GarfieldDai in #1888
- fix: anthropic messages empty raise errors by @takatost in #1893
- Grammar fix by @BorisPolonsky in #1892
- add qdrant client timeout limit by @JohnJyong in #1894
- add example api url endpoint in placeholder by @guchenhe in #1887
- fix: zhipuai history format wrong by @takatost in #1897
- bump version to 0.4.2 by @takatost in #1898
New Contributors
- @BorisPolonsky made their first contribution in #1892
Full Changelog: 0.4.1...0.4.2
v0.4.1
What's Changed
- fix: agent strategy missing in app model config by @takatost in #1863
- fix: default model parameter precision by @takatost in #1864
- fix: hit testing throws errors cause internal server error by @takatost in #1865
- fix: provider create cause IntegrityError by @takatost in #1866
- fix: Azure text-davinci-003 missing by @takatost in #1867
- fix: IntegrityError import wrong by @takatost in #1868
- fix: xinference secret server_url by @Yeuoly in #1869
- bump version to 0.4.1 by @takatost in #1870
Full Changelog: 0.4.0...0.4.1
v0.4.0
🎉🎉 Dify's Version 0.4 is out now.
We've made some serious under-the-hood changes to how the Model Runtime works, making it more straightforward for our specific needs, and paving the way for smoother model expansions and more robust production use.
What's Changed
-
Model Runtime Rework: We've moved away from LangChain, simplifying the model layer. Now, expanding models is as easy as setting up the model provider in the backend with a bit of YAML.
For more details, see: https://github.com/langgenius/dify/blob/main/api/core/model_runtime/README.md
-
App Generation Update: Replacing the old
Redis Pubsub
queue withthreading.Queue
for a more reliable, performant, and straightforward workflow. -
Model Providers Upgraded: Support for both preset and custom models, ideal for adding OpenAI
fine-tuned models
or fitting into various MaaS platforms. Plus, you can now check out supported models without any initial configuration. -
Context Size Definition: Introduced distinct
context size
settings, separate fromMax Tokens
, to handle the different limits and sizes in models like OpenAI'sGPT-4 Turbo
. -
Flexible Model Parameters: Customize your model's behavior with easily adjustable parameters through YAML.
-
GPT-2 Tokenizer Files: Now cached within Dify's codebase, making builds quicker and solving issues related to acquiring tokenizer files in offline source deployments.
-
Model List Display: The App now displays all supported preset models, including details on any that aren't available and how to configure them.
-
New Model Additions: Including Google's
Gemini Pro
andGemini Pro Vision
models (Vision requires an image input), Azure OpenAI'sGPT-4V
, and support forOpenAI-API-compatible
providers. -
Expanded Inference Support:
Xorbit Inference
now includes chat mode models, and there's a wider range of models supporting Agent inference. -
Updates & Fixes: We've updated other model providers to be in sync with the latest version APIs and features, and squashed a series of minor bugs for a smoother experience.
Catch you in the code,
The Dify Team 🛠️
Change Log
- fix: not return annotation author error happens by @iamjoel in #1793
- fix typo by @kztao in #1791
- Compatible with the situation where there is no user information. by @JohnJyong in #1792
- ppt & pptx improve by @JohnJyong in #1790
- Fix: delete member dropdown not shown by @crazywoola in #1794
- fix: settings/members dropdown ui by @crazywoola in #1797
- fix gpt 4v upload image issue by @JohnJyong in #1799
- feat: add billing switch. by @GarfieldDai in #1789
- Update README.md by @joshua20231026 in #1802
- Update README.md by @joshua20231026 in #1803
- Update README_ES.md by @joshua20231026 in #1807
- Update README_JA.md by @joshua20231026 in #1805
- Update README_CN.md by @joshua20231026 in #1806
- Update README_CN.md by @joshua20231026 in #1804
- feat: add email template for invite new user in workspace by @crazywoola in #1810
- Fix azure openai gpt4v&1106 config by @charli117 in #1811
- fix: mail link color by @crazywoola in #1812
- Parse base64 eml file by @charli117 in #1796
- add link to canny to README, plus some rewording by @guchenhe in #1814
- feat: add roadmap and feedback link by @iamjoel in #1816
- fix unstructured requirements by @JohnJyong in #1821
- Fix Azure OpenAI Provider BASE_MODELS by @zhangao0086 in #1813
- fix: edited by is missing by @crazywoola in #1824
- Update README.md by @crazywoola in #1825
- fix: selection too long break ui by @iamjoel in #1826
- Fix chitchat lost context by @charli117 in #1828
- feat: nginx add "restart: always" by @takatost in #1829
- feat: comment db port to host by @takatost in #1831
- fix file type not support when preview by @JohnJyong in #1841
- fix segment update issue by @JohnJyong in #1844
- fix: splitting text ui broken by @iamjoel in #1848
- Feat/add community link to dropdown by @crazywoola in #1851
- ci: Bump Docker Github actions by @bowenliang123 in #1852
- Refactor BaseVectorIndex delete method by @waltcow in #1853
- Add data clean schedule by @JohnJyong in #1859
- fix file estimate issue by @JohnJyong in #1860
- Model Runtime by @takatost in #1858
- frontend for model runtime by @zxhlyh in #1861
New Contributors
- @joshua20231026 made their first contribution in #1802
- @zhangao0086 made their first contribution in #1813
- @bowenliang123 made their first contribution in #1852
Full Changelog: 0.3.34...0.4.0
v0.3.34
Features
- Annotation Reply, see details: Link
- Dify Knowledge supports
unstructured.io
as the file extraction solution. - Azure OpenAI add
gpt-4-1106-preview
、gpt-4-vision-preview
models support. - SaaS services now support replacing the logo of WebApp after subscribing.
Important Upgrade Notice
-
Annotation Reply
The annotation function can support direct replies to related questions, so we need to assign values to previously unstored questions for the table
message_annotations
.we need doing below command in your api docker container
docker exec -it docker-api-1 bash flask add-annotation-question-field-value
or direct run below command when you launch from source codes.
cd api flask add-annotation-question-field-value
-
Unstructured.io Support
Due to the support of this feature, we have added four new formats of text parsing( msg , eml, ppt, pptx ) and optimized two text parsing formats (text, markdown) in our SAAS erviroment.
For localhost you need to do below actions to support unstructured.io
docker pull
from unstructured's image repository.
docker pull downloads.unstructured.io/unstructured-io/unstructured-api:latest
- Once pulled, you can launch the container
docker run -d --rm --name unstructured-api downloads.unstructured.io/unstructured-io/unstructured-api:latest --port 8000 --host 0.0.0.0
- In our docker-compose.yaml, add two new environment variables for the
api
andworker
services.
ETL_TYPE=Unstructured UNSTRUCTURED_API_URL=http://unstructured:8000/general/v0/general
- Restart the Dify‘s services
docker-compose up -d
What's Changed
- feat: Annotation management by @JohnJyong in #1767
- feat: annotation management frontend by @iamjoel in #1764
- feat: add unstructured.io support by @JohnJyong in #1780
- feat: unstructured frontend by @iamjoel in #1777
- feat: azure openai add gpt-4-1106-preview、gpt-4-vision-preview models by @charli117 in #1751
- feat: custom webapp logo by @zxhlyh in #1766
- feat: can replace logo. by @GarfieldDai in #1752
- feat: web app support some feature by @zxhlyh in #1753
- feat: update pricing by @iamjoel in #1749
- feat: remove billing config. by @GarfieldDai in #1761
- feat: only tenant owner can subscription. by @GarfieldDai in #1770
- feat: add self checks to issues and discussions templates by @guchenhe in #1742
- feat: remove stripe and anthropic. by @GarfieldDai in #1746
- feat: bump version to 0.3.34 by @takatost in #1788
- chore: update term links by @iamjoel in #1748
- chore: update annotation reply english i18n by @iamjoel in #1773
- chore: enchance annotation ui by @iamjoel in #1781
- chore: enchance ext name by @iamjoel in #1787
- chore: update bm25 search properties by @ethuwlwfu3288 in #1758
- fix: default types by @crazywoola in #1728
- fix: prompt null parse var error by @iamjoel in #1731
- fix: server component use translate errorts lint error by @iamjoel in #1732
- fix only full text search in app issue by @JohnJyong in #1736
- fix: qa regex by @crazywoola in #1738
- fix: check rerank document is not empty by @JohnJyong in #1740
- fix: ad block disabled tracking would block ga then can not pay by @iamjoel in #1741
- fix: issue templates not render correctly by @crazywoola in #1763
- fix annotation reply in universal chat by @JohnJyong in #1768
- fix annotation query exception by @JohnJyong in #1771
- fix: not owner can not pay by @iamjoel in #1772
- fix: get billing info in self-hosted edition from current workspace by @zxhlyh in #1774
- fix: add then eidt annotion cause show bug by @iamjoel in #1775
- fix: vdb index issue by @JohnJyong in #1776
- fix: web app text by @zxhlyh in #1784
- fix: unstructured file extension by @zxhlyh in #1785
New Contributors
- @guchenhe made their first contribution in #1742
- @ethuwlwfu3288 made their first contribution in #1758
Full Changelog: 0.3.33...0.3.34