mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #817] [Bug] 无法将ktransformers集成到dify中 #586
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#586
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
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 @magic-hya on GitHub (Mar 6, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/817
检查清单
问题描述
当前在主机上部署了ktransformers的server服务,也部署了dify,目前集成到dify中遇到以下问题:
1.集成OpenAI-API-compatible插件报错
2.集成Ollama插件报错
请问打算怎么处理这2个问题
复现步骤
1.集成OpenAI-API-compatible插件报错,错误如下:
ktransformers的输出格式是"object":"chat.completion.chunk"
可能是这个原因导致
2.集成Ollama插件报错,后台报错如下:
查看源码发现该处有if input.stream:的验证,导致集成失败
环境信息
chatteohr/ktransformers:0.2.0镜像
dify1.0.0
@qiyuxinlin commented on GitHub (Mar 6, 2025):
ollama 接口没有实现非流式输出,欢迎提供 pr
@ErvinXie commented on GitHub (Dec 11, 2025):
This issue has been automatically closed due to inactivity for 60 days.
If you believe this issue is still relevant, please feel free to reopen it with additional information or context.
Thank you for your contribution to KTransformers!
此 issue 因超过 60 天无活动而被自动关闭。
如果您认为此问题仍然存在,请随时重新打开并提供更多信息或上下文。
感谢您对 KTransformers 的贡献!