Discussed in #546
Originally posted by ww-jermaine August 25, 2023
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:
Tokens Used: 0
Prompt Tokens: 0
Completion Tokens: 0
Successful Requests: 0
Total Cost (USD): $0.0
```</div>
Discussed in #546
Originally posted by ww-jermaine August 25, 2023
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: