mirror of
https://github.com/DominikDoom/a1111-sd-webui-tagcomplete.git
synced 2026-11-05 00:17:25 +00:00
[PR #177] [MERGED] 关于模板(大量提示词)输入新功能的PR #266
Labels
No labels
bug
duplicate
enhancement
help wanted
invalid
low priority
low priority
pull-request
question
waiting for feedback
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
DominikDoom/a1111-sd-webui-tagcomplete#266
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
📋 Pull Request Information
Original PR: https://github.com/DominikDoom/a1111-sd-webui-tagcomplete/pull/177
Author: @fuyedong
Created: 5/11/2023
Status: ✅ Merged
Merged: 5/11/2023
Merged by: @DominikDoom
Base:
main← Head:main📝 Commits (6)
a724da3try chantsaed449cfix chant issue5b9af49吟唱模板功能基本完成6b51dc8fix chants search issue79b670efix chants search issueb59123fnew chants📊 Changes
10 files changed (+97 additions, -6 deletions)
View changed files
📝
javascript/__globals.js(+1 -0)📝
javascript/_result.js(+2 -1)➕
javascript/ext_chants.js(+52 -0)📝
javascript/ext_embeddings.js(+1 -1)📝
javascript/ext_hypernets.js(+1 -1)📝
javascript/ext_loras.js(+1 -1)📝
javascript/ext_lycos.js(+1 -1)📝
javascript/tagAutocomplete.js(+5 -1)📝
scripts/tag_autocomplete_helper.py(+1 -0)➕
tags/chants.json(+32 -0)📄 Description
您好, DominikDoom:
首先, 感谢您的卓越贡献.
最近,我为 tagcomplete 写了一个新功能, 用来一次性填入大量的提示词, 提高提示词的输入效率. 这里我称之为"Chant".
它基于其他扩展代码开发, 几乎没有做破坏性的修改, 除了在 tagAutocomplete.js中做了一些展示方面的针对性的优化.
该功能首先需要在
tags目录下新增一个名为chants.json的JSON文件.该JSON格式为
[chantObject1, chantObject2...chantObjectn]格式.chantObject 有四个字段:
name- 用于展示terms- 用于搜索,content- 实际的提示词内容color- 颜色.以下是json文件的示例:
通过输入
<和<c:指令触发输入, 例如在提示词框中输入<c:高质量, 选中后生成以下提示词不知道该功能是否符合 tagcomplete 的项目需求, 并合并到 tagcomplete 中呢?
期待您的接受
🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.