Add runLLM model selection
This commit is contained in:
@@ -282,7 +282,8 @@
|
|||||||
value: '',
|
value: '',
|
||||||
valueType: 'value',
|
valueType: 'value',
|
||||||
outputVar: '',
|
outputVar: '',
|
||||||
indent: 0
|
indent: 0,
|
||||||
|
model: 'model'
|
||||||
}
|
}
|
||||||
break;
|
break;
|
||||||
case 'v2ShowAlert':
|
case 'v2ShowAlert':
|
||||||
@@ -988,6 +989,13 @@
|
|||||||
<OptionInput value="var">{language.var}</OptionInput>
|
<OptionInput value="var">{language.var}</OptionInput>
|
||||||
</SelectInput>
|
</SelectInput>
|
||||||
<TextInput bind:value={editTrigger.value} />
|
<TextInput bind:value={editTrigger.value} />
|
||||||
|
|
||||||
|
<span>{language.model}</span>
|
||||||
|
<SelectInput bind:value={editTrigger.model}>
|
||||||
|
<OptionInput value="model">{language.model}</OptionInput>
|
||||||
|
<OptionInput value="submodel">{language.submodel}</OptionInput>
|
||||||
|
</SelectInput>
|
||||||
|
|
||||||
<span class="block text-textcolor">{language.outputVar}</span>
|
<span class="block text-textcolor">{language.outputVar}</span>
|
||||||
<TextInput bind:value={editTrigger.outputVar} />
|
<TextInput bind:value={editTrigger.outputVar} />
|
||||||
|
|
||||||
|
|||||||
@@ -304,6 +304,7 @@ export type triggerV2RunLLM = {
|
|||||||
type: 'v2RunLLM',
|
type: 'v2RunLLM',
|
||||||
value: string,
|
value: string,
|
||||||
valueType: 'var'|'value',
|
valueType: 'var'|'value',
|
||||||
|
model: 'model'|'submodel',
|
||||||
outputVar: string,
|
outputVar: string,
|
||||||
indent: number
|
indent: number
|
||||||
}
|
}
|
||||||
@@ -1340,7 +1341,7 @@ export async function runTrigger(char:character,mode:triggerMode, arg:{
|
|||||||
bias: {},
|
bias: {},
|
||||||
useStreaming: false,
|
useStreaming: false,
|
||||||
noMultiGen: true,
|
noMultiGen: true,
|
||||||
}, 'model')
|
}, effect.model)
|
||||||
|
|
||||||
if(result.type === 'fail' || result.type === 'streaming' || result.type === 'multiline'){
|
if(result.type === 'fail' || result.type === 'streaming' || result.type === 'multiline'){
|
||||||
setVar(varName, 'null')
|
setVar(varName, 'null')
|
||||||
|
|||||||
Reference in New Issue
Block a user