Merge pull request #3175 from BerriAI/litellm_log_team_alias_langfuse

[FEAT] Log team alias to langfuse
This commit is contained in:
Ishaan Jaff 2024-04-19 15:30:59 -07:00 committed by GitHub
commit 48e5de4f0e
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
4 changed files with 22 additions and 2 deletions

View file

@ -282,9 +282,9 @@ class LangFuseLogger:
for key, value in metadata.items():
# generate langfuse tags
if key in [
"user_api_key",
"user_api_key_alias",
"user_api_key_user_id",
"user_api_key_team_id",
"user_api_key_team_alias",
"semantic-similarity",
]:
tags.append(f"{key}:{value}")