Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix handling of place_correct_choice_position (#1511)
Fix: Improved handling of `place_correct_choice_position` for flexible input sizes - Added logic to ensure `place_correct_choice_position` works correctly for varying numbers of choices. - Implemented two approaches: 1. Clamping the position to ensure it remains within valid bounds. 2. Supporting negative indexing to allow placing the correct choice at the end with `-1`. - Ensured the implementation avoids crashes and provides robust handling for edge cases. Co-authored-by: Elron Bandel <[email protected]>
- Loading branch information