Closed AndreCNF closed 5 months ago
Sometimes running TokenCost with LlamaIndex was failing for me due to the estimates object only being defined if the event payload contains prompt or messages. This PR fixes this by skipping events that don't match these conditions.
estimates
Thanks, @AndreCNF !
Sometimes running TokenCost with LlamaIndex was failing for me due to the
estimates
object only being defined if the event payload contains prompt or messages. This PR fixes this by skipping events that don't match these conditions.