Skip to content

Commit

Permalink
python[patch]: evaluate accept list target (#1342)
Browse files Browse the repository at this point in the history
  • Loading branch information
baskaryan authored Dec 17, 2024
1 parent 7039534 commit cb97e1c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion python/langsmith/evaluation/_arunner.py
Original file line number Diff line number Diff line change
Expand Up @@ -294,7 +294,7 @@ async def aevaluate(
blocking=blocking,
**kwargs,
)
elif isinstance(target, tuple):
elif isinstance(target, (list, tuple)):
msg = (
"Running a comparison of two existing experiments asynchronously is not "
"currently supported. Please use the `evaluate()` method instead and make "
Expand Down
2 changes: 1 addition & 1 deletion python/langsmith/evaluation/_runner.py
Original file line number Diff line number Diff line change
Expand Up @@ -353,7 +353,7 @@ def evaluate(
blocking=blocking,
**kwargs,
)
elif isinstance(target, tuple):
elif isinstance(target, (list, tuple)):
invalid_args = {
"num_repetitions": num_repetitions > 1,
"experiment": bool(experiment),
Expand Down

0 comments on commit cb97e1c

Please sign in to comment.