We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bc612d1 commit 24d83d8Copy full SHA for 24d83d8
run_ac.py
@@ -149,8 +149,8 @@ async def process_llm_record_batch(record_dict_batch: list):
149
calculated_attribute_by_record_id[record_dict["id"]] = attr_value
150
151
async def process_async_llm_calls(record_dict_list):
152
- batch_size = len(record_dict_list) // int(
153
- attribute_calculators.NUM_WORKERS_A2VYBG
+ batch_size = max(
+ len(record_dict_list) // int(attribute_calculators.NUM_WORKERS_A2VYBG), 1
154
)
155
record_dict_batches = [
156
record_dict_list[i : i + batch_size]
0 commit comments