This feature is available for the LLM proxy (chat completions endpoint) and Async logging.

At Keywords AI, data privacy is our priority. We understand that you might want to disable logging for your sensitive data. We have added a disable_log option to help you achieve this.

What information will be disabled?

The following fields will not be logged:

  • full_request
  • full_response
  • messages, prompt_messages, and completion_message
  • tools

See all supported parameters here.

How to disable logging?

To disable logging, set the disable_log parameter to true in the request body.

Here is an example of how to disable logging using the OpenAI Python SDK:

from openai import OpenAI

client = OpenAI(
    base_url="https://api.keywordsai.co/api/",
    api_key="YOUR_KEYWORDSAI_API_KEY",
)

response = client.chat.completions.create(
    model="gpt-4o-mini",
    messages=[
        {"role": "user", "content": "Tell me a long story"}
    ],
    extra_body={
        "disable_log": True 
    }
)