Files
Atlas/web/src/components/studio/ModelField.vue
T
renjue 5301557ad2
CI / docker (push) Has been cancelled
实现 Atlas AI 平台一期能力并完成品牌化改造。
引入用户端对话/生图与管理端 Provider 配置,统一 invoke 编排、Gateway、请求日志与模型管理;前端按设计规范拆分布局,Go module 更名为 github.com/rose_cat707/Atlas;生图长任务 SSE 推送;管理端登录防爆破;协议与服务类型联动;Replicate 模型同步修复;用户端创作台 UI 重构;管理端创作历史替代请求日志。

Co-authored-by: Cursor <cursoragent@cursor.com>
2026-06-29 22:11:05 +08:00

35 lines
892 B
Vue
Raw Blame History

This file contains ambiguous Unicode characters
This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.
<script setup lang="ts">
import type { ModelInfo } from '@/composables/useUserMeta'
defineProps<{
modelValue: string
models: ModelInfo[]
label?: string
placeholder?: string
}>()
defineEmits<{
'update:modelValue': [value: string]
}>()
</script>
<template>
<el-form-item :label="label ?? '模型'">
<el-select
:model-value="modelValue"
:placeholder="placeholder ?? '选择模型'"
:disabled="!models.length"
filterable
style="width: 100%"
@update:model-value="$emit('update:modelValue', $event)"
>
<el-option v-for="m in models" :key="m.id" :label="m.name" :value="m.id" />
</el-select>
<p v-if="!models.length" class="form-hint">
尚未配置可用模型请前往
<router-link to="/admin/providers">管理端 · Provider</router-link>
添加并同步模型
</p>
</el-form-item>
</template>