Skip to content

Commit

Permalink
Remove check as not necessary
Browse files Browse the repository at this point in the history
  • Loading branch information
akira committed Oct 25, 2024
1 parent df84a79 commit a1a717b
Showing 1 changed file with 6 additions and 15 deletions.
21 changes: 6 additions & 15 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1684,21 +1684,12 @@ def multipart_ingest(
):
for payload in payloads:
# collect fields to be sent as separate parts
fields = []
if create_dicts or update_dicts:
fields.extend(
[
("inputs", payload.pop("inputs", None)),
("outputs", payload.pop("outputs", None)),
("events", payload.pop("events", None)),
]
)
if feedback:
fields.extend(
[
("feedback", payload.pop("feedback", None)),
]
)
fields = [
("inputs", payload.pop("inputs", None)),
("outputs", payload.pop("outputs", None)),
("events", payload.pop("events", None)),
("feedback", payload.pop("feedback", None)),
]
# encode the main run payload
payloadb = _dumps_json(payload)
acc_parts.append(
Expand Down

0 comments on commit a1a717b

Please sign in to comment.