feat(saas): 接通 embedding 模型管理全栈
Some checks failed
CI / Lint & TypeCheck (push) Has been cancelled
CI / Unit Tests (push) Has been cancelled
CI / Build Frontend (push) Has been cancelled
CI / Rust Check (push) Has been cancelled
CI / Security Scan (push) Has been cancelled
CI / E2E Tests (push) Has been cancelled

数据库 migration 已有 is_embedding/model_type 列但全栈未使用。
打通 4 层: ModelRow → ModelInfo/CRUD → CachedModel → Admin 前端。
relay/models 端点也返回 is_embedding 字段,前端可按类型过滤。
This commit is contained in:
iven
2026-04-12 08:10:50 +08:00
parent b0a304ca82
commit 5599cefc41
7 changed files with 45 additions and 18 deletions

View File

@@ -14,6 +14,8 @@ pub struct ModelRow {
pub supports_streaming: bool,
pub supports_vision: bool,
pub enabled: bool,
pub is_embedding: bool,
pub model_type: String,
pub pricing_input: f64,
pub pricing_output: f64,
pub created_at: String,