avoid prompt-only shortcut when execution is requested
This commit is contained in:
parent
1e3e81ed0b
commit
c05eca89f2
@ -54,6 +54,12 @@ export function isExplicitPromptOptimizationRequest(text: string): boolean {
|
||||
/提示词|prompt|文生图提示|出图提示|描述词|咒语|关键词/.test(normalizedText);
|
||||
if (!asksPrompt) return false;
|
||||
|
||||
const alsoRequestsExecution =
|
||||
/然后生图|再生图|并生成|再生成|顺便生成|直接生图|开始生图|出图|执行生成|生成出来|继续生成|做视频|生成视频/.test(
|
||||
normalizedText,
|
||||
);
|
||||
if (alsoRequestsExecution) return false;
|
||||
|
||||
const asksAnalysis =
|
||||
/分析|看图|看看|识别|拆解|提炼|整理|归纳|总结|描述|写出|给我|输出|优化|改写/.test(
|
||||
normalizedText,
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user