fix: Lunary integration

Fixes the bug of litellm not logging system messages to lunary
This commit is contained in:
7HR4IZ3 2024-06-24 14:09:40 +01:00 committed by GitHub
parent cf52d3fa00
commit 15fc99a3ff

View file

@ -108,6 +108,7 @@ class LunaryLogger:
try:
print_verbose(f"Lunary Logging - Logging request for model {model}")
template_id = None
litellm_params = kwargs.get("litellm_params", {})
optional_params = kwargs.get("optional_params", {})
metadata = litellm_params.get("metadata", {}) or {}