Skip to content

[Feature]: turn_off_message_logging parameter per callback #13761

@dominikkoller-hs

Description

@dominikkoller-hs

The Feature

Currently, turn_off_message_logging is a global parameter that can be set in config.yaml:

litellm_settings:
  success_callback: ["langfuse"]
  turn_off_message_logging: True

We would like to be able to set this per callback instead, so that one callback logs messages, while another callback redacts messages. Something like:

litellm_settings:
  success_callback:
    - name: "langfuse"
      turn_off_message_logging: false
    - name: "s3_v2"
      turn_off_message_logging: true

Motivation, pitch

This would be helpful to separate callbacks with highly sensitive message content vs callbacks with lower data sensitivity.

LiteLLM is hiring a founding backend engineer, are you interested in joining us and shipping to all our users?

No

Twitter / LinkedIn details

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions