Update Image Generation

This commit is contained in:
PasserDreamer
2024-05-20 18:49:33 +08:00
parent 5506c81397
commit c10323424d
3 changed files with 21 additions and 9 deletions

View File

@ -1,4 +1,14 @@
{
"sd_prompt_0": "角色(你自己)",
"sd_prompt_1": "使用者(我)",
"sd_prompt_2": "情境(整篇故事)",
"sd_prompt_3": "原始最後訊息",
"sd_prompt_4": "最後訊息",
"sd_prompt_5": "肖像(你的臉)",
"sd_prompt_7": "背景",
"sd_prompt_8": "角色(多模態模型)",
"sd_prompt_9": "使用者(多模態模型)",
"sd_prompt_10": "肖像(多模態模型)",
" messages": " 訊息",
" words": " 文字",
"# Messages to Load": "個要載入的訊息數量",
@ -535,7 +545,7 @@
"guikoboldaisettings": "GUI KoboldAI 設定",
"Handle:": "控制代碼:",
"HD": "高畫質",
"Height": "高度",
"Height": "高度(H)",
"Helps to ban or reenforce the usage of certain words": "有助於禁止或強化某些詞語的使用",
"Hide avatars in chat messages.": "在聊天訊息中隱藏頭像",
"Hide character definitions from the editor panel behind a spoiler button": "在編輯器面板中將角色定義隱藏在劇透按鈕後面",
@ -887,8 +897,8 @@
"response legth(tokens)": "回應長度(符記數)",
"Restore collage avatar": "還原預設頭像",
"Restore current preset": "還原目前預設",
"Restore default prompt": "恢復預設提示詞",
"Restore default prompt": "還原預設提示詞",
"Restore default": "還原預設",
"Restore Faces": "修復臉部",
"Restore new group chat prompt": "還原新群組聊天提示詞",
"Restore Previous": "恢復上一個",
@ -946,7 +956,7 @@
"sd_multimodal_captioning_txt": "對肖像使用多模態模型描述",
"sd_prompt_prefix_placeholder": "使用 {prompt} 指定生成的提示詞將被插入的位置。",
"sd_refine_mode": "允許在傳送至生成 API 前,手動編輯提示詞字串",
"sd_refine_mode_txt": "生成前顯示提示詞",
"sd_refine_mode_txt": "生成前編輯提示詞",
"sd_snap": "對於具有特定長寬比的生成請求(如肖像、背景),將其調整至最接近的已知解析度,同時儘量保持絕對像素數(建議用於SDXL)。",
"sd_snap_txt": "自動調整解析度",
"sd_vlad_url": "範例: {{vlad_url}}",
@ -1235,7 +1245,7 @@
"When this is off, responses will be displayed all at once when they are complete.": "關閉時,回應將在完成後一次性顯示。",
"WI Entry Status:🔵 Constant🟢 Normal🔗 Vectorized❌ Disabled": "WI條目狀態🔵常數🟢正常🔗向量❌停用",
"Width of the main chat window in % of screen width": "主聊天視窗寬度占螢幕寬度的百分比",
"Width": "寬度",
"Width": "寬度(W)",
"Will be automatically added as the Author's Note for all new chats.": "將自動新增為所有新聊天的作者備註",
"Will be automatically added as the author's note for this character. Will be used in groups, but can't be modified when a group chat is open.": "將自動新增為此角色的作者備註。將在群組中使用,但在群組聊天開啟時無法修改",
"Will be automatically added as the CFG for this character.": "將自動新增為此角色的 CFG",

View File

@ -476,7 +476,8 @@ function addPromptTemplates() {
for (const [name, prompt] of Object.entries(extension_settings.sd.prompts)) {
const label = $('<label></label>')
.text(modeLabels[name])
.attr('for', `sd_prompt_${name}`);
.attr('for', `sd_prompt_${name}`)
.attr('data-i18n', `sd_prompt_${name}`);
const textarea = $('<textarea></textarea>')
.addClass('textarea_compact text_pole')
.attr('id', `sd_prompt_${name}`)
@ -488,6 +489,7 @@ function addPromptTemplates() {
const button = $('<button></button>')
.addClass('menu_button fa-solid fa-undo')
.attr('title', 'Restore default')
.attr('data-i18n', 'Restore default')
.on('click', () => {
textarea.val(promptTemplates[name]);
extension_settings.sd.prompts[name] = promptTemplates[name];