Skip to content

Releases: haoyuhu/dify-client-python

v1.0.3

25 Mar 05:44

Choose a tag to compare

dify-client-python 1.0.3 (2026-03-25)

Added

  • Audio models and client methods:
    • audio_to_text / aaudio_to_text
    • text_to_audio / atext_to_audio
  • New runtime stream event support:
    • tts_message, workflow_paused, iteration_*, loop_*
    • text_chunk, text_replace
    • human_input_required, human_input_form_filled, human_input_form_timeout
  • Workflow stop endpoint compatibility fallback:
    • try /workflows/tasks/{task_id}/stop
    • fallback to /workflows/{task_id}/stop on not found
  • Added broad test coverage for wrappers, async flows, stream parsing, and endpoint compatibility.

Changed

  • Runtime request/response models aligned with latest Dify runtime schema.
  • File model types expanded: image, document, audio, video, custom.
  • Packaging/runtime requirements updated:
    • Python >=3.8
    • pydantic>=2,<3
  • CI/build pipeline hardened for build backend deps (setuptools, wheel).

Fixed

  • Fixed Python 3.8/3.12 CI build failures around packaging backend deps.
  • Fixed async CI instability by pinning AnyIO test backend to asyncio.
  • Improved HTTP/SSE non-JSON error parsing robustness.

Validation

  • PR matrix green on 3.8/3.9/3.10/3.11/3.12.
  • Tests: 30 passed.
  • Security checks: bandit clean, pip-audit no known vulnerabilities for pinned runtime deps.

Version 1.0.1

05 Jun 15:03

Choose a tag to compare

  • fix: json decoding failure for Dify 0.6.6

Version 1.0.0

27 Apr 03:43

Choose a tag to compare

  • Synchronous and Asynchronous Support: The client offers both synchronous and asynchronous methods, allowing for
    flexible integration into various Python codebases and frameworks.
  • Stream and Non-stream Support: Seamlessly work with both streaming and non-streaming endpoints of the Dify API for
    real-time and batch processing use cases.
  • Comprehensive Endpoint Coverage: Support completion, chat, workflows, feedback, file uploads, etc., the client
    covers all available Dify API endpoints.