Olivier Gagnon abf7b90135 Enhance Token Probabilities viewer with selective reroll functionality and text extraction helper
- Updated onPrefixClicked() to add Ctrl-click functionality:
  - Default click rerolls the entire prefix text to continue the generation.
  - Ctrl-click rerolls only the text before the clicked word, allowing users to more precisely control generation output.
- Introduced getTextBeforeClickedWord() helper function:
  - Extracts the text before a clicked word based on click coordinates, enhancing control over prefix selection.
  - Provides a fallback to return the entire span text if word extraction is not possible.
- Updated function documentation to clarify new behaviors and helper purpose.

This change allows users to reset the prefix at a certain point if needed, adding flexibility to the generation process and enabling more intentional selection of alternatives.
2024-11-02 01:49:37 -04:00
..
2024-10-06 13:01:14 +03:00
2024-10-01 21:25:20 +07:00
2024-09-13 21:35:42 +03:00
2024-10-18 19:46:37 +03:00
2024-10-13 14:02:53 +03:00
2024-07-04 20:14:50 +03:00
2024-06-13 23:55:28 +02:00
2024-10-13 14:02:53 +03:00
2024-10-06 19:13:01 +03:00
2024-10-05 17:07:17 +03:00
2024-10-06 19:12:28 +03:00
2024-06-18 11:32:50 +03:00
2024-07-04 01:41:21 +03:00
2024-10-13 14:02:53 +03:00
2024-10-13 14:02:53 +03:00
2024-09-16 22:08:40 +03:00
2024-10-09 01:31:45 +03:00
2024-10-23 23:38:17 +03:00
2024-10-14 10:02:39 +00:00
2024-03-03 19:36:40 +02:00
2024-09-25 14:58:24 +00:00
2024-09-29 03:20:01 +02:00
2024-04-11 22:36:23 +03:00
2024-10-07 09:17:43 +07:00
2024-10-17 22:45:33 +03:00
2024-10-13 14:02:53 +03:00