Skip to content

Commit

Permalink
comment out update path
Browse files Browse the repository at this point in the history
  • Loading branch information
agola11 committed Dec 12, 2024
1 parent 579e258 commit a22f99c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
1 change: 0 additions & 1 deletion python/bench/tracing_script.py
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import os
os.environ["LANGCHAIN_PROJECT"] = "llm_messages_test_py"
os.environ["LANGSMITH_USE_PYO3_CLIENT"] = "true"
os.environ["LANGSMITH_ENDPOINT"] = "http://localhost:1984"

import openai
from langsmith import traceable
Expand Down
6 changes: 3 additions & 3 deletions python/langsmith/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -1756,9 +1756,9 @@ def update_run(

print("UPDATE_RUN", data)

if self._pyo3_client is not None:
self._pyo3_client.update_run(data)
elif use_multipart and self.tracing_queue is not None:
# if self._pyo3_client is not None:
# self._pyo3_client.update_run(data)
if use_multipart and self.tracing_queue is not None:
# not collecting attachments currently, use empty dict
serialized_op = serialize_run_dict(operation="patch", payload=data)
self.tracing_queue.put(
Expand Down

0 comments on commit a22f99c

Please sign in to comment.