change prompt name to act_prompt

pull/63/head
butaixianran 2023-03-14 05:15:58 +08:00
parent f65b2651cb
commit e80602463c
1 changed files with 4 additions and 4 deletions

View File

@ -185,8 +185,8 @@ function add_trigger_words(event, model_type, search_term){
msg["neg_prompt"] = "";
// get active prompt
let prompt = getActivePrompt();
msg["prompt"] = prompt.value;
let act_prompt = getActivePrompt();
msg["prompt"] = act_prompt.value;
// fill to msg box
send_ch_py_msg(msg)
@ -225,8 +225,8 @@ function use_preview_prompt(event, model_type, search_term){
msg["search_term"] = search_term;
// get active prompt
prompt = getActivePrompt();
msg["prompt"] = prompt.value;
let act_prompt = getActivePrompt();
msg["prompt"] = act_prompt.value;
// get active neg prompt
let neg_prompt = getActiveNegativePrompt();