浏览代码

Merge pull request #10711 from jasonpnnl/send-usage-to-pipeline-outlet

fix: Include usage in chatCompleted handler for pipeline outlet functions
Timothy Jaeryang Baek 2 月之前
父节点
当前提交
abf36c0645
共有 1 个文件被更改,包括 1 次插入0 次删除
  1. 1 0
      src/lib/components/chat/Chat.svelte

+ 1 - 0
src/lib/components/chat/Chat.svelte

@@ -841,6 +841,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),