Getting usage data for transcription and prompts #982
-
|
Debug log shows usage data but I can't find a way to get usage data for prompts , extractions and transcriptions. Only api I found is streaming prompt that provide usage data? How, I can log usage data for other things ? |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 1 reply
-
|
Hi @kunjee17 - you're right, there isn't any way to get usage data currently for extractions and transcriptions. Currently I believe if you're using Like so: agent.prompt("Hello world!").extended_details() // ... extra stuff hereAs for adding usage to extractors etc I'll be setting a ticket up for that 😄 |
Beta Was this translation helpful? Give feedback.
Hi @kunjee17 - you're right, there isn't any way to get usage data currently for extractions and transcriptions.
Currently I believe if you're using
agent.prompt()you will need to useextended_details()to be able to augment the prompting request to additionally retrieve the usage.Like so:
As for adding usage to extractors etc I'll be setting a ticket up for that 😄