Skip to content

Commit

Permalink
py: Remove attachments from main run payload before upload
Browse files Browse the repository at this point in the history
  • Loading branch information
nfcampos committed Oct 16, 2024
1 parent 5e21109 commit 4f17b18
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1256,7 +1256,7 @@ def _run_transform(
run_create["serialized"].pop("graph", None)

# Collect or drop attachments
if attachments := run_create.get("attachments", None):
if attachments := run_create.pop("attachments", None):
if attachments_collector is not None:
attachments_collector[run_create["id"]] = attachments
elif not WARNED_ATTACHMENTS:
Expand Down

0 comments on commit 4f17b18

Please sign in to comment.