Commit Graph

37 Commits

Author SHA1 Message Date
127bb62932 fix(compute): MiniMax M2.x 单次输出上限按官网更正为 204800,已下线型号写入 tombstones (#126)
MiniMax 官网 Messages API 参数参考(国内与国际站同页,OpenAI 兼容
max_completion_tokens 同值)写明:除 M3.1-Flash-Preview 与 M3 外的其他模型
max_tokens 推荐 65536、上限 204800,同页 model 枚举列出 M2.7、M2.5、M2.1、M2
及各 highspeed。本仓 maxOutputTokens 是单次输出上限,登记上限而非推荐值
(与 #125 的 M3 处理一致)。

- M2.7、M2.7-highspeed、M2.5、M2.5-highspeed、M2.1、M2.1-highspeed、M2 七个
  规格 maxOutputTokens 131072 → 204800;直连与 Token Plan 条目没有输出覆盖,
  随规格变化。上下文窗口 204800 复核一致。
- 官网模型列表把 MiniMax-M2.1、M2.1-highspeed、M2、M2-her 列为已下线:
  直连 provider-minimax-001 移除这 4 条并写入 tombstones(只删除本地
  source=preset 的同名条目),共享规格保留。
- M2-her 官方指南只给出 64 K 上下文(简写)、未给输出上限,且走 OpenAI 兼容
  接口、不在 /anthropic 支持型号内;规格原 204800 / 131072 无来源,改为未声明。
- 官网概览页通知 M2.5、M2.7 系列 2026-10-19 起停止向新用户开放、2026-11-18
  正式下线,M Plan/Token Plan 请求自 2026-10-19 起路由至 M3.1 Flash Preview;
  尚未到下线日,只在直连与 Token Plan 条目描述中写明。
- 来源记录新增 minimax-model-list、minimax-text-chat,刷新 minimax-models;
  规格决策清单补 M2.x verifiedLimits;presetDataVersion 133。

火山/腾讯/百度套餐中无本地数值的 minimax-m2.5/m2.7 在旧版匹配器下会继承
新上限,这些平台自身的上限未核。未做账号实测。
2026-10-18 18:39:08 +08:00
db5fbc408b fix(compute): MiniMax-M3 单次输出上限按官网更正为 524288 (#125)
MiniMax 官网 Messages API 参数参考(国内与国际站同页)写明 MiniMax-M3 的
max_tokens 推荐值 131072(128K)、上限 524288(512K),思考 token 计入上限;
OpenAI 兼容 max_completion_tokens 同值。本仓 maxOutputTokens 是单次输出上限,
客户端出站准入按它拒绝超额请求,应登记上限而非推荐值。

- 规格 MiniMax-M3 的 maxOutputTokens 由 512000 更正为 524288
- 直连 provider-minimax-001 与 Token Plan provider-minimax-coding-001 的 131072
  是沿用旧副本(V2 标注 inherited-not-reverified);二者同走 /anthropic 端点,
  官网未按 Key 类型另设单次输出上限,删除接入覆盖、改为继承规格
- 上下文窗口 1,000,000 复核一致,不变
- 来源记录新增 minimax-messages-api,刷新 minimax-anthropic 读取日期与摘要;
  规格决策清单两条 MiniMax-M3 差异改为 verified-official-limit
- presetDataVersion 132,规格索引批次说明同步

Token Plan 账号下 M3 是否仍可调用未做账号实测;M2.x 的 131072 与官网上限 204800
的差异未在本次处理。
2026-10-18 18:08:15 +08:00
73b278df51 fix(compute): GLM-5.3 系列在 anthropic 协议按官网用 output_config.effort 控制思考强度 (#120)
智谱官网(国内 coding-plan/latest-model、国际 devpack/latest-model)写明 /api/anthropic
以 thinking.type 与 output_config.effort 控制思考强度,thinking.type=enabled 一律按默认 max
处理,budget_tokens 不是控制项。两个 anthropic-messages 接入面的 GLM-5.3 系列此前只有按
OpenAI 协议文档写的 low/high/max 矩阵,客户端按 budget 形态发送:low/high 在上游都成了 max,
max(也是默认档)在客户端本机被拒绝;经 new-api 的 OpenAI 类渠道转换时 low 变成
reasoning_effort=medium,被智谱标准 API 拒绝。

- zhipu、zhipu-coding 接入面的 GLM-5.3 / 5.3-Flash / 5.3-FlashX 声明 adaptiveThinking
- GLM-5.3 系列规格加 anthropic-messages 协议 profile(V1 副本为 spec.extra.adaptiveThinking),
  覆盖经 ModelSpec 补全的云端条目
- 来源记录补国际 Coding Plan 页;按量 API Key 与 FlashX 按同一端点推定,未列入已核字段
- presetDataVersion 130
2026-10-05 09:17:43 -07:00
e8122c1d77 fix(compute): 按官网补对话型号的 tool_use 标签 (#119)
逐条对照供应商官方文档,核对 36 个对话规格与 70 个 Provider / 套餐预置条目
(capabilities 缺 tool_use / tools / function_calling)的工具调用支持情况:

- 补 tool_use 25 条:规格 9、随规格继承的接入条目 5、接入覆盖 11
- 保持原样 81 条:官方写明不支持或页面互相矛盾 10、已下线或数日内下线 26、
  官方当前文档无该型号或无工具调用说明 34、只在未适配接口上支持 2、官网读取失败 9
- 只改 capabilities,不动 routing;qwen-max 等按华北 2(北京)地域记,国际站不适用
- 同步单模型来源记录、供应商证据目录与来源缺口清单;逐条决定与依据见
  docs/source-rechecks/2026-10-05-tool-calling/README.md
- presetDataVersion 128 → 129
2026-10-04 18:26:40 -07:00
7f4073a769 feat: 建立版本化模型目录与规范字段生成链路 (#116) 2026-10-03 11:05:56 -07:00
642985e819 fix(data): complete verified contracts and source maintenance (#114) 2026-10-03 03:49:55 -07:00
cccf14f72d fix(compute): verify official model data and document sources (#112)
* fix(compute): verify official data and document model sources

* test(docs): guard provider metadata source freshness
2026-10-02 23:51:28 -07:00
79ffd1f8c3 feat(compute): refresh provider model catalog and compatibility profiles (#111) 2026-10-02 07:38:18 -07:00
dc7d48957e feat(compute): add GPT-6.1 Sol and Claude Sonnet 5.5 (#109) 2026-10-01 21:41:50 +08:00
b64ee77342 feat(compute): update current model catalog (#106)
* feat(compute): update current model catalog

* feat(compute): add MiMo V2.6 model profiles
2026-09-25 23:33:23 +08:00
b4ff98c38c feat(compute): add Xiaomi MiMo-X preview models (#105) 2026-09-15 00:03:04 -04:00
ea59c02709 chore(compute): 删除无消费者的 extra.thinkingOnByDefault (#100)
客户端从未读取该字段:DesireCore 主仓的代码与 Schema 都没有引用它。「省略 thinking 时
上游是否默认思考」由主仓 thinking-profiles.ts 的 Anthropic 代际表判定(desirecore#2944)。
数据本身也不一致:Fable 5.1 / Opus 5 有该字段,同样默认 adaptive 的 Sonnet 5 却缺失,
保留下去容易被误当成可以调整行为的开关。

删除 model-specs/anthropic.json 1 处,providers/anthropic.json 与 anthropic-claude.json
各 2 处。extra 是开放对象,本仓与客户端 Schema 都未声明该字段,删除不影响任何校验;
客户端合并预设不回传字段删除,存量 compute.json 里残留的该字段依旧无人读取,无害。

presetDataVersion 118 → 119。
2026-09-14 08:56:59 -04:00
f3bf4e092c feat(compute): add DeepSeek V4.1 Flash alias (#104) 2026-09-14 01:23:52 -04:00
5171219a13 feat(compute): 声明 Anthropic 模型拒绝的采样参数与强制工具选择 (#103)
Claude Opus 4.7+ / Opus 5 / Fable 携带 temperature / top_p / top_k 会被官方 400
(Sonnet 5 非默认值 400),Claude Fable 5.1 对 tool_choice any / tool 回 400。客户端
改为纯按声明在出站删除采样参数、把强制工具选择降级为 auto(desirecore 主仓配套 PR)。

- providers/anthropic.json:claude-fable-5-1 增加 forcedToolChoiceUnsupported
- model-specs/anthropic.json:fable-5-1 / opus-5 / opus-4-8 / opus-4-7 / sonnet-5 声明
  samplingParametersDeprecated,fable-5-1 声明 forcedToolChoiceUnsupported,供精确命中
  补全的动态 Provider 使用;opus-4-7 的 defaultTemperature 由 1 改为 null(不支持温度调节)
- schemas:provider model extra 与 ModelSpec spec.extra 声明两个布尔字段(含 description)
- 测试:已知拒绝代际必须声明(单向)、布尔类型校验
- presetDataVersion 116 → 117
2026-09-13 22:56:51 -04:00
0be8207e32 fix(compute): 为 Anthropic adaptive 代际模型规格补齐 adaptiveThinking 声明 (#102)
Opus 5 / Sonnet 5 / Opus 4.8 / Opus 4.7 规格补 spec.extra.adaptiveThinking;各版本规格 family 收窄为自身版本,新增同名 claude-opus / claude-sonnet 家族规格承接兜底,防止声明泄漏给 Opus 4.5 等旧型号;schema 声明 adaptiveThinking 并写明匹配键约束;测试约束代际声明与 id/exact/pattern/family 不变式;presetDataVersion 115 → 116。
2026-09-13 22:39:20 -04:00
143b567a84 feat(compute): add DeepSeek V4.1 Flash profile (#101) 2026-09-13 22:05:51 -04:00
064c561202 chore(compute): remove Fable 5 and Haiku 4.5 presets (#95) 2026-09-10 11:53:08 -04:00
571b98e682 feat(compute): add GPT-Reserve, Fable 5.1 and GPT-6 Astra (#94) 2026-09-06 04:20:15 -04:00
Johnson-LYS
e7848667b6 feat: refresh model sync and MiMo speech metadata (#91) 2026-08-31 14:35:53 +08:00
a998e18e6c chore(compute): 下架零一万物 API 配置 (#84) 2026-08-28 14:52:05 +08:00
Johnson-LYS
d0e9bf5085 feat(compute): add DeepSeek V4 variants and Qwen3.8 Flash (#82)
- add DeepSeek V4 Flash Vision Exp provider and model specifications
- add DeepSeek V4 Flash 0731 and Qwen3.8 Flash model specifications
- add regression coverage and bump preset data version
2026-08-27 17:43:36 +08:00
c46cf07d2f feat(compute): 补 GLM-5.3 系列规格并标注 Ox Alpha 真身 (#81)
* feat(compute): 补 GLM-5.3 系列规格并标注 Ox Alpha 真身

Ox Alpha 是智谱 GLM-5.3-Flash 的匿名发布别名(canonical_slug
z-ai/glm-5.3-flash-20260826,2026-08-26 揭晓后已从 OpenRouter 列表下架)。

改动:
- model-specs/zhipu.json 新增 glm-5.3 与 glm-5.3-flash 正式规格。两者均
  强制思考(z.ai 文档:thinking.type 仅接受 enabled;OpenRouter models API:
  reasoning.mandatory=true,supported_efforts=[max,high,low]),故
  routing.reasoning.supportedModes 不含 off。按 #79 的教训只用 exact 匹配,
  避免 glm-5.3* 误吞 glm-5.3-flash。
- model-specs/stealth.json 的 ox-alpha 用 spec.extra.modelOrigin 标注真身。
  条目保留:云端算力可能仍以旧别名下发该模型。
- schemas/model-spec.schema.json 为 extra.thinkingOnly / thinkingDefault
  补正式定义与 description。此前这两个键无任何说明,客户端因此从未消费,
  用户选「关闭思考」即触发上游 400(见 desirecore#2307)。
- scripts/validate.mjs 新增静默失效键名巡检:extra 是开放对象,写错键名
  既不报错也无告警。当前巡出 17 处扁平 extra.reasoningEffort。刻意只告警
  不失败——存量取值需逐个核实各自接入面实际接受哪些 effort。

* docs(schema): 写明 extra.reasoning 与 thinkingOnly 的职责边界

provider schema 的 extra.reasoning 此前只有子字段 description、对象本身没有,
维护者看不出它与 model-spec 的 thinkingOnly 分别回答什么问题——issue
desirecore#2307 的误解正源于此。补上对象级说明:本键答「接入面接受哪些 effort
值」且只能写在 provider model;thinkingOnly 答「off 能不能用」、不声明深度档位。
2026-08-27 15:21:25 +08:00
fa2f10dd0d feat: 添加万相 3.0 视频模型配置 (#80) 2026-08-25 08:35:44 -04:00
Johnson-LYS
61b5046117 fix(compute): split suffixed model specs (#79) 2026-08-25 11:17:02 +08:00
Johnson-LYS
b8f8f0ae58 fix(compute): add explicit Ox Alpha alias (#78) 2026-08-21 17:01:38 +08:00
Johnson-LYS
e627aef16a feat(compute): add Ox Alpha model (#77) 2026-08-21 16:44:37 +08:00
ad8c515938 refactor: consolidate smart routing into model specs (#75) 2026-08-10 19:13:08 +08:00
a752fddd0b feat(compute): 新增 Claude Opus 5 + 补齐 Claude 系列 effort 档位,presetDataVersion → 85 (#71)
Opus 5 是 Anthropic Opus 系列当前旗舰(1M 上下文 / 128K 输出 / $5·$25 per MTok,
与 Opus 4.8 同价),此前 config-center 完全缺失,用户在模型选择器里看不到它。

变更:
- compute/providers/anthropic.json:新增 claude-opus-5(排在 fable-5 之后、
  opus-4-8 之前);serverSideWebSearch.fallbackPriority 顺延重排
- compute/providers/anthropic-claude.json:Claude 订阅 provider 同步新增 claude-opus-5
- compute/model-specs/anthropic.json:补 claude-opus-5 与 claude-sonnet-5 规格
  (sonnet-5 此前只有 provider 条目、没有规格)
- 补 extra.reasoning.supportedEfforts:客户端 parseReasoningEffortConfig 只读
  extra.reasoning,原有的顶层 extra.defaultEffort 不被消费,导致 Claude 模型的
  effort 档位在 UI 上始终不可选。按各模型实际支持声明档位(sonnet-4-6 无 xhigh)
- __tests__/validate.test.mjs:WebSearch 允许名单登记 claude-opus-5
- manifest.json:presetDataVersion 84 → 85
2026-08-08 17:59:09 +08:00
89b292dc12 fix: correct MiMo V2.5 Pro multimodal capability (#69) 2026-07-28 09:47:26 +08:00
130b8f9ef9 feat(compute): 添加 qwen3.8-max-preview 模型 (#66)
- 新增 Qwen3.8-Max Preview 到 dashscope provider 和 model-specs
- 100万上下文,支持视觉理解(serviceType 含 vision)、Agent、推理
- supportsReasoning: true
- 定价:输入 ¥12/M token,输出 ¥36/M token
- presetDataVersion 81 → 82
2026-07-25 15:31:40 +08:00
Johnson-LYS
e59adbb166 feat: add Kimi K3 model spec (#62)
Co-authored-by: DesireCore CI <ci@desirecore.test>
2026-07-20 20:00:19 +08:00
Johnson-LYS
29ef625f32 fix(compute): match MiMo V2.5 ASR exactly (#61)
Co-authored-by: DesireCore CI <ci@desirecore.test>
2026-07-20 17:29:05 +08:00
5a9b9c87c4 fix: align DeepSeek V4 model specs with official profile
Align the shared DeepSeek V4 Pro and Flash specifications with the official 1M context, 384K output, and high/max reasoning profile. Consolidate duplicate specs, add regression coverage, and bump presetDataVersion to 72.
2026-07-10 11:47:40 +08:00
Johnson-LYS
57937a93b7 feat: add Seedance video generation models to volcengine (#52)
- Add 6 Seedance models: 2.0/2.0-fast/2.0-mini/1.5-pro/1.0-pro/1.0-pro-fast
- doubao-seedance-2.0: 4-15s 2K video, native synced audio, 9 images+3 videos+3 audio refs
- Data source: Volcengine Ark model list + seedance2-video.com version history
- Bump presetDataVersion 70→71

Co-authored-by: DesireCore CI <ci@desirecore.test>
2026-07-09 17:29:47 +08:00
Johnson-LYS
e73b607706 feat: add HappyHorse (快乐马) video generation models (#39)
- Add happyhorse.json with 6 models: 1.1/1.0 × T2V/I2V/R2V
- T2V: text-to-video, I2V: image-to-video, R2V: reference-to-video (up to 9 images)
- Provider: HappyHorse via Alibaba Cloud Bailian
- Register in _index.json (now 22 providers)
- Bump presetDataVersion 62→63
2026-07-03 13:37:51 +08:00
Johnson-LYS
51935c0d54 chore(internal-testing): 退役内置 provider;bump presetDataVersion to 61 (#26)
* chore(internal-testing): 退役内置 provider;bump presetDataVersion to 52

internal-testing 一直作为内测阶段的硬编码 provider 存在,现在客户端已切换到
登录后绑定 desirecore-cloud(NewAPI 网关)方案,internal-testing 不再需要。

从此 commit 起:
- compute/providers/internal-testing.json 删除
- _index.json 移除 internal-testing 条目
- presetDataVersion 51 → 52,触发客户端重新合并预置

客户端需配套实现 retired-providers 清理逻辑:在 mergeBuiltinIfNewer 之后
执行一次性清理,移除本地 compute.json 中残留的 provider-internal-testing-001
+ secrets.json#internal-testing。

* chore: bump preset data version to 61

* feat: 增量同步 16 个厂商旗舰模型 (首批精选)

首次从 OpenRouter 增量同步,覆盖 13 家厂商的最新旗舰:

概要
---
- 新增 .sync-watermark 水位线文件 (1782276303 / 2026-06-24)
- presetDataVersion: 61 → 62
- 校验 70/70 全部通过

新增模型
---
OpenAI:     gpt-image-2 (image_gen), gpt-5.5, gpt-5.4
Anthropic:  claude-fable-5, claude-opus-4.8
Google:     gemini-3.5-flash, gemini-3.1-flash-image (Nano Banana 2)
DeepSeek:   deepseek-v4-pro
Qwen:       qwen3.7-max, qwen3.7-plus
MiniMax:    MiniMax-M3
Moonshot:   kimi-k2.7-code
Zhipu:      glm-5.2
xAI:        grok-4.3
Mistral:    mistral-medium-3.5
Tencent:    hy3-preview
Cohere:     north-mini-code

后续机制
---
每日 10:00 心跳检查 OpenRouter 新模型,对比 .sync-watermark
增量入库,有更新才提 PR,无更新静默。
2026-06-29 20:52:13 +08:00
Johnson-LYS
e84edec964 feat(model-specs): 新增模型规格库——跨 provider 模型参数统一维护(presetDataVersion 54→58)
* feat(model-specs): 新增模型规格库与 schema 契约

- compute/model-specs/:按厂商维护模型内在参数(上下文窗口/最大输出/能力/serviceType/默认温度,不含价签)
- schemas/model-spec.schema.json:Draft-07 契约,spec 允许 null(新文件不影响老客户端 frozen 契约)
- scripts/validate.mjs:pickSchemaKey 纳入 model-specs 校验
- manifest.presetDataVersion 54→55

* feat(model-specs): 新增小米 MiMo 系列模型规格;bump presetDataVersion 55→56

* feat(model-specs): 补全全量模型规格;presetDataVersion 56→57

* feat(model-specs): 新增 releasedAt/retiredAt 时间戳字段;补充 mimo 退役日期
2026-06-01 19:45:14 +08:00