How do I enable logging for the OpenAI API?

This screenshot shows what I see on the “Logs” page for my API account.

I think I clicked a button to enable logging, but I do not remember for sure. No such button exists any longer.

One entry was logged. Since that time there have been no additional log entries. How can I enable logging for all new assistant threads?

You would use the "store": true API parameter on either Chat Completions or Responses.

The “logs” is more for fine-tune distillation or evals, in-platform, rather than for auditing. It is not quite ideal for either, as a typical fine-tune optimization would be long system prompt to generate training data → small system prompt and the examples alone teach the behavior.

1 Like

Thank you, @_j. I guess I’ll just ignore the logs for now, then.

You explanation makes me wonder how I managed to get a single log entry. I haven’t done any fine-tuning or evals – at least not intentionally.