mirror of
https://github.com/BerriAI/litellm.git
synced 2025-04-26 11:14:04 +00:00
fix try / except langfuse deep copy
This commit is contained in:
parent
7efe9beac5
commit
d0a7983a41
1 changed files with 6 additions and 1 deletions
|
@ -326,7 +326,12 @@ class LangFuseLogger:
|
|||
or isinstance(value, int)
|
||||
or isinstance(value, float)
|
||||
):
|
||||
new_metadata[key] = copy.deepcopy(value)
|
||||
try:
|
||||
new_metadata[key] = copy.deepcopy(value)
|
||||
except Exception as e:
|
||||
verbose_logger.error(
|
||||
f"Langfuse [Non-blocking error] - error copying metadata: {str(e)}"
|
||||
)
|
||||
metadata = new_metadata
|
||||
|
||||
supports_tags = Version(langfuse.version.__version__) >= Version("2.6.3")
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue