Skip to content

Commit a92e505

Browse files
committed
2.0.2
1 parent 7d018be commit a92e505

12 files changed

Lines changed: 134 additions & 108 deletions

File tree

js/services/api.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,14 @@ function getDynamicApiBase() {
4545
}
4646

4747
class APIService {
48+
/**
49+
* 获取动态 API 基础路径
50+
* 暴露模块级的 getDynamicApiBase 函数供外部调用
51+
*/
52+
static getDynamicApiBase() {
53+
return getDynamicApiBase();
54+
}
55+
4856
/**
4957
* 构建完整的API URL
5058
*/

locales/en/nodeDefs.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
},
1414
"custom_rule_content": {
1515
"name": "Custom Rule Content",
16-
"tooltip": "Enter your custom rule here"
16+
"tooltip": "Enter your custom rule here; 💡Input trigger word [R] to force re-execution"
1717
},
1818
"user_prompt": {
1919
"name": "User Prompt",
20-
"tooltip": "Your prompt to be enhanced"
20+
"tooltip": "Your prompt to be enhanced; 💡Input trigger word [R] to force re-execution"
2121
},
2222
"llm_service": {
2323
"name": "LLM Service",
@@ -29,7 +29,7 @@
2929
},
3030
"source_text": {
3131
"name": "Source Text",
32-
"tooltip": "Optional input text"
32+
"tooltip": "Optional input text; 💡Input trigger word [R] to force re-execution"
3333
}
3434
},
3535
"outputs": {
@@ -57,11 +57,11 @@
5757
},
5858
"custom_rule_content": {
5959
"name": "Custom Rule Content",
60-
"tooltip": "Custom rule content"
60+
"tooltip": "Custom rule content; 💡Input trigger word [R] to force re-execution"
6161
},
6262
"user_prompt": {
6363
"name": "User Prompt",
64-
"tooltip": "Enter additional prompts here, sent with the rule"
64+
"tooltip": "Enter additional prompts here, sent with the rule; 💡Input trigger word [R] to force re-execution"
6565
},
6666
"vlm_service": {
6767
"name": "VLM Service",
@@ -89,7 +89,7 @@
8989
"inputs": {
9090
"source_text": {
9191
"name": "Source Text",
92-
"tooltip": "Text to translate"
92+
"tooltip": "Text to translate; 💡Input trigger word [R] to force re-execution"
9393
},
9494
"target_language": {
9595
"name": "Target Language",
@@ -129,11 +129,11 @@
129129
},
130130
"custom_rule_content": {
131131
"name": "Custom Rule Content",
132-
"tooltip": "Custom rule content"
132+
"tooltip": "Custom rule content; 💡Input trigger word [R] to force re-execution"
133133
},
134134
"user_prompt": {
135135
"name": "User Prompt",
136-
"tooltip": "Enter additional prompts here, sent with the rule"
136+
"tooltip": "Enter additional prompts here, sent with the rule; 💡Input trigger word [R] to force re-execution"
137137
},
138138
"vlm_service": {
139139
"name": "VLM Service",
@@ -193,7 +193,7 @@
193193
},
194194
"user_prompt": {
195195
"name": "User Prompt",
196-
"tooltip": "Enter additional prompts here, sent with the preset"
196+
"tooltip": "Enter additional prompts here, sent with the preset; 💡Input trigger word [R] to force re-execution"
197197
},
198198
"vlm_service": {
199199
"name": "VLM Service",

locales/zh-TW/nodeDefs.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
},
1414
"custom_rule_content": {
1515
"name": "自定義規則內容",
16-
"tooltip": "在此輸入您的自定義規則內容"
16+
"tooltip": "在此輸入您的自定義規則內容; 💡輸入觸發詞[R],可以讓節點每次都被執行"
1717
},
1818
"user_prompt": {
1919
"name": "用戶提示詞",
20-
"tooltip": "想要增強的原始提示詞"
20+
"tooltip": "想要增強的原始提示詞; 💡輸入觸發詞[R],可以讓節點每次都被執行"
2121
},
2222
"llm_service": {
2323
"name": "LLM服務",
@@ -29,7 +29,7 @@
2929
},
3030
"source_text": {
3131
"name": "原文輸入",
32-
"tooltip": "可選的輸入文本"
32+
"tooltip": "可選的輸入文本; 💡輸入觸發詞[R],可以讓節點每次都被執行"
3333
}
3434
},
3535
"outputs": {
@@ -57,11 +57,11 @@
5757
},
5858
"custom_rule_content": {
5959
"name": "自定義規則內容",
60-
"tooltip": "在此輸入您的自定義規則內容"
60+
"tooltip": "在此輸入您的自定義規則內容; 💡輸入觸發詞[R],可以讓節點每次都被執行"
6161
},
6262
"user_prompt": {
6363
"name": "使用者提示詞",
64-
"tooltip": "在此輸入補充提示詞,將與規則一起發送"
64+
"tooltip": "在此輸入補充提示詞,將與規則一起發送; 💡輸入觸發詞[R],可以讓節點每次都被執行"
6565
},
6666
"vlm_service": {
6767
"name": "視覺服務",
@@ -89,7 +89,7 @@
8989
"inputs": {
9090
"source_text": {
9191
"name": "原文",
92-
"tooltip": "需要翻譯的文本"
92+
"tooltip": "需要翻譯的文本; 💡輸入觸發詞[R],可以讓節點每次都被執行"
9393
},
9494
"target_language": {
9595
"name": "目標語言",
@@ -129,11 +129,11 @@
129129
},
130130
"custom_rule_content": {
131131
"name": "自定義規則內容",
132-
"tooltip": "在此輸入您的自定義規則內容"
132+
"tooltip": "在此輸入您的自定義規則內容; 💡輸入觸發詞[R],可以讓節點每次都被執行"
133133
},
134134
"user_prompt": {
135135
"name": "使用者提示詞",
136-
"tooltip": "在此輸入補充提示詞,將與規則一起發送"
136+
"tooltip": "在此輸入補充提示詞,將與規則一起發送; 💡輸入觸發詞[R],可以讓節點每次都被執行"
137137
},
138138
"vlm_service": {
139139
"name": "視覺服務",
@@ -193,7 +193,7 @@
193193
},
194194
"user_prompt": {
195195
"name": "使用者提示詞",
196-
"tooltip": "在此輸入補充提示詞,將與預設一起發送"
196+
"tooltip": "在此輸入補充提示詞,將與預設一起發送; 💡輸入觸發詞[R],可以讓節點每次都被執行"
197197
},
198198
"vlm_service": {
199199
"name": "視覺服務",

locales/zh/nodeDefs.json

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -13,11 +13,11 @@
1313
},
1414
"custom_rule_content": {
1515
"name": "自定义规则内容",
16-
"tooltip": "在此输入您的自定义规则内容"
16+
"tooltip": "在此输入您的自定义规则内容; 💡输入触发词[R],可以让节点每次都被执行"
1717
},
1818
"user_prompt": {
1919
"name": "用户提示词",
20-
"tooltip": "想要增强的原始提示词"
20+
"tooltip": "想要增强的原始提示词; 💡输入触发词[R],可以让节点每次都被执行"
2121
},
2222
"llm_service": {
2323
"name": "LLM服务",
@@ -29,7 +29,7 @@
2929
},
3030
"source_text": {
3131
"name": "原文输入",
32-
"tooltip": "可选的输入文本"
32+
"tooltip": "可选的输入文本; 💡输入触发词[R],可以让节点每次都被执行"
3333
}
3434
},
3535
"outputs": {
@@ -57,11 +57,11 @@
5757
},
5858
"custom_rule_content": {
5959
"name": "自定义规则内容",
60-
"tooltip": "在此输入您的自定义规则内容"
60+
"tooltip": "在此输入您的自定义规则内容; 💡输入触发词[R],可以让节点每次都被执行"
6161
},
6262
"user_prompt": {
6363
"name": "用户提示词",
64-
"tooltip": "输入额外的具体要求,将与规则一起发送给模型"
64+
"tooltip": "输入额外的具体要求,将与规则一起发送给模型; 💡输入触发词[R],可以让节点每次都被执行"
6565
},
6666
"vlm_service": {
6767
"name": "视觉服务",
@@ -89,7 +89,7 @@
8989
"inputs": {
9090
"source_text": {
9191
"name": "原文",
92-
"tooltip": "需要翻译的文本"
92+
"tooltip": "需要翻译的文本; 💡输入触发词[R],可以让节点每次都被执行"
9393
},
9494
"target_language": {
9595
"name": "目标语言",
@@ -129,11 +129,11 @@
129129
},
130130
"custom_rule_content": {
131131
"name": "自定义规则内容",
132-
"tooltip": "在此输入您的自定义规则内容"
132+
"tooltip": "在此输入您的自定义规则内容; 💡输入触发词[R],可以让节点每次都被执行"
133133
},
134134
"user_prompt": {
135135
"name": "用户提示词",
136-
"tooltip": "输入额外的具体要求,将与规则一起发送给模型"
136+
"tooltip": "输入额外的具体要求,将与规则一起发送给模型; 💡输入触发词[R],可以让节点每次都被执行"
137137
},
138138
"vlm_service": {
139139
"name": "视觉服务",
@@ -193,7 +193,7 @@
193193
},
194194
"user_prompt": {
195195
"name": "用户提示词",
196-
"tooltip": "输入额外的具体要求,将与预设一起发送给模型"
196+
"tooltip": "输入额外的具体要求,将与预设一起发送给模型; 💡输入触发词[R],可以让节点每次都被执行"
197197
},
198198
"vlm_service": {
199199
"name": "视觉服务",

node/expand_node.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -65,17 +65,17 @@ def INPUT_TYPES(cls):
6565
# 临时规则开关
6666
"custom_rule": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable", "tooltip": "Enable to use custom rule content below instead of preset"}),
6767
# 临时规则内容输入框
68-
"custom_rule_content": ("STRING", {"multiline": True, "default": "", "placeholder": "在此输入临时规则,仅在启用'临时规则'时生效"}),
68+
"custom_rule_content": ("STRING", {"multiline": True, "default": "", "placeholder": "在此输入临时规则,仅在启用'临时规则'时生效", "tooltip": "在此输入您的自定义规则内容; 💡输入触发词[R],可以让节点每次都被执行"}),
6969
# 用户提示词
70-
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "填写的要优化的提示词原文,若存在原文端口输入和内容输入,将合并提交"}),
70+
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "填写的要优化的提示词原文,若存在原文端口输入和内容输入,将合并提交", "tooltip": "想要增强的原始提示词; 💡输入触发词[R],可以让节点每次都被执行"}),
7171
# 扩写服务
7272
"llm_service": (service_options, {"default": default_service, "tooltip": "Select LLM service and model"}),
7373
# Ollama自动释放显存
7474
"ollama_auto_unload": ("BOOLEAN", {"default": True, "label_on": "Enable", "label_off": "Disable", "tooltip": "Auto unload Ollama model after generation"}),
7575
},
7676
"optional": {
7777
# 原文输入端口
78-
"source_text": ("STRING", {"default": "", "multiline": True, "defaultInput": True, "placeholder": "Input text to enhance..."}),
78+
"source_text": ("STRING", {"default": "", "multiline": True, "defaultInput": True, "placeholder": "Input text to enhance...", "tooltip": "可选的输入文本; 💡输入触发词[R],可以让节点每次都被执行"}),
7979
},
8080
"hidden": {
8181
"unique_id": "UNIQUE_ID",

node/image_caption_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -63,8 +63,8 @@ def INPUT_TYPES(cls):
6363
"image": ("IMAGE",),
6464
"rule": (prompt_template_options, {"default": prompt_template_options[0] if prompt_template_options else "默认中文反推提示词", "tooltip": "Choose a preset rule for image captioning"}),
6565
"custom_rule": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable", "tooltip": "Enable to use custom rule content below"}),
66-
"custom_rule_content": ("STRING", {"multiline": True, "default": "", "placeholder": "在此输入临时规则,仅在启用'临时规则'时生效"}),
67-
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "输入额外的具体要求,将与规则一起发送给模型"}),
66+
"custom_rule_content": ("STRING", {"multiline": True, "default": "", "placeholder": "在此输入临时规则,仅在启用'临时规则'时生效", "tooltip": "在此输入您的自定义规则内容; 💡输入触发词[R],可以让节点每次都被执行"}),
67+
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "输入额外的具体要求,将与规则一起发送给模型", "tooltip": "输入额外的具体要求,将与规则一起发送给模型; 💡输入触发词[R],可以让节点每次都被执行"}),
6868
"vlm_service": (service_options, {"default": default_service, "tooltip": "Select VLM service and model"}),
6969
# Ollama Automatic VRAM Unload
7070
"ollama_auto_unload": ("BOOLEAN", {"default": True, "label_on": "Enable", "label_off": "Disable", "tooltip": "Auto unload Ollama model after generation"}),

node/kontext_preset_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -73,7 +73,7 @@ def INPUT_TYPES(cls):
7373
"required": {
7474
"image": ("IMAGE",),
7575
"kontext_preset": (prompt_template_options, {"default": prompt_template_options[0] if prompt_template_options else "情境深度融合"}),
76-
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "输入额外的具体要求,将与预设一起发送给模型"}),
76+
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "输入额外的具体要求,将与预设一起发送给模型", "tooltip": "输入额外的具体要求,将与预设一起发送给模型; 💡输入触发词[R],可以让节点每次都被执行"}),
7777
"vlm_service": (service_options, {"default": default_service, "tooltip": "Select VLM service and model"}),
7878
# Ollama Automatic VRAM Unload
7979
"ollama_auto_unload": ("BOOLEAN", {"default": True, "label_on": "Enable", "label_off": "Disable", "tooltip": "Auto unload Ollama model after generation"}),

node/translate_node.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ def INPUT_TYPES(cls):
2929

3030
return {
3131
"required": {
32-
"source_text": ("STRING", {"forceInput": True, "default": "", "multiline": True, "placeholder": "Input text to translate..."}),
32+
"source_text": ("STRING", {"forceInput": True, "default": "", "multiline": True, "placeholder": "Input text to translate...", "tooltip": "需要翻译的文本; 💡输入触发词[R],可以让节点每次都被执行"}),
3333
"target_language": (["English", "Chinese"], {"default": "English"}),
3434
"translate_service": (service_options, {"default": default_service, "tooltip": "Select translation service and model"}),
3535
# Ollama Automatic VRAM Unload

node/video_caption_node.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -65,8 +65,8 @@ def INPUT_TYPES(cls):
6565
"required": {
6666
"rule": (prompt_template_options, {"default": prompt_template_options[0] if prompt_template_options else "默认视频反推提示词", "tooltip": "💡Template Config: Settings -> ✨Prompt Assistant -> Rule Editor"}),
6767
"custom_rule": ("BOOLEAN", {"default": False, "label_on": "Enable", "label_off": "Disable", "tooltip": "⚠️ Enable to use custom rule content below instead of preset"}),
68-
"custom_rule_content": ("STRING", {"multiline": True, "default": "", "placeholder": "请输入临时规则内容,仅在启用'临时规则'时生效"}),
69-
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "输入额外的具体要求,将与规则一起发送给模型"}),
68+
"custom_rule_content": ("STRING", {"multiline": True, "default": "", "placeholder": "请输入临时规则内容,仅在启用'临时规则'时生效", "tooltip": "在此输入您的自定义规则内容; 💡输入触发词[R],可以让节点每次都被执行"}),
69+
"user_prompt": ("STRING", {"multiline": True, "default": "", "placeholder": "输入额外的具体要求,将与规则一起发送给模型", "tooltip": "输入额外的具体要求,将与规则一起发送给模型; 💡输入触发词[R],可以让节点每次都被执行"}),
7070
"vlm_service": (service_options, {"default": default_service, "tooltip": "Select VLM service and model"}),
7171
"sampling_mode": (["Auto (Uniform)", "Manual (Indices)"], {"default": "Auto (Uniform)"}),
7272
"frame_count": ("INT", {"default": 5, "min": 1, "max": 32, "step": 1, "tooltip": "💡Only for 'Auto' mode. Frame limits: GLM-4V≤5, GLM-4.6V≤100, Qwen-VL≤100, Gemini≤3000, Grok≤10"}),

requirements.txt

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
11
httpx
2-
opencv-python
32
imageio
43
imageio-ffmpeg

0 commit comments

Comments
 (0)