Estimate token usage, cost #546
-
Hello, is there a way to estimate the token usage and cost per call of ai_fn, ai_model, etc.? Something like the callback from langchain:
|
Beta Was this translation helpful? Give feedback.
Replies: 3 comments
-
I would LOVE this feature! |
Beta Was this translation helpful? Give feedback.
-
Any news here? How do folks keep track of token usage with Marvin? |
Beta Was this translation helpful? Give feedback.
-
hey all, apologies for the radio silence here. I'll try to keep better track of these going forward I've answered similar questions in discord (come chat!) but here's a gist tldr
|
Beta Was this translation helpful? Give feedback.
hey all, apologies for the radio silence here. I'll try to keep better track of these going forward
I've answered similar questions in discord (come chat!) but here's a gist
tldr
MarvinClient
and add someChatCompletion
processor to do what you want with the usage OpenAI gives back