https://www.boundaryml.com logo
Add cached input token tracking to Usage...
# contributing
l
Opened a PR for the cached input tokens tracking: https://github.com/BoundaryML/baml/pull/2394
a
Neat! Will aim to get this out on the next release
v
@aaronv (BAML) should we use Jesusโ€™s method in the runtime instead? And just compute all possible values accordingly. That way users can just modify it themselves.
a
That does require a bit more design. Like is this a config in baml, or in the client options, etc. and this helps us surface cached token data on our own dashboard as well
v
Using that model we should be able to surface all computations actually. Then we can just codegen the usage object to make it typesafe
So we can think of it as a file thatโ€™s a part of baml_src
a
I like the idea, but more as a part of a 3 day task vs just merging this in
v
Valid
a
Like lets think how many config fikes we want users tonlearn about
Cause maybe we do add baml.toml plus usage.yaml
Etc
v
Yea thatโ€™s a great point
a
So yes long term we will need somethinf else
v
When Iโ€™m back Next week, can spend some cycles on it. I donโ€™t like the idea of us needing all the config within the baml runtime.
a
And before that we need other things keep in mind โ€” ruby support, workflows, studio type signatures, bugfixes on studio, etc
So definitely lets add to roadmap
l
๐Ÿ‘€
I have noticed this new runtime being built but not seen any explanation of what it is / why, would love to know more
a
We are adding workflow support ๐Ÿ™‚ more coming soon! It s still a bit early