From 89aaf64209f4517b05c71648262eea1e870bc544 Mon Sep 17 00:00:00 2001 From: "Jason E. Jensen" Date: Mon, 24 Feb 2025 22:32:08 +0000 Subject: [PATCH] add optional usage to chatCompleted messages --- src/lib/components/chat/Chat.svelte | 1 + 1 file changed, 1 insertion(+) diff --git a/src/lib/components/chat/Chat.svelte b/src/lib/components/chat/Chat.svelte index fcd5177d7..67ada0bc7 100644 --- a/src/lib/components/chat/Chat.svelte +++ b/src/lib/components/chat/Chat.svelte @@ -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),