Welcome to Portkey Forum

Updated 2 weeks ago

Exporting Prompt Logs with Prompt IDs for Pricing Analysis

Hey is there a way to get logs to have the prompt id in the export? I am working on some pricing questions and want to check which prompts can be replaced with smaller models and how the pricing is being affected.
1
V
W
H
8 comments
@Witherwings this is possible with the logs export API?
It should have what you're looking for. It may not be available to your org - i can check with the team to see if we can get it enabled for your org
you can get prompt_slug from the exports which you can use
can you please enable it for us.
@Harold Senzei have enabled this for you
Hey @Vrushank | Portkey I am also trying to export logs but unable to so, as I get the following error portkey_ai.api_resources.exceptions.PermissionDeniedError: {"success":false,"data":{"message":"You do not have enough permissions to execute this request","errorCode":"AB03","request_id":"7c740c52-14f9-4d94-b911-f0d56baf97cd"}} even when using api key which have been granted permission to access logs, so do we have to manually enable for my org as well?
Hi @aman_k, correct. We need to enable the logs export API for your org. Let me DM you
Add a reply
Sign up and join the conversation on Discord