mirror of
https://github.com/SillyTavern/SillyTavern.git
synced 2025-06-05 21:59:27 +02:00
Pygmalion 6b fix
This commit is contained in:
@ -4,7 +4,7 @@
|
||||
"ikmax": 3000,
|
||||
"genamt": 80,
|
||||
"ikgen": 200,
|
||||
"rep_pen": 1.1,
|
||||
"rep_pen": 1.05,
|
||||
"rep_pen_slope": 0.7,
|
||||
"rep_pen_range": 1024,
|
||||
"temp": 0.5,
|
||||
|
@ -28,7 +28,7 @@
|
||||
<script type=module>
|
||||
import {encode, decode} from "../scripts/gpt-2-3-tokenizer/mod.js";
|
||||
$(document).ready(function(){
|
||||
const VERSION = '1.1.1';
|
||||
const VERSION = '1.1.2';
|
||||
var bg_menu_toggle = false;
|
||||
var default_user_name = "You";
|
||||
var name1 = default_user_name;
|
||||
@ -588,9 +588,14 @@
|
||||
item =item+" "+ anchorBottom+"\n";
|
||||
}
|
||||
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+":";
|
||||
}
|
||||
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){
|
||||
item = item.replace(name1+':', 'You:');
|
||||
}
|
||||
|
Reference in New Issue
Block a user