Skip to content

Commit

Permalink
Retain env info in patch extra (#1162)
Browse files Browse the repository at this point in the history
  • Loading branch information
hinthornw authored Nov 1, 2024
1 parent 5135d38 commit 50265fb
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1665,6 +1665,8 @@ def update_run(
data["outputs"] = self._hide_run_outputs(outputs)
if events is not None:
data["events"] = events
if data["extra"]:
self._insert_runtime_env([data])
if use_multipart and self.tracing_queue is not None:
# not collecting attachments currently, use empty dict
serialized_op = serialize_run_dict(operation="patch", payload=data)
Expand Down

0 comments on commit 50265fb

Please sign in to comment.