Is there a way to programmatically access the AI c...
# đź’»developers
w
Is there a way to programmatically access the AI cost of the most recent completed run? I.e., the figure that comes through to the debug console with the token use, like
Cost: $0.0044 |
. I reckon there must be a way to capture that, but I can't figure out how to do it. [Context: Looking to tally up / store these figures per session to avoid users running up AI costs inappropriately]