This feature is available for the LLM proxy (chat completions endpoint) and Async logging.
disable_log option to help you achieve this.
What information will be disabled?
The following fields will not be logged:full_requestfull_responsemessages,prompt_messages, andcompletion_messagetools
How to disable logging?
To disable logging, set thedisable_log parameter to true in the request body.
- OpenAI Python SDK
- OpenAI TypeScript SDK
- Standard API
- Other SDKs
Here is an example of how to disable logging using the OpenAI Python SDK: