mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-05-22 03:10:03 +00:00
fix inverted probability
This commit is contained in:
parent
5ebc532ca9
commit
0978806a3c
1 changed files with 2 additions and 2 deletions
|
|
@ -7,7 +7,7 @@ Just copy this single static HTML file anywhere and open it in a browser, or fro
|
|||
Please go to https://github.com/LostRuins/lite.koboldai.net for updates on Kobold Lite.
|
||||
If you are submitting a pull request for Lite, PLEASE use the above repo, not the KoboldCpp one.
|
||||
Kobold Lite is under the AGPL v3.0 License unless otherwise exempted. Please do not remove this line.
|
||||
Current version: 143
|
||||
Current version: 144
|
||||
-Concedo
|
||||
-->
|
||||
|
||||
|
|
@ -10690,7 +10690,7 @@ Current version: 143
|
|||
if(wi.probability && wi.probability<100)
|
||||
{
|
||||
let roll = Math.floor(Math.random() * 100) + 1;
|
||||
if(roll>=wi.probability)
|
||||
if(roll<wi.probability)
|
||||
{
|
||||
wistr += wi.content + "\n";
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue