Releases: haoyuhu/dify-client-python
Releases · haoyuhu/dify-client-python
v1.0.3
dify-client-python 1.0.3 (2026-03-25)
Added
- Audio models and client methods:
audio_to_text/aaudio_to_texttext_to_audio/atext_to_audio
- New runtime stream event support:
tts_message,workflow_paused,iteration_*,loop_*text_chunk,text_replacehuman_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}/stopon not found
- try
- 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
- Python
- 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:
banditclean,pip-auditno known vulnerabilities for pinned runtime deps.
Version 1.0.1
- fix: json decoding failure for Dify 0.6.6
Version 1.0.0
- 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.