update: 调整小参数模型表单配置

This commit is contained in:
zhuoqinglian
2026-04-08 11:41:12 +08:00
parent 1d3afb3c9a
commit 7dcc014ce4
2 changed files with 8 additions and 8 deletions
@@ -8,7 +8,7 @@
:class="{ active: currentSessionId === session.sessionId }" @click="selectSession(session)"> :class="{ active: currentSessionId === session.sessionId }" @click="selectSession(session)">
<img :src="getUserAvatar(session.sessionId)" class="avatar" /> <img :src="getUserAvatar(session.sessionId)" class="avatar" />
<div class="session-info"> <div class="session-info">
<div class="session-time">{{ formatTime(session.createdAt) }}</div> <div class="session-time">{{ session.title || formatTime(session.createdAt) }}</div>
<div class="message-count">{{ session.chatCount > 99 ? '99' : session.chatCount }}</div> <div class="message-count">{{ session.chatCount > 99 ? '99' : session.chatCount }}</div>
</div> </div>
</div> </div>
@@ -139,7 +139,7 @@ export default {
if (this.messages[0]) { if (this.messages[0]) {
result.push({ result.push({
type: 'time', type: 'time',
content: this.formatTime(this.messages[0].createdAt), content: this.formatTime(this.messages[this.messages.length - 1].createdAt),
id: `time-${Date.now()}-${Math.random().toString(36).substr(2, 9)}` id: `time-${Date.now()}-${Math.random().toString(36).substr(2, 9)}`
}); });
} }
+6 -6
View File
@@ -268,10 +268,9 @@
filterable filterable
:placeholder="$t('roleConfig.pleaseSelect')" :placeholder="$t('roleConfig.pleaseSelect')"
class="form-select" class="form-select"
@change="handleModelChange('SLM', $event)"
> >
<el-option <el-option
v-for="(item, optionIndex) in modelOptions['SLM']" v-for="(item, optionIndex) in modelOptions['LLM']"
:key="`option-asr-${optionIndex}`" :key="`option-asr-${optionIndex}`"
:label="item.label" :label="item.label"
:value="item.value" :value="item.value"
@@ -515,7 +514,7 @@ export default {
{ label: this.$t("roleConfig.vad"), key: "vadModelId", type: "VAD" }, { label: this.$t("roleConfig.vad"), key: "vadModelId", type: "VAD" },
{ label: this.$t("roleConfig.asr"), key: "asrModelId", type: "ASR" }, { label: this.$t("roleConfig.asr"), key: "asrModelId", type: "ASR" },
{ label: this.$t("roleConfig.llm"), key: "llmModelId", type: "LLM" }, { label: this.$t("roleConfig.llm"), key: "llmModelId", type: "LLM" },
{ label: this.$t("roleConfig.slm"), key: "llmModelId", type: "SLM" }, { label: this.$t("roleConfig.slm"), key: "slmModelId", type: "SLM" },
{ label: this.$t("roleConfig.vllm"), key: "vllmModelId", type: "VLLM" }, { label: this.$t("roleConfig.vllm"), key: "vllmModelId", type: "VLLM" },
{ label: this.$t("roleConfig.intent"), key: "intentModelId", type: "Intent" }, { label: this.$t("roleConfig.intent"), key: "intentModelId", type: "Intent" },
{ label: this.$t("roleConfig.memory"), key: "memModelId", type: "Memory" }, { label: this.$t("roleConfig.memory"), key: "memModelId", type: "Memory" },
@@ -567,6 +566,7 @@ export default {
asrModelId: this.form.model.asrModelId, asrModelId: this.form.model.asrModelId,
vadModelId: this.form.model.vadModelId, vadModelId: this.form.model.vadModelId,
llmModelId: this.form.model.llmModelId, llmModelId: this.form.model.llmModelId,
slmModelId: this.form.model.slmModelId,
vllmModelId: this.form.model.vllmModelId, vllmModelId: this.form.model.vllmModelId,
ttsModelId: this.form.model.ttsModelId, ttsModelId: this.form.model.ttsModelId,
ttsVoiceId: this.form.ttsVoiceId, ttsVoiceId: this.form.ttsVoiceId,
@@ -635,6 +635,7 @@ export default {
vadModelId: "", vadModelId: "",
asrModelId: "", asrModelId: "",
llmModelId: "", llmModelId: "",
slmModelId: "",
vllmModelId: "", vllmModelId: "",
memModelId: "", memModelId: "",
intentModelId: "", intentModelId: "",
@@ -691,6 +692,7 @@ export default {
vadModelId: templateData.vadModelId || this.form.model.vadModelId, vadModelId: templateData.vadModelId || this.form.model.vadModelId,
asrModelId: templateData.asrModelId || this.form.model.asrModelId, asrModelId: templateData.asrModelId || this.form.model.asrModelId,
llmModelId: templateData.llmModelId || this.form.model.llmModelId, llmModelId: templateData.llmModelId || this.form.model.llmModelId,
slmModelId: templateData.llmModelId || this.form.model.slmModelId,
vllmModelId: templateData.vllmModelId || this.form.model.vllmModelId, vllmModelId: templateData.vllmModelId || this.form.model.vllmModelId,
memModelId: templateData.memModelId || this.form.model.memModelId, memModelId: templateData.memModelId || this.form.model.memModelId,
intentModelId: templateData.intentModelId || this.form.model.intentModelId, intentModelId: templateData.intentModelId || this.form.model.intentModelId,
@@ -708,6 +710,7 @@ export default {
vadModelId: data.data.vadModelId, vadModelId: data.data.vadModelId,
asrModelId: data.data.asrModelId, asrModelId: data.data.asrModelId,
llmModelId: data.data.llmModelId, llmModelId: data.data.llmModelId,
slmModelId: data.data.slmModelId,
vllmModelId: data.data.vllmModelId, vllmModelId: data.data.vllmModelId,
memModelId: data.data.memModelId, memModelId: data.data.memModelId,
intentModelId: data.data.intentModelId, intentModelId: data.data.intentModelId,
@@ -927,9 +930,6 @@ export default {
// 当LLM类型改变时,更新意图识别选项的可见性 // 当LLM类型改变时,更新意图识别选项的可见性
this.updateIntentOptionsVisibility(); this.updateIntentOptionsVisibility();
} }
if (type === "SLM") {
// TODO: 待处理逻辑
}
}, },
fetchAllFunctions() { fetchAllFunctions() {
return new Promise((resolve, reject) => { return new Promise((resolve, reject) => {