diff --git a/python/langsmith/client.py b/python/langsmith/client.py index a0783d62e..143186e73 100644 --- a/python/langsmith/client.py +++ b/python/langsmith/client.py @@ -1292,7 +1292,7 @@ def create_run( ): if self._pyo3_client is not None: self._pyo3_client.create_run(run_create) - if self.compressed_runs is not None: + elif self.compressed_runs is not None: serialized_op = serialize_run_dict("post", run_create) multipart_form = ( serialized_run_operation_to_multipart_parts_and_context(