Pygmalion 6b fix

This commit is contained in:
Ash
2023-01-11 07:33:38 +04:00
parent f87976cc8b
commit e424f37da1
2 changed files with 8 additions and 3 deletions

View File

@ -4,7 +4,7 @@
"ikmax": 3000, "ikmax": 3000,
"genamt": 80, "genamt": 80,
"ikgen": 200, "ikgen": 200,
"rep_pen": 1.1, "rep_pen": 1.05,
"rep_pen_slope": 0.7, "rep_pen_slope": 0.7,
"rep_pen_range": 1024, "rep_pen_range": 1024,
"temp": 0.5, "temp": 0.5,

View File

@ -28,7 +28,7 @@
<script type=module> <script type=module>
import {encode, decode} from "../scripts/gpt-2-3-tokenizer/mod.js"; import {encode, decode} from "../scripts/gpt-2-3-tokenizer/mod.js";
$(document).ready(function(){ $(document).ready(function(){
const VERSION = '1.1.1'; const VERSION = '1.1.2';
var bg_menu_toggle = false; var bg_menu_toggle = false;
var default_user_name = "You"; var default_user_name = "You";
var name1 = default_user_name; var name1 = default_user_name;
@ -588,9 +588,14 @@
item =item+" "+ anchorBottom+"\n"; item =item+" "+ anchorBottom+"\n";
} }
if(is_pygmalion){ if(is_pygmalion){
if(i >= arrMes.length-1 && $.trim(item).substr(0, (name1+":").length) == name1+":"){ if(i >= arrMes.length-1 && $.trim(item).substr(0, (name1+":").length) == name1+":"){//for add name2 when user sent
item =item+name2+":"; item =item+name2+":";
} }
if(i >= arrMes.length-1 && $.trim(item).substr(0, (name1+":").length) != name1+":"){//for add name2 when continue
if(textareaText == ""){
item =item+'\n'+name2+":";
}
}
if($.trim(item).indexOf(name1) === 0){ if($.trim(item).indexOf(name1) === 0){
item = item.replace(name1+':', 'You:'); item = item.replace(name1+':', 'You:');
} }