mirror of
https://github.com/open-webui/open-webui.git
synced 2025-12-12 12:25:20 +00:00
add optional usage to chatCompleted messages
This commit is contained in:
parent
6fedd72e39
commit
89aaf64209
1 changed files with 1 additions and 0 deletions
|
|
@ -836,6 +836,7 @@
|
|||
content: m.content,
|
||||
info: m.info ? m.info : undefined,
|
||||
timestamp: m.timestamp,
|
||||
...(m.usage ? { usage: m.usage } : {}),
|
||||
...(m.sources ? { sources: m.sources } : {})
|
||||
})),
|
||||
model_item: $models.find((m) => m.id === modelId),
|
||||
|
|
|
|||
Loading…
Reference in a new issue