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

fix: Include usage in chatCompleted handler for pipeline outlet functions
This commit is contained in:
Timothy Jaeryang Baek 2025-02-24 23:34:18 -08:00 committed by GitHub
commit abf36c0645
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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),