perf: 优化模型类型显示

This commit is contained in:
wangdan-fit2cloud 2024-07-23 18:43:07 +08:00
parent 7465ef6511
commit c2b81a3ca5
3 changed files with 9 additions and 1 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 683 KiB

After

Width:  |  Height:  |  Size: 674 KiB

View File

@ -6,3 +6,10 @@ export enum PermissionDesc {
PRIVATE = '仅自己使用',
PUBLIC = '所有用户都可使用,不能编辑'
}
export enum modelType {
EMBEDDING = '向量模型',
LLM = '大语言模型'
}

View File

@ -33,7 +33,7 @@
<ul>
<li class="flex mt-16">
<el-text type="info">模型类型</el-text>
<span class="ellipsis ml-16"> {{ model.model_type }}</span>
<span class="ellipsis ml-16"> {{ modelType[model.model_type as keyof typeof modelType] }}</span>
</li>
<li class="flex mt-12">
<el-text type="info">基础模型</el-text>
@ -90,6 +90,7 @@ import { computed, ref, onMounted, onBeforeUnmount } from 'vue'
import EditModel from '@/views/template/component/EditModel.vue'
import DownloadLoading from '@/components/loading/DownloadLoading.vue'
import { MsgConfirm } from '@/utils/message'
import { modelType } from '@/enums/model'
import useStore from '@/stores'
const props = defineProps<{
model: Model