mirror of
https://github.com/langgenius/dify-plugin-sdks.git
synced 2026-07-22 02:15:22 -04:00
invoke streaming some chat application generators cannot respond fully #51
Reference in New Issue
Block a user
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @qiuxia5 on GitHub (Aug 2, 2025).
def invoke(
self,
app_id: str,
inputs: dict,
response_mode: Literal["streaming", "blocking"],
conversation_id: str,
files: list,
) -> Generator[dict, None, None] | dict:
pass
When response_mode=streaming is set, some chat application have node with try catch exception generators cannot respond fully
@Mairuis commented on GitHub (Dec 9, 2025):
Hi @qiuxia5,
Thanks for reporting this issue. However, we need more information to investigate the problem.
Could you please provide:
SDK version: Which version of
dify-pluginare you using?Reproduction steps:
Expected vs Actual behavior:
Code example: Please provide a minimal code snippet that reproduces the issue.
Error logs: If there are any error messages or logs, please share them.
Also note that the
filesparameter in your code example has been removed in newer SDK versions. Please see #76 for the correct way to pass files.This issue might be related to #191 (Streaming output interrupt when calling chatflow). Are you experiencing a similar problem?