v0.10.1
🚀 What’s New in v0.10.1? 🚀
Welcome to version v0.10.1, where we've made significant strides in expanding functionalities and enhancing user workflows. Here's a quick look at the highlights of this release:
🔹 Claude 3.5 Sonnet v2 Models
Experience advanced language processing across Google Cloud, Bedrock, and Anthropic platforms, seamlessly integrated with the latest technology advancements via #9688, #9685, and #9708.
✨ Code Generator
Empower your Workflow's Code Node with our new Code Generator tool. This feature is designed to streamline coding processes within workflows, boosting development efficiency and reducing manual coding efforts. Check it out in #9051.
🐛 Bug Fixes
-
Custom Icon Restoration: We've reintroduced the flexibility and personalization of custom icons, addressing previous issues to ensure your icons display correctly, as implemented by @zxhlyh in #9654.
-
HTTP Node Improvements: Enhanced JSON handling and simplified request management to boost the stability and security of the HTTP Node by @laipz8200 in #9616, and fixed the handling of empty and string data inputs for consistent performance by @laipz8200 in #9579.
-
File Upload Corrections: Resolved multiple issues affecting file uploads for smoother operations. Image config uploads were corrected by @laipz8200 in #9568.
-
Improved Iteration Handling: Made iterators more robust by gracefully handling empty scenarios, as addressed by @laipz8200 in #9565.
-
VisionConfig Validation: Introduced a validator for
VisionConfig
entities to handleNone
values properly, improving data integrity by @laipz8200 in #9598. -
Workflow Management: Improved workflow and database session management to resolve instabilities and enhance reliability by @laipz8200 in #9581.
-
If-Else Node Enhancement: Enhanced if-else nodes to properly add downstream nodes, ensuring logical consistency in workflow paths by @linfey90 in #9640.
-
Used File in Tools: Addressed errors caused by file operations in tools to ensure smoother functionality by @iamjoel in #9660.
-
Environment Variables: Fixed environmental variable issues for ModelProvider and Tool Position to ensure they operate as intended. Resolved by @tkoshida in #9650.
-
Web App UX: Corrected the style of the features panel specifically in Safari to enhance the overall visual experience by @JzoNgKVO in #9573 and addressed the email login redirect issue and corrected navigation behaviors to improve user experience by @ZhouhaoJiang in #9698.
This update is packed with critical fixes, new features, and exciting enhancements to empower your AI applications. Dive into v0.10.1 and experience these improvements firsthand!
Upgrade Guide
Docker compose deployments
-
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 release branch:
git checkout 0.10.1
-
Update Python dependencies:
cd api poetry install
-
Then, let's run the migration script:
poetry run flask db upgrade
-
Finally, run API server, Worker and Web frontend Server again.
What's Changed
- Build/fix wrong icon name by @AkaraChen in #9527
- enhance: use urllib join instead of fstring by @41tair in #9549
- feat: Update tongyi models by @AAEE86 in #9552
- chore: lint code to remove unused imports and variables by @DDDDD12138 in #9553
- chore: format get_customizable_model_schema return value by @yaoice in #9335
- fix(upload): correct incorrect dictionary key usage by @laipz8200 in #9563
- Fix: file upload support extension .md by @JzoNgKVO in #9564
- fix(iteration): handle empty iterator gracefully by @laipz8200 in #9565
- fix(file upload): correct upload method key for image config by @laipz8200 in #9568
- Fix: style of features panel in safari by @JzoNgKVO in #9573
- dep: bump pydantic to 2.9 by @bowenliang123 in #9077
- fix(validation): improve variable handling and validation by @laipz8200 in #9578
- fix(http_request): handle empty and string data inputs by @laipz8200 in #9579
- fix(workflow): improve database session handling and variable management by @laipz8200 in #9581
- fix(workflow): handle NoneSegments in variable extraction by @laipz8200 in #9585
- refactor(template_transform): use keyword-only arguments by @laipz8200 in #9575
- refactor: add logging extension module for log initialization by @hwzhuhao in #9524
- chore: cleanup ineffective linter rules exclusions by @bowenliang123 in #9580
- fix(entities): add validator for
VisionConfig
to handle None values by @laipz8200 in #9598 - refactor(variables): replace deprecated 'get_any' with 'get' method by @laipz8200 in #9584
- refactor: use dify_config to replace legacy usage of flask app's config by @bowenliang123 in #9089
- chore: (#9089 followup) fix storage factory constructor by @bowenliang123 in #9609
- fix(core): use CreatedByRole enum for role consistency by @laipz8200 in #9607
- fix(storage): use centralized config management by @laipz8200 in #9620
- fix(storage): ensure
storage_runner
initialization within app context by @laipz8200 in #9627 - fix: wrong url of guides doc in new feature panel by @hanfangyuan4396 in #9626
- Fix: doc link of legacy features by @JzoNgKVO in #9634
- fix: update the default model to gpt-4o-mini for duckduckgo ai chat by @hwzhuhao in #9614
- fix(http_request): simplify JSON handling in requests by @laipz8200 in #9616
- fix: fields.Nested(message_file_fields) by @crazywoola in #9632
- fix(api): enhance file factory URL handling by @laipz8200 in #9631
- fix: remove url join by @ZhouhaoJiang in #9635
- fix: file type document is not supported by @hjlarry in #9618
- refactor(api): simplify limit retrieval and return types by @laipz8200 in #9641
- fix(files): update Content-Length handling for tool and remote files by @laipz8200 in #9649
- fix(segments): return empty string instead of "null" for text, log, and markdown properties by @laipz8200 in #9651
- Fix: type missing of remote file in chat by @JzoNgKVO in #9652
- fix: webapp answer icon by @zxhlyh in #9654
- fix: tool use file caused error by @iamjoel in #9660
- Fix/retrieval setting weight default value by @zxhlyh in #9622
- fix: environment variables for ModelProvider and Tool Position are not working by @tkoshida in #9650
- Web app support sending message using numpad enter by @xuzuodong in #9659
- feat(Tools): Refactor the base table plugin by @hgnulb in #9182
- chore(models): convert created_by_role to its value for consistency by @laipz8200 in #9612
- feat: add code generator by @Kota-Yamaguchi in #9051
- fix: add downstream nodes of this branch by @linfey90 in #9640
- feat: add upstash as a new vector database provider by @userzhangqg in #9644
- style: chat answer align with new UI by @xuzuodong in #9658
- fix(variable_pool): handle invalid attributes in variable lookup by @laipz8200 in #9646
- chore: reuse existing test functions with upstash vdb by @yaoice in #9679
- Feat/optimize login by @ZhouhaoJiang in #9642
- feat(api): enhance file preview handling by @laipz8200 in #9674
- feat(condition): add support for 'exists' and 'not exists' operators by @laipz8200 in #9687
- add bedrock claude 3.5 v2 support by @ybalbert001 in #9685
- fix: remove email code login redirect by @ZhouhaoJiang in #9698
- feat(api): add video and audio file size limits to upload config by @laipz8200 in #9703
- fix: workflow [if node] checklist by @zxhlyh in #9699
- Help documentation URL correction by @AAEE86 in #9704
- fix: revert ref usage in handleFormChange to fix IME input issues by @kurokobo in #9672
- feat: added claude 3.5 sonnet v2 model to Google Cloud Vertex AI by @hellof20 in #9688
- nltk security issue and upgrade unstructured by @JohnJyong in #9558
- build(deps): bump mermaid from 10.4.0 to 10.9.3 in /web by @dependabot in #9709
- feat(model_runtime): add new model 'claude-3-5-sonnet-20241022' by @laipz8200 in #9708
- Feat: use file size limit from api by @JzoNgKVO in #9711
- build(deps): bump next from 14.2.4 to 14.2.10 in /web by @dependabot in #9713
- feat: support user-defined configuration of log file size and retention count by @hwzhuhao in #9610
- Revert "Feat: use file size limit from api" by @JzoNgKVO in #9714
- fix: refresh current page if url contains token by @douxc in #9718
- chore: update version to 0.10.1 by @laipz8200 in #9689
- Modify characters by @AAEE86 in #9707
- remove ppt import by @JohnJyong in #9721
- downgrade unstructured nltk version by @JohnJyong in #9726
- add vdb py test by @JohnJyong in #9706
- fixed: variable reference error by @luckylhb90 in #9722
New Contributors
- @AkaraChen made their first contribution in #9527
- @41tair made their first contribution in #9549
- @tkoshida made their first contribution in #9650
- @linfey90 made their first contribution in #9640
Full Changelog: 0.10.0...0.10.1