mirror of
https://github.com/kvcache-ai/ktransformers.git
synced 2026-11-05 01:07:28 +00:00
[GH-ISSUE #456] 启动API服务以后,怎么在dify上接入模型? #317
Labels
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
kvcache-ai/ktransformers#317
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 @yuweimian-shy on GitHub (Feb 18, 2025).
Original GitHub issue: https://github.com/kvcache-ai/ktransformers/issues/456
我在后端启动了API服务:
USE_NUMA=1 python ./ktransformers/server/main.py --model_path /models/DeepSeek/DeepSeek-R1-Q4_K_M --gguf_path /models/DeepSeek/DeepSeek-R1-Q4_K_M --model_name DeepSeek-R1-Q4_K_M --cpu_infer 65 --max_new_tokens 2048 --port 9112 --cache_lens 12288我想在dify平台上去接入这个模型,使用的是OpenAI-API-compatible
但一直有如下报错:
An error occurred during credentials validation: HTTPSConnectionPool(host='172.16.128.20', port=19112): Max retries exceeded with url: /v1/chat/completions (Caused by SSLError(SSLError(1, '[SSL] record layer failure (_ssl.c:1007)')))
用postman进行调用的时候是通的
@BlackHacked commented on GitHub (Feb 19, 2025):
你这明显没区分 http 和 https ,你映射出来的端口支持 https 么
@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 的贡献!