mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-26 10:12:51 +00:00
fix: loop node issue
This commit is contained in:
parent
04b42c399d
commit
2c624a26ba
|
|
@ -858,6 +858,42 @@
|
|||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 循环跳过 节点-->
|
||||
<template v-if="data.type === WorkflowType.LoopContinueNode">
|
||||
<div class="card-never border-r-6">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('common.param.outputParam') }}
|
||||
</h5>
|
||||
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<div class="mb-8">
|
||||
<span class="color-secondary">
|
||||
{{ $t('views.applicationWorkflow.nodes.loopContinueNode.isContinue') }}:</span
|
||||
>
|
||||
|
||||
{{ data.is_continue }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<!-- 循环退出 节点-->
|
||||
<template v-if="data.type === WorkflowType.LoopBreakNode">
|
||||
<div class="card-never border-r-6">
|
||||
<h5 class="p-8-12">
|
||||
{{ $t('common.param.outputParam') }}
|
||||
</h5>
|
||||
|
||||
<div class="p-8-12 border-t-dashed lighter">
|
||||
<div class="mb-8">
|
||||
<span class="color-secondary">
|
||||
{{ $t('views.applicationWorkflow.nodes.loopBreakNode.isBreak') }}:</span
|
||||
>
|
||||
|
||||
{{ data.is_break }}
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</template>
|
||||
<slot></slot>
|
||||
</template>
|
||||
<template v-else>
|
||||
|
|
|
|||
|
|
@ -379,10 +379,12 @@ export default {
|
|||
loopContinueNode: {
|
||||
label: 'Continue',
|
||||
text: 'Used to terminate the current loop and proceed to the next one.',
|
||||
isContinue: 'Continue',
|
||||
},
|
||||
loopBreakNode: {
|
||||
label: 'Break',
|
||||
text: 'Terminate the current loop and exit the loop body',
|
||||
isBreak: 'Break',
|
||||
},
|
||||
},
|
||||
compare: {
|
||||
|
|
|
|||
|
|
@ -66,7 +66,7 @@ export default {
|
|||
placeholder: 'Please select an AI model',
|
||||
},
|
||||
roleSettings: {
|
||||
label: 'System Role',
|
||||
label: 'System Prompt',
|
||||
placeholder: 'You are xxx assistant',
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -379,10 +379,12 @@ export default {
|
|||
loopContinueNode: {
|
||||
label: 'Continue',
|
||||
text: '用于终止当前循环,执行下次循环',
|
||||
isContinue: 'Continue',
|
||||
},
|
||||
loopBreakNode: {
|
||||
label: 'Break',
|
||||
text: '终止当前循环,跳出循环体',
|
||||
isBreak: 'Break',
|
||||
},
|
||||
},
|
||||
compare: {
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ export default {
|
|||
placeholder: '请选择 AI 模型',
|
||||
},
|
||||
roleSettings: {
|
||||
label: '系统角色',
|
||||
label: '系统提示词',
|
||||
placeholder: '你是 xxx 小助手',
|
||||
},
|
||||
|
||||
|
|
|
|||
|
|
@ -366,8 +366,12 @@ export default {
|
|||
loopVariable: '循環變量',
|
||||
},
|
||||
loopBodyNode: { label: '循環體', text: '循環體' },
|
||||
loopContinueNode: { label: 'Continue', text: '用於終止當前循環,執行下次循環' },
|
||||
loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體' },
|
||||
loopContinueNode: {
|
||||
label: 'Continue',
|
||||
text: '用於終止當前循環,執行下次循環',
|
||||
isContinue: 'Continue',
|
||||
},
|
||||
loopBreakNode: { label: 'Break', text: '終止當前循環,跳出循環體', isBreak: 'Break' },
|
||||
},
|
||||
compare: {
|
||||
is_null: '為空',
|
||||
|
|
|
|||
|
|
@ -62,7 +62,7 @@ export default {
|
|||
placeholder: '請選擇 AI 模型',
|
||||
},
|
||||
roleSettings: {
|
||||
label: '角色設定',
|
||||
label: '系統提示詞',
|
||||
placeholder: '你是 xxx 小助手',
|
||||
},
|
||||
prompt: {
|
||||
|
|
|
|||
|
|
@ -99,7 +99,7 @@
|
|||
>
|
||||
</ModelSelect>
|
||||
</el-form-item>
|
||||
<el-form-item :label="$t('views.application.form.roleSettings.label')">
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
<div class="flex-between">
|
||||
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
|
||||
|
|
@ -669,7 +669,7 @@ const optimizationPrompt =
|
|||
const AIModeParamSettingDialogRef = ref<InstanceType<typeof AIModeParamSettingDialog>>()
|
||||
const ReasoningParamSettingDialogRef = ref<InstanceType<typeof ReasoningParamSettingDialog>>()
|
||||
const TTSModeParamSettingDialogRef = ref<InstanceType<typeof TTSModeParamSettingDialog>>()
|
||||
const STTModeParamSettingDialogRef = ref<InstanceType<typeof STTModeParamSettingDialog>>()
|
||||
const STTModeParamSettingDialogRef = ref<InstanceType<typeof STTModeParamSettingDialog>>()
|
||||
const ParamSettingDialogRef = ref<InstanceType<typeof ParamSettingDialog>>()
|
||||
const GeneratePromptDialogRef = ref<InstanceType<typeof GeneratePromptDialog>>()
|
||||
|
||||
|
|
|
|||
|
|
@ -53,7 +53,7 @@
|
|||
></ModelSelect>
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item :label="$t('views.application.form.roleSettings.label')">
|
||||
<el-form-item>
|
||||
<template #label>
|
||||
<div class="flex-between">
|
||||
<span>{{ $t('views.application.form.roleSettings.label') }}</span>
|
||||
|
|
@ -72,7 +72,7 @@
|
|||
v-model="chat_data.system"
|
||||
style="height: 100px"
|
||||
@submitDialog="submitSystemDialog"
|
||||
:placeholder="$t('views.application.form.roleSettings.label')"
|
||||
:placeholder="$t('views.application.form.roleSettings.placeholder')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
|
|||
|
|
@ -61,7 +61,7 @@
|
|||
v-model="form_data.system"
|
||||
style="height: 100px"
|
||||
@submitDialog="submitSystemDialog"
|
||||
:placeholder="$t('views.application.form.roleSettings.label')"
|
||||
:placeholder="$t('views.application.form.roleSettings.placeholder')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
|
|||
|
|
@ -57,7 +57,7 @@
|
|||
v-model="form_data.system"
|
||||
style="height: 100px"
|
||||
@submitDialog="submitSystemDialog"
|
||||
:placeholder="$t('views.application.form.roleSettings.label')"
|
||||
:placeholder="$t('views.application.form.roleSettings.placeholder')"
|
||||
/>
|
||||
</el-form-item>
|
||||
<el-form-item
|
||||
|
|
|
|||
Loading…
Reference in New Issue