perf: 优化模型类型显示
perf: 优化模型类型显示
This commit is contained in:
commit
a851088f69
Binary file not shown.
|
Before Width: | Height: | Size: 683 KiB After Width: | Height: | Size: 674 KiB |
@ -6,3 +6,10 @@ export enum PermissionDesc {
|
|||||||
PRIVATE = '仅自己使用',
|
PRIVATE = '仅自己使用',
|
||||||
PUBLIC = '所有用户都可使用,不能编辑'
|
PUBLIC = '所有用户都可使用,不能编辑'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
export enum modelType {
|
||||||
|
EMBEDDING = '向量模型',
|
||||||
|
LLM = '大语言模型'
|
||||||
|
}
|
||||||
|
|
||||||
|
|
||||||
|
|||||||
@ -33,7 +33,7 @@
|
|||||||
<ul>
|
<ul>
|
||||||
<li class="flex mt-16">
|
<li class="flex mt-16">
|
||||||
<el-text type="info">模型类型</el-text>
|
<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>
|
||||||
<li class="flex mt-12">
|
<li class="flex mt-12">
|
||||||
<el-text type="info">基础模型</el-text>
|
<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 EditModel from '@/views/template/component/EditModel.vue'
|
||||||
import DownloadLoading from '@/components/loading/DownloadLoading.vue'
|
import DownloadLoading from '@/components/loading/DownloadLoading.vue'
|
||||||
import { MsgConfirm } from '@/utils/message'
|
import { MsgConfirm } from '@/utils/message'
|
||||||
|
import { modelType } from '@/enums/model'
|
||||||
import useStore from '@/stores'
|
import useStore from '@/stores'
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
model: Model
|
model: Model
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user