diff --git a/python/langsmith/client.py b/python/langsmith/client.py index 90f2c36fd..760ab26d9 100644 --- a/python/langsmith/client.py +++ b/python/langsmith/client.py @@ -731,7 +731,11 @@ def _get_settings(self) -> ls_schemas.LangSmithSettings: return self._settings - def _content_above_size(self, content_length: Optional[int], request: Optional[requests.Request | requests.PreparedRequest] ) -> Optional[str]: + def _content_above_size( + self, + content_length: Optional[int], + request: Optional[requests.Request | requests.PreparedRequest], + ) -> Optional[str]: if content_length is None or self._info is None: return None info = cast(ls_schemas.LangSmithInfo, self._info) @@ -742,7 +746,10 @@ def _content_above_size(self, content_length: Optional[int], request: Optional[r if size_limit is None: return None if content_length > size_limit: - should_debug_crash_dump = os.getenv("LANGSMITH_DEBUG_CRASH_DUMP") in ["1", "true"] + should_debug_crash_dump = os.getenv("LANGSMITH_DEBUG_CRASH_DUMP") in [ + "1", + "true", + ] if should_debug_crash_dump and request is not None: with open("content_size_limit_crash_dump.jsonl", "a") as f: json.dump(request, f)