Langfuse Callback에만 turn_off_message_logging 적용 - dhs-shine/litellm GitHub Wiki
- turn_off_message_logging은 전역 설정. callback이 여러개라면 일괄로 적용됨 https://docs.litellm.ai/docs/proxy/logging#redact-messages-response-content
- s3 callback은 원본 input / output 포함 log 저장해야 함
- langfuse callback은 input / output redact된 log 저장해야 함
- langfuse만 redact 처리 하기 위한 옵션 추가
- 원래 langfuse callback 구현이 chat completions metadata로 mask_input, mask_output이라는 값을 받으면 마스킹 되는데, 그 부분에다 새로운 환경변수 정의해서 Langfuse만 Redact할 수 있게 수정함 (LANGFUSE_REDACT_LOG=true)
- https://github.com/dhs-shine/litellm/commit/49c61a530778a541ba0df4b3a8fe5115867f28f2
- 아래는 langfuse의 trace가 redact 된 결과 캡처