feat: 免费模型在前端「模型与供应商」页可见(free 字段 + 绿色「免费」标签)
- 后端:ModelInfo 增加 free 字段(yaml models[].free,_opt_bool 校验)、all_models() 带出、 /v1/models 暴露 free(别名随目标继承,与 vision/params 同源) - 配置:space-bunny-free 标 free: true(与 display_name 的「(免费)」双保险) - 前端:Models.vue「能力」列新增绿色「免费」标签(bolt 图标 + 悬浮说明)、测速行同步标一颗闪电; i18n 中英各 +2 键(freeTag/freeHint),753/753 对称 - 测试:新增 test_models_payload_marks_free_models(免费模型必须 free=true、付费必须 false、 每个模型都要带该字段),全套 192 passed / 0 failed - README:免费模型说明补「三处标注」口径
This commit is contained in:
1 parent
23e32589d1
commit
3909e873cf
8 files changed
+47
-2
No files matched your search
@@ -174,6 +174,7 @@ providers:
|
||||
- id: "space-bunny-free"
|
||||
display_name: "Space Bunny Free(免费)"
|
||||
type: "text"
|
||||
free: true # 前端「能力」列据此打「免费」标签;/v1/models 也会带出 free 字段
|
||||
# ★ 免费模型:官方文档价格表 Free / Free / Free,额度 Unlimited(限时)。
|
||||
# 接替已下线的 union-alpha(Union Alpha Free)。
|
||||
# 实测 chat 200、messages 200、responses 503 → 标两条线。
|
||||
|
||||
Reference in new issue
Block a user