What is the purpose of "id" in text_completion?

What is the purpose of “id” in the response of a text_completion and what can it be used for?

Currently it cannot be used in the body of other calls, even though the chat itself when asked suggests a curl output which is not valid.

1 Like

Welcome to the community!

As far as I know, OpenAI recommends to use it to mark which user of your service sends a prompt in order to better track down malicious users.

Hope that helps!

Right now if I make 4 continuous calls, the id changes, hence I cannot track that as a ‘flow’. What options do I have?

Ah, you’re talking about the id you get back, not sending user id’s.

It’s a random key, so there’s no way to track flow via the API. You need to build around this to store prompts, stitch them together, etc.

1 Like