Skip to content

Commit

Permalink
fix: Reset buffer after sending to server (#1363)
Browse files Browse the repository at this point in the history
### Purpose
Need to rewind the buffer back to the start for the next endpoint, so we
send the entire data stream
  • Loading branch information
angus-langchain authored Dec 31, 2024
1 parent 790de44 commit 00f3ad4
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 @@ -1821,6 +1821,8 @@ def _send_compressed_multipart_req(self, data_stream, *, attempts: int = 3):
_context: str = ""

for api_url, api_key in self._write_api_urls.items():
data_stream.seek(0)

for idx in range(1, attempts + 1):
try:
headers = {
Expand Down

0 comments on commit 00f3ad4

Please sign in to comment.