Skip to content

Commit

Permalink
increase payload size to 20mb
Browse files Browse the repository at this point in the history
  • Loading branch information
angus-langchain committed Dec 12, 2024
1 parent ce44b25 commit 181f839
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions python/langsmith/_internal/_background_thread.py
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ def _tracing_thread_drain_queue(


def _tracing_thread_drain_compressed_buffer(
client: Client, size_limit: int = 100, size_limit_bytes: int = 65_536
client: Client, size_limit: int = 100, size_limit_bytes: int = 20_971_520
) -> Optional[io.BytesIO]:
assert client.compressed_runs_buffer is not None
assert client.compressor_writer is not None
Expand Down Expand Up @@ -258,7 +258,7 @@ def tracing_control_thread_func_compress_parallel(

batch_ingest_config = _ensure_ingest_config(client.info)
size_limit: int = batch_ingest_config["size_limit"]
size_limit_bytes = batch_ingest_config.get("size_limit_bytes", 65_536)
size_limit_bytes = batch_ingest_config.get("size_limit_bytes", 20_971_520)
assert size_limit_bytes is not None

num_workers = min(4, os.cpu_count() or 1)
Expand Down

0 comments on commit 181f839

Please sign in to comment.