enable to set the translate model

This commit is contained in:
RockYang
2024-11-08 18:06:39 +08:00
parent 5be4e83876
commit 135755d21d
25 changed files with 328 additions and 207 deletions

View File

@@ -615,7 +615,7 @@ const createLyric = () => {
return showMessageError("请输入歌词描述")
}
isGenerating.value = true
httpPost("/api/suno/lyric", {prompt: data.value.lyrics}).then(res => {
httpPost("/api/prompt/lyric", {prompt: data.value.lyrics}).then(res => {
const lines = res.data.split('\n');
data.value.title = lines.shift().replace(/\*/g,"")
lines.shift()

View File

@@ -153,14 +153,13 @@
</template>
</el-input>
</el-form-item>
<el-form-item label="默认AI模型" prop="default_models">
<el-form-item label="默认翻译模型">
<template #default>
<div class="tip-input">
<el-select
v-model="system['default_models']"
multiple
v-model.number="system['translate_model_id']"
:filterable="true"
placeholder="选择AI模型多选"
placeholder="选择一个默认模型来翻译提示词"
style="width: 100%"
>
<el-option