How to retrieve input messages used to generate past completions?

I have a bunch of completions saved from previous queries. I noticed that I got better results in a past completion, but there is no record as to what the message I used was to generate that better result. The chatGPT browser interface records previous messages – how do I retrieve messages for a completion with e.g. its ‘id’?

There’s currently no user-facing capability on any completion endpoint that allows to retrieve the prompt that led to a specific completion, which can be correlated with the completion ID.

So, you’ll have to store every prompt you make and its corresponding completion if you want to refer to it later on.

The playground has a history feature that stores the last 30 days of usage history for calls made via the playground interface.

1 Like