From 1830cf0b76d52b61c2555a489c33b59a8f3fe6ff Mon Sep 17 00:00:00 2001 From: Nick Huang Date: Tue, 8 Oct 2024 15:28:59 -0400 Subject: [PATCH] Make function private --- python/langsmith/client.py | 2 +- python/langsmith/utils.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/python/langsmith/client.py b/python/langsmith/client.py index 79d23b637..fffa704f6 100644 --- a/python/langsmith/client.py +++ b/python/langsmith/client.py @@ -752,7 +752,7 @@ def _content_above_size( ] if should_debug_crash_dump and request is not None: threading.Thread( - target=ls_utils.write_to_crash_dump, + target=ls_utils._write_to_crash_dump, args=(request, "content_size_limit_crash_dump.jsonl"), ).start() return ( diff --git a/python/langsmith/utils.py b/python/langsmith/utils.py index a29a7a332..6d672a00b 100644 --- a/python/langsmith/utils.py +++ b/python/langsmith/utils.py @@ -793,7 +793,7 @@ def _get_function_name(fn: Callable, depth: int = 0) -> str: return str(fn) -def write_to_crash_dump( +def _write_to_crash_dump( request: requests.Request | requests.PreparedRequest, file_name: str ): with open(file_name, "a") as f: