Skip to content

Commit

Permalink
fix(arkose): Image chunks processing prevents division by 0
Browse files Browse the repository at this point in the history
  • Loading branch information
0x676e67 committed Feb 7, 2024
1 parent d674d11 commit 6e3af20
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion crates/openai/src/arkose/mod.rs
Original file line number Diff line number Diff line change
Expand Up @@ -577,7 +577,7 @@ async fn submit_funcaptcha(
for data in classified_data {
let images_chunks = data
.1
.chunks(arkose_solver.limit)
.chunks(arkose_solver.limit.max(1))
.map(|item| {
item.iter()
.map(|item| &item.image)
Expand Down

0 comments on commit 6e3af20

Please sign in to comment.