Re:Show HN: OpenLIT – Open-Source LLM Observability with Ope...
by kakaly0403 on Sunday April 28, 2024 @11:57PM
(#40194248)
Langtrace core maintainer here. We capture input/output/total tokens for both streaming and non streaming across various LLM providers. For streaming we calculate using tiktoken library as OpenAI does not show that with their outputs. Cost is calculated on the client side as it may keep changing. But all you need is the cost table for the llm vendor and you can get the cost for token usage
[ Parent
| on HN ]
There are no comments on this comment yet.