feat: P0e 模型选择器升级 — 卡片式下拉

- ModelSelector 组件:标签/提供商/描述/选中状态
- 替换 sandbox page + workshop page 原生 select
- 模型数据增加 provider/desc 字段
This commit is contained in:
yuzhiran-dev
2026-05-18 10:39:32 +08:00
parent 0fdad71c57
commit f2a6bb93f9
4 changed files with 58 additions and 13 deletions
+4 -2
View File
@@ -1,11 +1,13 @@
export interface ModelOption {
id: string;
label: string;
provider: string;
desc: string;
}
export const AVAILABLE_MODELS: ModelOption[] = [
{ id: 'general', label: '通用模式' },
{ id: 'opencode-go', label: 'DeepSeek V4 Flash' },
{ id: 'general', label: '通用模式', provider: 'OpenAI 兼容', desc: '日常问答,综合能力均衡' },
{ id: 'opencode-go', label: 'DeepSeek V4 Flash', provider: 'OpenCode Go', desc: '高速推理,代码生成强' },
];
export const DEFAULT_MODEL = 'general';