除了“Qwen
@@ -191,13 +119,20 @@ export default {
intent:""
}
},
- options: [{
- value: '选项1',
- label: '黄金糕'
- }, {
- value: '选项2',
- label: '双皮奶'
- }]
+ options: [
+ { value: '选项1', label: '黄金糕' },
+ { value: '选项2', label: '双皮奶' }
+ ],
+ models: [
+ { label: '大语言模型(LLM)', key: 'llm' },
+ { label: '语音转文本模型(ASR)', key: 'asr' },
+ { label: '语音活动检测模型(VAD)', key: 'vad' },
+ { label: '语音生成模型(TTS)', key: 'tts' },
+ { label: '意图分类模型(Intent)', key: 'intent' },
+ { label: '记忆增强模型(Memory)', key: 'memory' }
+ ],
+ templates: ['台湾女友', '土豆子', '英语老师', '好奇小男孩', '汪汪队队长']
+
}
},
methods: {
@@ -222,6 +157,11 @@ export default {
this.$message.success('配置已重置')
}).catch(() => {
})
+ },
+ // 处理选择模板的逻辑
+ selectTemplate(template) {
+ this.form.name = template;
+ this.$message.success(`已选择模板:${template}`);
}
}
}
@@ -253,6 +193,14 @@ export default {
padding-bottom: 2px;
}
+.select-field{
+ width: 100%;
+ max-width: 720px;
+ border: 1px solid #e4e6ef;
+ background: #f6f8fb;
+ border-radius: 8px;
+ height: 36px !important;
+}
.audio-box {
flex: 1;
@@ -283,7 +231,7 @@ export default {
.template-item {
height: 37px;
- width: 80px;
+ width: 76px;
border-radius: 8px;
background: #e6ebff;
line-height: 37px;
@@ -291,6 +239,12 @@ export default {
font-size: 11px;
text-align: center;
color: #5778ff;
+ cursor: pointer;
+ transition: background-color 0.3s ease;
+}
+
+.template-item:hover {
+ background-color: #d0d8ff;
}
.prompt-bottom {