mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-11 20:05:19 +00:00
refac
This commit is contained in:
parent
980019bb50
commit
0cfc8f5256
1 changed files with 1 additions and 1 deletions
|
|
@ -2033,7 +2033,7 @@ async def process_chat_response(
|
||||||
choices = data.get("choices", [])
|
choices = data.get("choices", [])
|
||||||
|
|
||||||
# 17421
|
# 17421
|
||||||
usage = data.get("usage", {})
|
usage = data.get("usage", {}) or {}
|
||||||
usage.update(data.get("timings", {})) # llama.cpp
|
usage.update(data.get("timings", {})) # llama.cpp
|
||||||
if usage:
|
if usage:
|
||||||
await event_emitter(
|
await event_emitter(
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue