github langgenius/dify 1.8.1
v1.8.1

latest release: 2.0.0-beta.1
2 days ago

🌟 What's New in v1.8.1? 🌟

Welcome to version 1.8.1! πŸŽ‰πŸŽ‰πŸŽ‰ This release focuses on stability, performance improvements, and developer experience enhancements. We've built great features and resolved critical database issues based on community feedback.

πŸš€ Features

  • Export DSL from History: Able to export workflow DSL directly from version history panel. (See #24939, by GuanMu)
  • Downvote with Reason: Enhanced feedback system allowing users to provide specific reasons when downvoting responses. (See #24922, by jubinsoni)
  • Multi-modal/File: Added filename support to multi-modal prompt messages. (See #24777, by -LAN-)
  • Advanced Chat File Handling: Improved assistant content parts and file handling in advanced chat mode. (See #24663, by QIN2DIM)

⚑ Enhancements

  • DB Query: Optimized SQL queries that were performing partial full table scans. (See #24786, by Novice)
  • Type Checking: Migrated from MyPy to Basedpyright. (See #25047, by -LAN-)
  • Indonesian Language Support: Added Indonesian (id-ID) language support. (See #24951, by lyzno1)
  • Jinja2 Template: LLM prompt Jinja2 templates now support more variables. (See #24944, by 17hz)

πŸ› Fixes

  • Security/XSS: Fixed XSS vulnerability in block-input and support-var-input components. (See #24835, by lyzno1)
  • Persistence Session Management: Resolved critical database session binding issues that were causing "not bound to a Session" errors. (See #25010, #24966, by Will)
  • Workflow & UI Issues: Fixed workflow publishing problems, resolved UUID v7 conflicts, and addressed various UI component issues including modal handling and input field improvements. (See #25030, #24643, #25034, #24864, by Will, -LAN-, 17hz & Atif)

Version 1.8.1 represents a significant step forward in platform stability and developer experience. The migration to modern type checking and database systems, combined with comprehensive bug fixes, creates a more robust foundation for future features.

Huge thanks to all our contributors who made this release possible! We welcome your ongoing feedback to help us continue improving the platform together.


Upgrade Guide

Docker Compose Deployments

  1. Back up your customized docker-compose YAML file (optional)

    cd docker
    cp docker-compose.yaml docker-compose.yaml.$(date +%s).bak
  2. Get the latest code from the main branch

    git checkout main
    git pull origin main
  3. Stop the service. Please execute in the docker directory

    docker compose down
  4. Back up data

    tar -cvf volumes-$(date +%s).tgz volumes
  5. Upgrade services

    docker compose up -d

Source Code Deployments

  1. Stop the API server, Worker, and Web frontend Server.

  2. Get the latest code from the release branch:

    git checkout 1.8.1
  3. Update Python dependencies:

    cd api
    uv sync
  4. Then, let's run the migration script:

    uv run flask db upgrade
  5. Finally, run the API server, Worker, and Web frontend Server again.


What's Changed

New Contributors

Full Changelog: 1.8.0...1.8.1

Don't miss a new dify release

NewReleases is sending notifications on new releases.