invoke streaming some chat application generators cannot respond fully #51

Open
opened 2026-02-15 21:15:27 -05:00 by yindo · 1 comment
Owner

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

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
yindo added the question label 2026-02-15 21:15:27 -05:00
Author
Owner

@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:

  1. SDK version: Which version of dify-plugin are you using?

  2. Reproduction steps:

    • What type of app are you invoking? (Chat, Workflow, Agent, etc.)
    • What does the workflow/app look like? Does it have specific nodes?
  3. Expected vs Actual behavior:

    • What response do you expect?
    • What response do you actually get? (truncated? missing data? error?)
  4. Code example: Please provide a minimal code snippet that reproduces the issue.

  5. Error logs: If there are any error messages or logs, please share them.

Also note that the files parameter 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?

@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: 1. **SDK version**: Which version of `dify-plugin` are you using? 2. **Reproduction steps**: - What type of app are you invoking? (Chat, Workflow, Agent, etc.) - What does the workflow/app look like? Does it have specific nodes? 3. **Expected vs Actual behavior**: - What response do you expect? - What response do you actually get? (truncated? missing data? error?) 4. **Code example**: Please provide a minimal code snippet that reproduces the issue. 5. **Error logs**: If there are any error messages or logs, please share them. Also note that the `files` parameter in your code example has been removed in newer SDK versions. Please see [#76](https://github.com/langgenius/dify-plugin-sdks/issues/76#issuecomment-3630835160) 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?
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-sdks#51