mirror of
https://github.com/tiennm99/litellm.git
synced 2026-07-13 09:06:18 +00:00
fix put litellm prefix in generation name
This commit is contained in:
@@ -459,10 +459,9 @@ class LangFuseLogger:
|
||||
# If using litellm proxy user `key_alias` if not None
|
||||
# If `key_alias` is None, just log `litellm-{call_type}` as the generation name
|
||||
_user_api_key_alias = clean_metadata.get("user_api_key_alias", None)
|
||||
generation_name = (
|
||||
_user_api_key_alias
|
||||
or f"litellm-{kwargs.get('call_type', 'completion')}"
|
||||
)
|
||||
generation_name = f"litellm-{kwargs.get('call_type', 'completion')}"
|
||||
if _user_api_key_alias is not None:
|
||||
generation_name = f"litellm:{_user_api_key_alias}"
|
||||
|
||||
if response_obj is not None and "system_fingerprint" in response_obj:
|
||||
system_fingerprint = response_obj.get("system_fingerprint", None)
|
||||
|
||||
Reference in New Issue
Block a user