Merge pull request #3041 from BerriAI/docs_add_team_based_langfuse

Docs -  add team based logging langfuse on langfuse proxy docs
This commit is contained in:
Ishaan Jaff 2024-04-15 14:01:09 -07:00 committed by GitHub
commit 4c5bf508fc
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
5 changed files with 230 additions and 2 deletions

View file

@ -1896,7 +1896,12 @@ class ProxyConfig:
param_name = getattr(response, "param_name", None)
param_value = getattr(response, "param_value", None)
if param_name is not None and param_value is not None:
config[param_name] = param_value
# check if param_name is already in the config
if param_name in config:
if isinstance(config[param_name], dict):
config[param_name].update(param_value)
else:
config[param_name] = param_value
return config