feat(langfuse/): support langfuse prompt management (#7073)

* feat(langfuse/): support langfuse prompt management

Initial working commit for langfuse prompt management support

Closes https://github.com/BerriAI/litellm/issues/6269

* test: update test

* fix(litellm_logging.py): suppress linting error
This commit is contained in:
Krish Dholakia 2024-12-06 23:10:22 -08:00 committed by GitHub
parent e4493248ae
commit 19a4273fda
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
6 changed files with 186 additions and 2 deletions

View file

@ -508,6 +508,7 @@ class ProxyLogging:
try:
for callback in litellm.callbacks:
_callback = None
if isinstance(callback, str):
_callback = litellm.litellm_core_utils.litellm_logging.get_custom_logger_compatible_class(
@ -515,7 +516,6 @@ class ProxyLogging:
)
else:
_callback = callback # type: ignore
if _callback is not None and isinstance(_callback, CustomGuardrail):
from litellm.types.guardrails import GuardrailEventHooks