mirror of
https://github.com/1Panel-dev/MaxKB.git
synced 2025-12-29 07:52:50 +00:00
perf: 优化模型类型显示
This commit is contained in:
parent
7465ef6511
commit
c2b81a3ca5
Binary file not shown.
|
Before Width: | Height: | Size: 683 KiB After Width: | Height: | Size: 674 KiB |
|
|
@ -6,3 +6,10 @@ export enum PermissionDesc {
|
|||
PRIVATE = '仅自己使用',
|
||||
PUBLIC = '所有用户都可使用,不能编辑'
|
||||
}
|
||||
|
||||
export enum modelType {
|
||||
EMBEDDING = '向量模型',
|
||||
LLM = '大语言模型'
|
||||
}
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue