Skip to content

Commit 6137a60

Browse files
committed
fix(anthropic): do not mutate when media present
1 parent bedd22f commit 6137a60

1 file changed

Lines changed: 3 additions & 2 deletions

File tree

langfuse/_task_manager/media_manager.py

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -121,9 +121,10 @@ def _process_data_recursively(data: Any, level: int):
121121
field=field,
122122
)
123123

124-
data["data"] = media
124+
copied = data.copy()
125+
copied["data"] = media
125126

126-
return data
127+
return copied
127128

128129
# Vertex
129130
if (

0 commit comments

Comments
 (0)