mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 20:35:19 +00:00
refac
This commit is contained in:
parent
f2cae3d0a7
commit
2f349b5979
1 changed files with 1 additions and 5 deletions
|
|
@ -2095,11 +2095,7 @@ async def process_chat_response(
|
||||||
}
|
}
|
||||||
)
|
)
|
||||||
|
|
||||||
if (
|
if content_blocks[-1]["type"] == "reasoning":
|
||||||
content_blocks[-1]["type"] == "reasoning"
|
|
||||||
and content_blocks[-1].get("attributes", {}).get("type")
|
|
||||||
== "reasoning_content"
|
|
||||||
):
|
|
||||||
reasoning_block = content_blocks[-1]
|
reasoning_block = content_blocks[-1]
|
||||||
if reasoning_block.get("ended_at") is None:
|
if reasoning_block.get("ended_at") is None:
|
||||||
reasoning_block["ended_at"] = time.time()
|
reasoning_block["ended_at"] = time.time()
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue