mirror of
https://github.com/open-webui/open-webui.git
synced 2026-05-06 19:08:59 -05:00
[GH-ISSUE #10828] API接入失败 #16044
Reference in New Issue
Block a user
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 @guguji2 on GitHub (Feb 26, 2025).
Original GitHub issue: https://github.com/open-webui/open-webui/issues/10828
为什么我接入了本地封装的api,没有显示内容在页面,这是completed包的内容:
{
"model": "glm",
"messages": [
{
"id": "01e4b1b7-18d3-4d8f-b0b4-41187ac2582a",
"role": "user",
"content": "学生在校依法享有什么义务?",
"timestamp": 1740590677
},
{
"id": "323f685e-3a56-4ea8-ad8c-25086e441738",
"role": "assistant",
"content": "",
"timestamp": 1740590677
}
],
"chat_id": "a13c2ffa-3d91-4c6c-b878-8c22e9de09e7",
"session_id": "2m-0VnRRarzgmVmxAAAJ",
"id": "323f685e-3a56-4ea8-ad8c-25086e441738"
}
这是completion包的内容:
{
"id": "chatcmpl-ca707567-cf3c-4ade-8922-b75099b845c1",
"object": "chat.completion",
"created": 1740590679,
"choices": [
{
"index": 0,
"message": {
"role": "assistant",
"content": "学生在校依法需要遵守学校的规章制度,履行接受教育的义务,参与学校的教学活动,并按照规定完成学习任务。同时,他们还应当尊重师长和同学,维护学校的正常教育秩序,以及遵循法律法规中规定的其他相关义务。"
},
"finish_reason": "stop"
}
],
"usage": {
"prompt_tokens": 13,
"completion_tokens": 97,
"total_tokens": 110
}
}