Error when using a vision model compatible with the OpenAI-API-compatible #676

Closed
opened 2026-02-16 10:20:09 -05:00 by yindo · 10 comments
Owner

Originally created by @jbb892543969 on GitHub (Sep 28, 2025).

Self Checks

  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues Dify issues & Dify Official Plugins, including closed ones.
  • I confirm that I am using English to submit this report (我已阅读并同意 Language Policy).
  • [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

1.9.0

Plugin version

0.0.22

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

There is an error when running the visual model in Dify, but it works fine when I directly call it via the /v1/chat/completions endpoint.

Image Image

✔️ Error log

2025-09-29 01:05:27.007 ERROR [GraphWorker-0] [base.py:211] - Error in stream reponse for plugin {'code': -500, 'message': '{"message":"{\"args\":{},\"error_type\":\"ChunkedEncodingError\",\"message\":\"Response ended prematurely\"}","error_type":"PluginInvokeError","args":null}', 'data': None}
2025-09-29 01:05:27.009 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1758786549398 failed with ABORT strategy: [openai_api_compatible] Error: req_id: 3dcdae0e0b PluginInvokeError: {"args":{},"error_type":"ChunkedEncodingError","message":"Response ended prematurely"}
2025-09-29 01:05:27.217 ERROR [Thread-160 (_generate_worker)] [workflow_entry.py:110] - Unknown Error when workflow entry running
Traceback (most recent call last):
File "/app/api/core/workflow/workflow_entry.py", line 106, in run
yield from generator
File "/app/api/core/workflow/graph_engine/graph_engine.py", line 262, in run
raise self._graph_execution.error
RuntimeError: [openai_api_compatible] Error: req_id: 3dcdae0e0b PluginInvokeError: {"args":{},"error_type":"ChunkedEncodingError","message":"Response ended prematurely"}

Originally created by @jbb892543969 on GitHub (Sep 28, 2025). ### Self Checks - [x] This is only for bug report, if you would like to ask a question, please head to [Discussions](https://github.com/langgenius/dify/discussions/categories/general). - [x] I have searched for existing issues [Dify issues](https://github.com/langgenius/dify/issues) & [Dify Official Plugins](https://github.com/langgenius/dify-official-plugins/issues), including closed ones. - [x] I confirm that I am using English to submit this report (我已阅读并同意 [Language Policy](https://github.com/langgenius/dify/issues/1542)). - [x] [FOR CHINESE USERS] 请务必使用英文提交 Issue,否则会被关闭。谢谢!:) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version 1.9.0 ### Plugin version 0.0.22 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce There is an error when running the visual model in Dify, but it works fine when I directly call it via the /v1/chat/completions endpoint. <img width="1804" height="886" alt="Image" src="https://github.com/user-attachments/assets/a463d211-79d2-4fe6-9574-09553f7d97f6" /> <img width="1442" height="907" alt="Image" src="https://github.com/user-attachments/assets/cf7ea925-f69f-4b57-a850-ccc22c505543" /> ### ✔️ Error log 2025-09-29 01:05:27.007 ERROR [GraphWorker-0] [base.py:211] - Error in stream reponse for plugin {'code': -500, 'message': '{"message":"{\\"args\\":{},\\"error_type\\":\\"ChunkedEncodingError\\",\\"message\\":\\"Response ended prematurely\\"}","error_type":"PluginInvokeError","args":null}', 'data': None} 2025-09-29 01:05:27.009 ERROR [GraphDispatcher] [error_handler.py:101] - Node 1758786549398 failed with ABORT strategy: [openai_api_compatible] Error: req_id: 3dcdae0e0b PluginInvokeError: {"args":{},"error_type":"ChunkedEncodingError","message":"Response ended prematurely"} 2025-09-29 01:05:27.217 ERROR [Thread-160 (_generate_worker)] [workflow_entry.py:110] - Unknown Error when workflow entry running Traceback (most recent call last): File "/app/api/core/workflow/workflow_entry.py", line 106, in run yield from generator File "/app/api/core/workflow/graph_engine/graph_engine.py", line 262, in run raise self._graph_execution.error RuntimeError: [openai_api_compatible] Error: req_id: 3dcdae0e0b PluginInvokeError: {"args":{},"error_type":"ChunkedEncodingError","message":"Response ended prematurely"}
yindo added the bug label 2026-02-16 10:20:09 -05:00
yindo closed this issue 2026-02-16 10:20:09 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Sep 28, 2025):

Hi @jbb892543969! I'm Dosu and I’m helping the dify-official-plugins team.

This error is likely caused by how Dify's workflow engine handles streaming responses from the OpenAI-API-compatible plugin, especially for vision models. The workflow engine uses generators to process streaming data, and any interruption or premature closure of the HTTP stream (like a ChunkedEncodingError) will abort the workflow and result in empty output. Direct API calls to /v1/chat/completions bypass these layers and typically handle streaming more robustly, which is why they work as expected.

Recent updates added a configuration option (enable_stream) for OpenAI-compatible models and vision models in the plugin. Disabling streaming for the problematic model in your workflow may help avoid this error—look for the enable_stream parameter in your plugin or model configuration and set it to false if available. This workaround has been used to bypass streaming-related issues and KYC requirements for other models as well example.

If you continue to see this error, check your Docker and server environment for HTTP timeout, proxy buffering, or Uvicorn server settings that might close streams prematurely. These can impact chunked/streaming responses in self-hosted setups details.

Let me know if disabling streaming resolves the issue, or if you need help locating the configuration!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 28, 2025): <!-- Greeting --> Hi @jbb892543969! I'm [Dosu](https://go.dosu.dev/dosubot) and I’m helping the dify-official-plugins team. <!-- Answer --> This error is likely caused by how Dify's workflow engine handles streaming responses from the OpenAI-API-compatible plugin, especially for vision models. The workflow engine uses generators to process streaming data, and any interruption or premature closure of the HTTP stream (like a ChunkedEncodingError) will abort the workflow and result in empty output. Direct API calls to `/v1/chat/completions` bypass these layers and typically handle streaming more robustly, which is why they work as expected. Recent updates added a configuration option (`enable_stream`) for OpenAI-compatible models and vision models in the plugin. Disabling streaming for the problematic model in your workflow may help avoid this error—look for the `enable_stream` parameter in your plugin or model configuration and set it to `false` if available. This workaround has been used to bypass streaming-related issues and KYC requirements for other models as well [example](https://github.com/langgenius/dify-official-plugins/pull/1549). If you continue to see this error, check your Docker and server environment for HTTP timeout, proxy buffering, or Uvicorn server settings that might close streams prematurely. These can impact chunked/streaming responses in self-hosted setups [details](https://github.com/langgenius/dify/blob/8d897153a5a0d0479d11eb5d4e218ebd28a6ee89/api/core/workflow/workflow_entry.py). Let me know if disabling streaming resolves the issue, or if you need help locating the configuration! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/604a536f-3079-4471-8d17-9e9bc6ad6439?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1781)
Author
Owner

@jbb892543969 commented on GitHub (Sep 28, 2025):

@dosu
I didn't find any options compatible with OpenAI-API-compatible

@jbb892543969 commented on GitHub (Sep 28, 2025): @dosu I didn't find any options compatible with OpenAI-API-compatible
Author
Owner

@dosubot[bot] commented on GitHub (Sep 28, 2025):

There isn't a universal UI or config option in Dify workflows to disable streaming for OpenAI-API-compatible plugins. The plugin decides whether to stream based on the 'stream' parameter in the request body, but this isn't exposed as a toggle in the workflow UI by default. If you want to force non-streaming mode, you would need to modify the plugin code to always set "stream": false in the endpoint handler (source).

As a workaround, you can try adjusting your Docker/server HTTP settings (timeouts, proxy buffering, Uvicorn settings) since these can cause premature stream closure and ChunkedEncodingError. If you prefer not to edit code, using direct API calls or switching to a different plugin/model are also options. Let me know if you want step-by-step instructions for any of these approaches.

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 28, 2025): <!-- Answer --> There isn't a universal UI or config option in Dify workflows to disable streaming for OpenAI-API-compatible plugins. The plugin decides whether to stream based on the 'stream' parameter in the request body, but this isn't exposed as a toggle in the workflow UI by default. If you want to force non-streaming mode, you would need to modify the plugin code to always set `"stream": false` in the endpoint handler ([source](https://github.com/langgenius/dify-official-plugins/blob/ddd09a94068d9e615649cfc8551e2c56d04c9536/extensions/openai_compatible/endpoints/openai_compatible.py)). As a workaround, you can try adjusting your Docker/server HTTP settings (timeouts, proxy buffering, Uvicorn settings) since these can cause premature stream closure and ChunkedEncodingError. If you prefer not to edit code, using direct API calls or switching to a different plugin/model are also options. Let me know if you want step-by-step instructions for any of these approaches. <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/b1f18b7c-9120-4a66-a788-27641c42ab1f?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1781)
Author
Owner

@jbb892543969 commented on GitHub (Sep 28, 2025):

@dosu
How to set Docker/server HTTP settings (timeouts, proxy buffering, Uvicorn settings)

@jbb892543969 commented on GitHub (Sep 28, 2025): @dosu How to set Docker/server HTTP settings (timeouts, proxy buffering, Uvicorn settings)
Author
Owner

@dosubot[bot] commented on GitHub (Sep 28, 2025):

To adjust Docker/server HTTP settings and help prevent premature stream closure errors in Dify, here’s what you can do:

1. Increase timeouts in Docker/.env:
Edit your docker/.env file and set higher values for these variables (add them if missing):

GUNICORN_TIMEOUT=360
HTTP_REQUEST_MAX_READ_TIMEOUT=600
HTTP_REQUEST_MAX_WRITE_TIMEOUT=600
SSRF_DEFAULT_TIME_OUT=600
HTTP_REQUEST_MAX_CONNECT_TIMEOUT=600

These control backend, plugin, and SSRF timeouts. After editing, restart your containers with:

docker-compose down
docker-compose up -d

Reference | Reference

2. Check and update NGINX (or other proxy) config:
If you use NGINX as a reverse proxy (common in Docker setups), make sure these are set in your proxy config (often at docker/nginx/proxy.conf.template):

proxy_buffering off;
proxy_http_version 1.1;
proxy_set_header Connection "";

This disables buffering and ensures proper streaming. Reload or restart NGINX after changes.
Reference

3. Uvicorn server settings:
If you run Uvicorn directly (for plugins or model servers), you can set timeouts with command-line flags, e.g.:

uvicorn app:app --host 0.0.0.0 --port 8000 --timeout-keep-alive 120

Increase --timeout-keep-alive as needed.

4. Networking tips:
Avoid using 127.0.0.1 for inter-container calls; use the host IP or Docker service name. Make sure no firewall or Docker network misconfiguration is blocking traffic.
Reference

5. Hardcoded plugin timeouts:
For OpenAI-API-compatible plugins, some timeouts (like 300s) are hardcoded in the plugin code. To change these, you must edit the relevant Python file on the host, rebuild the Docker image, and restart the container, or mount the file into the container.
Reference

If you’re unsure which proxy you’re using or need help with a specific config file, let me know your setup details!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 28, 2025): <!-- Answer --> To adjust Docker/server HTTP settings and help prevent premature stream closure errors in Dify, here’s what you can do: **1. Increase timeouts in Docker/.env:** Edit your `docker/.env` file and set higher values for these variables (add them if missing): ``` GUNICORN_TIMEOUT=360 HTTP_REQUEST_MAX_READ_TIMEOUT=600 HTTP_REQUEST_MAX_WRITE_TIMEOUT=600 SSRF_DEFAULT_TIME_OUT=600 HTTP_REQUEST_MAX_CONNECT_TIMEOUT=600 ``` These control backend, plugin, and SSRF timeouts. After editing, restart your containers with: ``` docker-compose down docker-compose up -d ``` [Reference](https://github.com/langgenius/dify/issues/19376) | [Reference](https://github.com/langgenius/dify-official-plugins/issues/1528) **2. Check and update NGINX (or other proxy) config:** If you use NGINX as a reverse proxy (common in Docker setups), make sure these are set in your proxy config (often at `docker/nginx/proxy.conf.template`): ``` proxy_buffering off; proxy_http_version 1.1; proxy_set_header Connection ""; ``` This disables buffering and ensures proper streaming. Reload or restart NGINX after changes. [Reference](https://github.com/langgenius/dify-official-plugins/issues/1188#issuecomment-3026134895) **3. Uvicorn server settings:** If you run Uvicorn directly (for plugins or model servers), you can set timeouts with command-line flags, e.g.: ``` uvicorn app:app --host 0.0.0.0 --port 8000 --timeout-keep-alive 120 ``` Increase `--timeout-keep-alive` as needed. **4. Networking tips:** Avoid using `127.0.0.1` for inter-container calls; use the host IP or Docker service name. Make sure no firewall or Docker network misconfiguration is blocking traffic. [Reference](https://github.com/langgenius/dify-official-plugins/issues/1019#issuecomment-3278831936) **5. Hardcoded plugin timeouts:** For OpenAI-API-compatible plugins, some timeouts (like 300s) are hardcoded in the plugin code. To change these, you must edit the relevant Python file on the host, rebuild the Docker image, and restart the container, or mount the file into the container. [Reference](https://github.com/langgenius/dify-official-plugins/issues/1705#issuecomment-3297206193) If you’re unsure which proxy you’re using or need help with a specific config file, let me know your setup details! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/ba33c367-9933-4b60-8e95-49f1f62c3762?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1781)
Author
Owner

@jbb892543969 commented on GitHub (Sep 28, 2025):

@dosu
The configuration is still invalid after modification. Is there any other plug-in that can support openAI compatibility?

@jbb892543969 commented on GitHub (Sep 28, 2025): @dosu The configuration is still invalid after modification. Is there any other plug-in that can support openAI compatibility?
Author
Owner

@dosubot[bot] commented on GitHub (Sep 28, 2025):

Yes, there are other plugins that support OpenAI API compatibility in Dify. The most notable alternative is the Regolo.ai plugin, which was recently added and supports multiple LLMs—including vision-capable models like Qwen2.5-VL-32B-Instruct. It is designed for OpenAI API schema compatibility and handles streaming, with workarounds for known issues in some models. You can set it up in Dify under Model Provider → Regolo.ai by providing your Regolo API key and (optionally) a custom endpoint URL. More details and supported models are in the plugin's documentation here.

Other plugins like Grok (x.ai) also offer OpenAI API compatibility, but may require extra proxy configuration in Docker to work reliably example. Azure OpenAI, OpenRouter, and vLLM plugins are also options, but for vision and robust streaming, Regolo.ai is currently the most promising alternative.

Let me know if you need setup steps or run into issues with Regolo or any of these alternatives!

To reply, just mention @dosu.


How did I do? Good | Irrelevant | Incorrect | Verbose | Hallucination | Report 🐛 | Other  Join Discord Share on X

@dosubot[bot] commented on GitHub (Sep 28, 2025): <!-- Answer --> Yes, there are other plugins that support OpenAI API compatibility in Dify. The most notable alternative is the Regolo.ai plugin, which was recently added and supports multiple LLMs—including vision-capable models like Qwen2.5-VL-32B-Instruct. It is designed for OpenAI API schema compatibility and handles streaming, with workarounds for known issues in some models. You can set it up in Dify under Model Provider → Regolo.ai by providing your Regolo API key and (optionally) a custom endpoint URL. More details and supported models are in the plugin's documentation [here](https://github.com/langgenius/dify-official-plugins/pull/1641). Other plugins like Grok (x.ai) also offer OpenAI API compatibility, but may require extra proxy configuration in Docker to work reliably [example](https://github.com/langgenius/dify-official-plugins/issues/1259#issuecomment-3057329213). Azure OpenAI, OpenRouter, and vLLM plugins are also options, but for vision and robust streaming, Regolo.ai is currently the most promising alternative. Let me know if you need setup steps or run into issues with Regolo or any of these alternatives! <!-- Dosu Comment Footer --> *To reply, just mention [@dosu](https://go.dosu.dev/dosubot).* --- <sup>How did I do? [Good](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/e6320f59-8323-43e8-a1ce-4377d9ea061f?feedback_type=other)</sup>&nbsp;&nbsp;[![Join Discord](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&label=)](https://go.dosu.dev/discord-bot)&nbsp;[![Share on X](https://img.shields.io/badge/X-share-black)](https://twitter.com/intent/tweet?text=%40dosu_ai%20helped%20me%20solve%20this%20issue!&url=https%3A//github.com/langgenius/dify-official-plugins/issues/1781)
Author
Owner

@jbb892543969 commented on GitHub (Sep 28, 2025):

@dosu
I deployed the visual model locally using lmdeploy. I tried all the above plugins but still got this error.

@jbb892543969 commented on GitHub (Sep 28, 2025): @dosu I deployed the visual model locally using lmdeploy. I tried all the above plugins but still got this error.
Author
Owner

@jbb892543969 commented on GitHub (Sep 29, 2025):

Dify the generated JSON structure
Image
OpenAI's JSON structure
Image
dify the adjusted configuration
Image

I found that the model adjustment error was caused by a problem with the json structure, and had nothing to do with streaming or non-streaming. After I added the User message, it can be used normally. Is this a bug or a usage problem?

@jbb892543969 commented on GitHub (Sep 29, 2025): **Dify the generated JSON structure** <img width="427" height="200" alt="Image" src="https://github.com/user-attachments/assets/1b944903-550f-46a3-be07-6323ead838e0" /> **OpenAI's JSON structure** <img width="652" height="310" alt="Image" src="https://github.com/user-attachments/assets/5ad7606c-9682-4222-92f6-0e3a87648f7c" /> **dify the adjusted configuration** <img width="400" height="799" alt="Image" src="https://github.com/user-attachments/assets/94cc36f0-1904-40d8-8473-38c08c2d60eb" /> I found that the model adjustment error was caused by a problem with the json structure, and had nothing to do with streaming or non-streaming. After I added the User message, it can be used normally. Is this a bug or a usage problem?
Author
Owner

@dosubot[bot] commented on GitHub (Oct 16, 2025):

Hi, @jbb892543969. I'm Dosu, and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You reported a ChunkedEncodingError when running a vision model via Dify 1.9.0 with plugin 0.0.22 in a self-hosted Docker environment.
  • Direct API calls worked fine, indicating the issue was specific to Dify’s workflow engine handling streaming responses.
  • After troubleshooting, you found the root cause was a JSON structure missing a User message, not streaming-related.
  • You asked whether this is a bug or a usage problem.
  • I provided guidance on configuration and alternative plugins supporting OpenAI compatibility.

Next Steps:

  • Please confirm if this issue is still relevant with the latest version of dify-official-plugins by commenting here.
  • If no response is received, I will automatically close this issue in 5 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Oct 16, 2025): Hi, @jbb892543969. I'm [Dosu](https://dosu.dev), and I'm helping the dify-official-plugins team manage their backlog and am marking this issue as stale. **Issue Summary:** - You reported a ChunkedEncodingError when running a vision model via Dify 1.9.0 with plugin 0.0.22 in a self-hosted Docker environment. - Direct API calls worked fine, indicating the issue was specific to Dify’s workflow engine handling streaming responses. - After troubleshooting, you found the root cause was a JSON structure missing a User message, not streaming-related. - You asked whether this is a bug or a usage problem. - I provided guidance on configuration and alternative plugins supporting OpenAI compatibility. **Next Steps:** - Please confirm if this issue is still relevant with the latest version of dify-official-plugins by commenting here. - If no response is received, I will automatically close this issue in 5 days. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-official-plugins#676