Usage API prompt logs

Are there any way to see usage log? Like the one that we pass in the prompt?
In the Dashboard we only see the token used but not the actual prompt?

4 Likes

Also, looking for an answer to this. I saw someone on YouTube show history in the playground from an API call, not sure if it’s still a thing

There is currently no way to see the message history from the account page, it is up to application developers to build such functionality into there code.

You need to emit a log statement on your server that ties some identifier to the request, and outputs the prompt text (and perhaps also the response, and the tokens consumed.)
Then you can search in this data.
We put this both in a database (for keeping chat history for conversations) and to general system logs (for putting into Observe and building dashboards on results/usage.)

The history in the Playground is local state to the playground, e g, it’s not part of the OpenAI API, it’s part of the Playground application.