Skip to content

Commit

Permalink
fix: Reset buffer after sending to server
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-langchain committed Dec 31, 2024
1 parent 9740d1d commit 6928d90
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 6928d90

Please sign in to comment.