Repository navigation
feat(model-eval): 模型配置界面改进——卡片信息分级与渠道优先添加流程 - #165
Merged
Merged
Conversation
3 tasks done
Owner
Author
|
security-scan 红的处置记录:Backend pip-audit 报 8 个新披露漏洞(authlib 1.6.12 ×6 / litellm 1.101.0 / msgpack 1.2.2)。本 PR |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Closes #164
改动
Commit 1:模型卡片信息分级(ModelsTab / page)
#优先级降为名字旁 mono 次要信息;删掉与右上徽章重复的「已禁用」徽章_model_cache运行时选路口径一致)+「首选路由」徽章,替代原priority<=10阴影confirm());删除按钮 ghost 红字靠右,测试升级为主按钮opacity-60;单模型全宽;头部统计 6 卡收敛为 3 色(只留状态语义色)Commit 2:添加流程改向「渠道 → 模型 → 协议」(ModelEditForm)
preset_key不再随创建 payload 发送;custom 渠道 provider 落"custom"(后端model_resolver约定,裸模型名按 OpenAI 兼容网关处理)Verification
本地验证(macOS,本地 backend 8102 + frontend dev 3000,PG 容器):
npx tsc --noEmit✅npm run test:coverage✅ 33 files / 288 tests passed(改动前后各跑一轮).vidt/model-config-ui-20261027/(20 张,基线×5/卡片后×5/弹窗基线×3/弹窗后×7)_materialize_create_request必填(name/provider/model_id)由前端满足;apply_model_preset仅兜底不覆盖,停发preset_key无副作用独立复核结论(未参与实现的复核者)
可合并,无阻断项。核验:既有交互契约未破坏、首选路由口径与
_model_cache一致、渠道→provider 映射与model_resolver的custom处理闭环、反查同步 effect 无死循环、dirty 标记无程序化误标、收起专家参数不丢预填值。4 条建议级已处置:①渠道前置校验已补入本 PR;②编辑模式未知 provider 显示回落 custom 仅展示错位(保存不改数据);③价格 0 显示「未设」为有意口径(免费模型场景记录在案);④新建不再预置 channel_name/rpm 定制(仅影响配置过共享渠道池的运营商场景)。后端 422 文案「请选择预设」已过时,留后续后端清理。Notes 处理结论
无长期结论:流程改向为所有者会话拍板、理由与口径记录在组件文件头注释与 #164;未合并前不立 owning note。