puter icon indicating copy to clipboard operation
puter copied to clipboard

Expose usage counts when streaming ai responses

Open Salazareo opened this issue 1 year ago • 2 comments

Following request from discord:

We want to expose usage counts in streamed ai responses. They require adding the usage data in our ai stream handlers:

https://github.com/HeyPuter/puter/blob/main/src/backend/src/modules/puterai/lib/OpenAIUtil.js#L89 https://github.com/HeyPuter/puter/blob/main/src/backend/src/modules/puterai/ClaudeService.js#L307

Salazareo avatar Nov 21 '25 21:11 Salazareo

Hello! 👋 I’ve implemented exposing usage counts in OpenAI streamed responses as requested. The PR linked above should resolve this issue. Please review and let me know if any changes are needed. Thanks!

Nihhaar0002 avatar Nov 24 '25 13:11 Nihhaar0002

This looks fixed, should close this issue.

tmchow avatar Apr 08 '26 00:04 tmchow