Failed to add Xinfrenece system model #179

Closed
opened 2026-02-16 00:20:22 -05:00 by yindo · 2 comments
Owner

Originally created by @xiaowang-xuexiji on GitHub (Aug 27, 2025).

Self Checks

  • I have read the Contributing Guide and Language Policy.
  • This is only for bug report, if you would like to ask a question, please head to Discussions.
  • I have searched for existing issues search for existing issues, including closed ones.
  • I confirm that I am using English to submit this report, otherwise it will be closed.
  • 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :)
  • Please do not modify this template :) and fill in all the required fields.

Dify version

v1.4.1

Cloud or Self Hosted

Self Hosted (Docker)

Steps to reproduce

2025/08/28 02:47:45 [Recovery] 2025/08/28 - 02:47:45 panic recovered:
runtime error: invalid memory address or nil pointer dereference
[GIN] 2025/08/28 - 02:47:45 | 500 |    1.818343ms |      172.19.0.9 | POST     "/plugin/1bbf0787-9013-433e-916f-0685e952c7b4/dispatch/model/schema"
/usr/local/go/src/runtime/panic.go:262 (0x4768b8)
/usr/local/go/src/runtime/signal_unix.go:917 (0x476888)
/app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdb8512)
/app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdb5e7a)
/app/internal/core/plugin_daemon/generic.go:27 (0xfc0a36)
/app/internal/core/plugin_daemon/model.gen.go:161 (0xfecceb)
/app/internal/service/model.gen.go:210 (0xfeccd2)
/app/internal/service/base_sse.go:116 (0xff6a9a)
/app/internal/service/base_sse.go:44 (0xff6cfe)
/app/internal/service/base_sse.go:114 (0xff69e4)
/app/internal/service/model.gen.go:208 (0xfecc91)
/app/internal/server/controllers/model.gen.go:163 (0x1cfb950)
/app/internal/server/controllers/base.go:53 (0x101f5b4)
/app/internal/server/controllers/base.go:31 (0x101fa34)
/app/internal/server/controllers/base.go:37 (0x101f4b5)
/app/internal/server/controllers/model.gen.go:160 (0x1cfb893)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:170 (0x1cfe2d3)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:97 (0x1cfe373)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:66 (0x1d02171)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:24 (0x1cfdb14)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8386e)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf8385b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf829a4)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf8298b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf81d91)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf81800)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf81331)
/usr/local/go/src/net/http/server.go:3210 (0x7e062d)
/usr/local/go/src/net/http/server.go:2092 (0x7bfb4f)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x47caa0)



2025/08/28 02:47:45 [Recovery] 2025/08/28 - 02:47:45 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x4768b8)
/usr/local/go/src/runtime/signal_unix.go:917 (0x476888)
[GIN] 2025/08/28 - 02:47:45 | 500 |    1.587215ms |      172.19.0.9 | POST     "/plugin/1bbf0787-9013-433e-916f-0685e952c7b4/dispatch/model/schema"
/app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdb8512)
/app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdb5e7a)
/app/internal/core/plugin_daemon/generic.go:27 (0xfc0a36)
/app/internal/core/plugin_daemon/model.gen.go:161 (0xfecceb)
/app/internal/service/model.gen.go:210 (0xfeccd2)
/app/internal/service/base_sse.go:116 (0xff6a9a)
/app/internal/service/base_sse.go:44 (0xff6cfe)
/app/internal/service/base_sse.go:114 (0xff69e4)
/app/internal/service/model.gen.go:208 (0xfecc91)
/app/internal/server/controllers/model.gen.go:163 (0x1cfb950)
/app/internal/server/controllers/base.go:53 (0x101f5b4)
/app/internal/server/controllers/base.go:31 (0x101fa34)
/app/internal/server/controllers/base.go:37 (0x101f4b5)
/app/internal/server/controllers/model.gen.go:160 (0x1cfb893)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:170 (0x1cfe2d3)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:97 (0x1cfe373)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:66 (0x1d02171)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:24 (0x1cfdb14)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8386e)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf8385b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf829a4)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf8298b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf81d91)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf81800)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf81331)
/usr/local/go/src/net/http/server.go:3210 (0x7e062d)
/usr/local/go/src/net/http/server.go:2092 (0x7bfb4f)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x47caa0)



2025/08/28 02:47:45 [Recovery] 2025/08/28 - 02:47:45 panic recovered:
runtime error: invalid memory address or nil pointer dereference
/usr/local/go/src/runtime/panic.go:262 (0x4768b8)
/usr/local/go/src/runtime/signal_unix.go:917 (0x476888)
/app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdb8512)
/app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdb5e7a)
/app/internal/core/plugin_daemon/generic.go:27 (0xfc0a36)
/app/internal/core/plugin_daemon/model.gen.go:161 (0xfecceb)
/app/internal/service/model.gen.go:210 (0xfeccd2)
/app/internal/service/base_sse.go:116 (0xff6a9a)
/app/internal/service/base_sse.go:44 (0xff6cfe)
/app/internal/service/base_sse.go:114 (0xff69e4)
/app/internal/service/model.gen.go:208 (0xfecc91)
/app/internal/server/controllers/model.gen.go:163 (0x1cfb950)
/app/internal/server/controllers/base.go:53 (0x101f5b4)
/app/internal/server/controllers/base.go:31 (0x101fa34)
[GIN] 2025/08/28 - 02:47:45 | 500 |    1.491031ms |      172.19.0.9 | POST     "/plugin/1bbf0787-9013-433e-916f-0685e952c7b4/dispatch/model/schema"
/app/internal/server/controllers/base.go:37 (0x101f4b5)
/app/internal/server/controllers/model.gen.go:160 (0x1cfb893)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:170 (0x1cfe2d3)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:97 (0x1cfe373)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:66 (0x1d02171)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a)
/app/internal/server/middleware.go:24 (0x1cfdb14)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8386e)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf8385b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf829a4)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf8298b)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf81d91)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf81800)
/go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf81331)
/usr/local/go/src/net/http/server.go:3210 (0x7e062d)
/usr/local/go/src/net/http/server.go:2092 (0x7bfb4f)
/usr/local/go/src/runtime/asm_amd64.s:1700 (0x47caa0)

The Docker error message is the error message from the plugin container.

✔️ Expected Behavior

Add model successfully

Actual Behavior

Image Add model as shown in the figure
Originally created by @xiaowang-xuexiji on GitHub (Aug 27, 2025). ### Self Checks - [x] I have read the [Contributing Guide](https://github.com/langgenius/dify/blob/main/CONTRIBUTING.md) and [Language Policy](https://github.com/langgenius/dify/issues/1542). - [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 [search for existing issues](https://github.com/langgenius/dify/issues), including closed ones. - [x] I confirm that I am using English to submit this report, otherwise it will be closed. - [x] 【中文用户 & Non English User】请使用英语提交,否则会被关闭 :) - [x] Please do not modify this template :) and fill in all the required fields. ### Dify version v1.4.1 ### Cloud or Self Hosted Self Hosted (Docker) ### Steps to reproduce ```log 2025/08/28 02:47:45 [Recovery] 2025/08/28 - 02:47:45 panic recovered: runtime error: invalid memory address or nil pointer dereference [GIN] 2025/08/28 - 02:47:45 | 500 | 1.818343ms | 172.19.0.9 | POST "/plugin/1bbf0787-9013-433e-916f-0685e952c7b4/dispatch/model/schema" /usr/local/go/src/runtime/panic.go:262 (0x4768b8) /usr/local/go/src/runtime/signal_unix.go:917 (0x476888) /app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdb8512) /app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdb5e7a) /app/internal/core/plugin_daemon/generic.go:27 (0xfc0a36) /app/internal/core/plugin_daemon/model.gen.go:161 (0xfecceb) /app/internal/service/model.gen.go:210 (0xfeccd2) /app/internal/service/base_sse.go:116 (0xff6a9a) /app/internal/service/base_sse.go:44 (0xff6cfe) /app/internal/service/base_sse.go:114 (0xff69e4) /app/internal/service/model.gen.go:208 (0xfecc91) /app/internal/server/controllers/model.gen.go:163 (0x1cfb950) /app/internal/server/controllers/base.go:53 (0x101f5b4) /app/internal/server/controllers/base.go:31 (0x101fa34) /app/internal/server/controllers/base.go:37 (0x101f4b5) /app/internal/server/controllers/model.gen.go:160 (0x1cfb893) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:170 (0x1cfe2d3) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:97 (0x1cfe373) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:66 (0x1d02171) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:24 (0x1cfdb14) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8386e) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf8385b) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf829a4) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf8298b) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf81d91) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf81800) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf81331) /usr/local/go/src/net/http/server.go:3210 (0x7e062d) /usr/local/go/src/net/http/server.go:2092 (0x7bfb4f) /usr/local/go/src/runtime/asm_amd64.s:1700 (0x47caa0) 2025/08/28 02:47:45 [Recovery] 2025/08/28 - 02:47:45 panic recovered: runtime error: invalid memory address or nil pointer dereference /usr/local/go/src/runtime/panic.go:262 (0x4768b8) /usr/local/go/src/runtime/signal_unix.go:917 (0x476888) [GIN] 2025/08/28 - 02:47:45 | 500 | 1.587215ms | 172.19.0.9 | POST "/plugin/1bbf0787-9013-433e-916f-0685e952c7b4/dispatch/model/schema" /app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdb8512) /app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdb5e7a) /app/internal/core/plugin_daemon/generic.go:27 (0xfc0a36) /app/internal/core/plugin_daemon/model.gen.go:161 (0xfecceb) /app/internal/service/model.gen.go:210 (0xfeccd2) /app/internal/service/base_sse.go:116 (0xff6a9a) /app/internal/service/base_sse.go:44 (0xff6cfe) /app/internal/service/base_sse.go:114 (0xff69e4) /app/internal/service/model.gen.go:208 (0xfecc91) /app/internal/server/controllers/model.gen.go:163 (0x1cfb950) /app/internal/server/controllers/base.go:53 (0x101f5b4) /app/internal/server/controllers/base.go:31 (0x101fa34) /app/internal/server/controllers/base.go:37 (0x101f4b5) /app/internal/server/controllers/model.gen.go:160 (0x1cfb893) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:170 (0x1cfe2d3) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:97 (0x1cfe373) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:66 (0x1d02171) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:24 (0x1cfdb14) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8386e) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf8385b) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf829a4) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf8298b) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf81d91) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf81800) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf81331) /usr/local/go/src/net/http/server.go:3210 (0x7e062d) /usr/local/go/src/net/http/server.go:2092 (0x7bfb4f) /usr/local/go/src/runtime/asm_amd64.s:1700 (0x47caa0) 2025/08/28 02:47:45 [Recovery] 2025/08/28 - 02:47:45 panic recovered: runtime error: invalid memory address or nil pointer dereference /usr/local/go/src/runtime/panic.go:262 (0x4768b8) /usr/local/go/src/runtime/signal_unix.go:917 (0x476888) /app/internal/core/plugin_manager/local_runtime/stdio.go:85 (0xdb8512) /app/internal/core/plugin_manager/local_runtime/io.go:16 (0xdb5e7a) /app/internal/core/plugin_daemon/generic.go:27 (0xfc0a36) /app/internal/core/plugin_daemon/model.gen.go:161 (0xfecceb) /app/internal/service/model.gen.go:210 (0xfeccd2) /app/internal/service/base_sse.go:116 (0xff6a9a) /app/internal/service/base_sse.go:44 (0xff6cfe) /app/internal/service/base_sse.go:114 (0xff69e4) /app/internal/service/model.gen.go:208 (0xfecc91) /app/internal/server/controllers/model.gen.go:163 (0x1cfb950) /app/internal/server/controllers/base.go:53 (0x101f5b4) /app/internal/server/controllers/base.go:31 (0x101fa34) [GIN] 2025/08/28 - 02:47:45 | 500 | 1.491031ms | 172.19.0.9 | POST "/plugin/1bbf0787-9013-433e-916f-0685e952c7b4/dispatch/model/schema" /app/internal/server/controllers/base.go:37 (0x101f4b5) /app/internal/server/controllers/model.gen.go:160 (0x1cfb893) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:170 (0x1cfe2d3) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:97 (0x1cfe373) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:66 (0x1d02171) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf75d0a) /app/internal/server/middleware.go:24 (0x1cfdb14) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf8386e) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/recovery.go:102 (0xf8385b) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf829a4) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/logger.go:249 (0xf8298b) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/context.go:185 (0xf81d91) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:633 (0xf81800) /go/pkg/mod/github.com/gin-gonic/gin@v1.10.0/gin.go:589 (0xf81331) /usr/local/go/src/net/http/server.go:3210 (0x7e062d) /usr/local/go/src/net/http/server.go:2092 (0x7bfb4f) /usr/local/go/src/runtime/asm_amd64.s:1700 (0x47caa0) ``` The Docker error message is the error message from the plugin container. ### ✔️ Expected Behavior Add model successfully ### ❌ Actual Behavior <img width="1920" height="870" alt="Image" src="https://github.com/user-attachments/assets/d1cdeb59-a17b-4f75-aa75-a47d362e5687" /> Add model as shown in the figure
yindo closed this issue 2026-02-16 00:20:22 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Aug 27, 2025):

This error is most often caused by a misconfiguration or failure in the plugin daemon or its network setup in Docker. The nil pointer dereference in stdio.go happens when the plugin process or its communication channels aren't properly initialized—usually because the plugin container isn't running, isn't reachable, or failed to start correctly. This is a known issue in self-hosted Docker environments, especially with plugins like Xinference and Ollama, and has been reported by others as well (example, example).

Here’s a checklist to help resolve it:

  • Make sure the plugin daemon container is running and healthy.
  • Check that your Docker network allows communication between the Dify core and plugin containers. Do not use localhost or 127.0.0.1 for service endpoints; use host.docker.internal or your host’s internal IP (details).
  • Double-check environment variables: PLUGIN_DAEMON_URL should point to the correct host and port, and SANDBOX_ENABLE_NETWORK should be true.
  • If you migrated or reused Docker volumes from another installation, try reinstalling or reinitializing the plugin.
  • Ensure the plugin has outbound internet access on first run to install dependencies (details).
  • Review plugin daemon logs for errors during startup or model registration.

If the plugin container is not reachable or fails to initialize, the Dify backend will attempt to use a nil communication channel, causing the panic you see. Fixing the network or plugin daemon setup should resolve the issue.

To reply, just mention @dosu.


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

@dosubot[bot] commented on GitHub (Aug 27, 2025): <!-- Answer --> This error is most often caused by a misconfiguration or failure in the plugin daemon or its network setup in Docker. The nil pointer dereference in `stdio.go` happens when the plugin process or its communication channels aren't properly initialized—usually because the plugin container isn't running, isn't reachable, or failed to start correctly. This is a known issue in self-hosted Docker environments, especially with plugins like Xinference and Ollama, and has been reported by others as well ([example](https://github.com/langgenius/dify-official-plugins/issues/401), [example](https://github.com/langgenius/dify-official-plugins/issues/1045)). Here’s a checklist to help resolve it: - Make sure the plugin daemon container is running and healthy. - Check that your Docker network allows communication between the Dify core and plugin containers. Do not use `localhost` or `127.0.0.1` for service endpoints; use `host.docker.internal` or your host’s internal IP ([details](https://github.com/langgenius/dify-official-plugins/issues/1145)). - Double-check environment variables: `PLUGIN_DAEMON_URL` should point to the correct host and port, and `SANDBOX_ENABLE_NETWORK` should be `true`. - If you migrated or reused Docker volumes from another installation, try reinstalling or reinitializing the plugin. - Ensure the plugin has outbound internet access on first run to install dependencies ([details](https://github.com/langgenius/dify/issues/20325)). - Review plugin daemon logs for errors during startup or model registration. If the plugin container is not reachable or fails to initialize, the Dify backend will attempt to use a nil communication channel, causing the panic you see. Fixing the network or plugin daemon setup should resolve the issue. <!-- 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/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=great_response) | [Irrelevant](https://app.dosu.dev/response-feedback/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=irrelevant_answer) | [Incorrect](https://app.dosu.dev/response-feedback/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=incorrect_sources) | [Verbose](https://app.dosu.dev/response-feedback/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=too_verbose) | [Hallucination](https://app.dosu.dev/response-feedback/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=hallucination) | [Report 🐛](https://app.dosu.dev/response-feedback/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=bug_report) | [Other](https://app.dosu.dev/response-feedback/c377ab42-a712-4233-9453-0639b5538a94?feedback_type=other)</sup>&nbsp;&nbsp;[![Chat with Dosu](https://dosu.dev/dosu-chat-badge.svg)](https://app.dosu.dev/6088a4f4-073a-43f3-b3d4-4f06fb0c05a0/ask?utm_source=github)&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/issues/24672)
Author
Owner

@simons19920101 commented on GitHub (Oct 14, 2025):

Image "I also added the Xinference qwen model. The model loads successfully, but when calling the model in the Dify application chat scenario, the plugin_daemon sends a stream: true request, Xinference returns an SSE response, but the Dify api service ultimately receives an empty answer."
@simons19920101 commented on GitHub (Oct 14, 2025): <img width="1295" height="697" alt="Image" src="https://github.com/user-attachments/assets/f9422e8f-24d4-4e28-930f-23411d550f50" /> "I also added the Xinference qwen model. The model loads successfully, but when calling the model in the Dify application chat scenario, the plugin_daemon sends a stream: true request, Xinference returns an SSE response, but the Dify api service ultimately receives an empty answer."
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: langgenius/dify-plugin-daemon#179