Skip to content

Commit ba18aaf

Browse files
committed
fix(evaluate): postprocess the concurrent outputs for o1
1 parent e380adf commit ba18aaf

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

bigcodebench/provider/openai.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -57,7 +57,7 @@ def _codegen_batch_via_concurrency(self, messages: List[str], num_samples: int)
5757
batches = concurrent_call(
5858
num_samples, self._codegen_api_batch, messages, num_samples=1
5959
)
60-
return [b[0] for b in batches]
60+
return [[element for sublist in item for element in sublist] for item in zip(*batches)]
6161

6262
def is_direct_completion(self) -> bool:
6363
return False

0 commit comments

Comments
 (0)