Fix index calculation

This commit is contained in:
Chime Ogbuji 2024-11-03 20:36:55 -05:00 committed by Awni Hannun
parent a4a86ad898
commit a5b866cf73

View File

@ -97,7 +97,7 @@ class CompletionsDatasetCollection:
while True:
try:
if (curr_idx + 1) < len(item):
if (curr_idx + 1) <= len(item):
return item[curr_idx]
else:
curr_idx -= len(item)