|
@@ -361,7 +361,6 @@ const formatter = (value) => {
|
|
|
return `${(value / 100).toFixed(2)}`;
|
|
return `${(value / 100).toFixed(2)}`;
|
|
|
};
|
|
};
|
|
|
|
|
|
|
|
-const uploadAction = '/api/v1/llm/upload'; // 替换为你的上传API
|
|
|
|
|
const fileList = ref([]);
|
|
const fileList = ref([]);
|
|
|
const imageUrls = ref([]);
|
|
const imageUrls = ref([]);
|
|
|
|
|
|
|
@@ -517,7 +516,7 @@ const handleBeforeOk = async (done) => {
|
|
|
Message.success(title);
|
|
Message.success(title);
|
|
|
}
|
|
}
|
|
|
} else {
|
|
} else {
|
|
|
- Message.error(data.msg);
|
|
|
|
|
|
|
+ Message.error('创建失败');
|
|
|
}
|
|
}
|
|
|
done(true);
|
|
done(true);
|
|
|
setLoading(false);
|
|
setLoading(false);
|
|
@@ -576,9 +575,9 @@ const queryModel = async () => {
|
|
|
if (Object.hasOwnProperty.call(data.data, key)) {
|
|
if (Object.hasOwnProperty.call(data.data, key)) {
|
|
|
const element = data.data[key];
|
|
const element = data.data[key];
|
|
|
// console.log(element, 'element');
|
|
// console.log(element, 'element');
|
|
|
- // arrObj[key] = element.filter((item) => item.available === true && item.model_type === 'chat');
|
|
|
|
|
|
|
+ arrObj[key] = element.filter((item) => item.available === true && item.model_type === 'chat');
|
|
|
// 先注释掉model_type过滤 加上暂无可用数据
|
|
// 先注释掉model_type过滤 加上暂无可用数据
|
|
|
- arrObj[key] = element.filter((item) => item.available === true);
|
|
|
|
|
|
|
+ // arrObj[key] = element.filter((item) => item.available === true);
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
modelList.value = arrObj;
|
|
modelList.value = arrObj;
|
|
@@ -640,7 +639,7 @@ defineExpose({
|
|
|
.upload-img {
|
|
.upload-img {
|
|
|
cursor: pointer;
|
|
cursor: pointer;
|
|
|
}
|
|
}
|
|
|
-:deep .arco-tabs-nav-tab-list {
|
|
|
|
|
|
|
+:deep(.arco-tabs-nav-tab-list) {
|
|
|
width: 100%;
|
|
width: 100%;
|
|
|
|
|
|
|
|
.arco-tabs-tab {
|
|
.arco-tabs-tab {
|
|
@@ -653,7 +652,7 @@ defineExpose({
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
}
|
|
}
|
|
|
-:deep .arco-input-wrapper {
|
|
|
|
|
|
|
+:deep(.arco-input-wrapper) {
|
|
|
background-color: var(--color-neutral-2);
|
|
background-color: var(--color-neutral-2);
|
|
|
}
|
|
}
|
|
|
</style>
|
|
</style>
|