feat: add trigger effect RunAxLLM

This commit is contained in:
Bo26fhmC5M
2025-02-08 17:15:45 +09:00
parent 89c34dfdd7
commit fb941148e0
5 changed files with 117 additions and 2 deletions

View File

@@ -304,6 +304,13 @@
index: ''
}
}
else if(effect.type === 'runAxLLM'){
value.effect[i] = {
type: 'runAxLLM',
value: '',
inputVar: ''
}
}
}}>
<OptionInput value="setvar">{language.triggerEffSetVar}</OptionInput>
<OptionInput value="impersonate">{language.triggerEffImperson}</OptionInput>
@@ -319,6 +326,7 @@
<OptionInput value="runImgGen">{language.runImgGen}</OptionInput>
<OptionInput value="cutchat">{language.cutChat}</OptionInput>
<OptionInput value="modifychat">{language.modifyChat}</OptionInput>
<OptionInput value="runAxLLM">{language.triggerEffRunAxLLM}</OptionInput>
</SelectInput>
{#if
(value.type !== 'start' && (effect.type === 'systemprompt' || effect.type === 'stop')) ||
@@ -333,7 +341,8 @@
effect.type === 'showAlert' ||
effect.type === 'sendAIprompt' ||
effect.type === 'extractRegex' ||
effect.type === 'runImgGen'
effect.type === 'runImgGen' ||
effect.type === 'runAxLLM'
)
}
<span class="text-red-400 text-sm">{language.triggerLowLevelOnly}</span>
@@ -459,6 +468,14 @@
<TextAreaInput highlight bind:value={effect.value} />
{/if}
{#if effect.type === 'runAxLLM'}
<span class="text-textcolor2 text-sm">{language.prompt} <Help key="triggerLLMPrompt" /></span>
<TextAreaInput highlight bind:value={effect.value} />
<span class="text-textcolor2 text-sm">{language.resultStoredVar}</span>
<TextInput bind:value={effect.inputVar} />
{/if}
{/each}
</div>
</div>