Skip to content

Commit

Permalink
fix
Browse files Browse the repository at this point in the history
  • Loading branch information
isahers1 committed Dec 13, 2024
1 parent f684f2c commit 45e80fc
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions python/langsmith/beta/_evals.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,6 +163,9 @@ def convert_runs_to_test(
)

for new_run in to_create:
latency = new_run["end_time"] - new_run["start_time"]
new_run["start_time"] = datetime.datetime.now(tz=datetime.timezone.utc)
new_run["end_time"] = new_run["start_time"] + latency
client.create_run(**new_run, project_name=test_project_name)

_ = client.update_project(
Expand Down

0 comments on commit 45e80fc

Please sign in to comment.