mirror of
https://github.com/LostRuins/koboldcpp.git
synced 2026-09-19 01:05:09 +02:00
fix inverted probability
This commit is contained in:
+2
-2
@@ -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";
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user