Commit Graph
52 Commits
Author SHA1 Message Date
yige 6ed4b1a66a revert(compute): 回滚 Claude 订阅 provider(#47/#48/#49),presetDataVersion → 70 (#50)
* Revert "chore(compute): bump presetDataVersion to 69 (Claude provider now loads) (#49)"

This reverts commit 717ae69635.

* Revert "fix(compute): rename anthropic-claude provider file to match _index basename (#48)"

This reverts commit a1ec69ee71.

* Revert "feat(compute): 新增 Claude 订阅 provider(anthropic-claude) (#47)"

This reverts commit 1261460734.

* chore(compute): bump presetDataVersion to 70(推送回滚后的干净数据给已同步 v68/v69 的客户端)
2026-07-08 23:19:11 +08:00
yige 717ae69635 chore(compute): bump presetDataVersion to 69 (Claude provider now loads) (#49)
PR #47 bumped to 68 but the provider file was misnamed and never loaded; the
rename (#48) kept v68, so clients that already synced v68 will not re-merge.
Bump to 69 so existing clients pick up the now-loadable anthropic-claude provider.
2026-07-07 22:52:02 +08:00
yige a1ec69ee71 fix(compute): rename anthropic-claude provider file to match _index basename (#48)
provider-loader loads <basename>.json from _index order; the file must be
anthropic-claude.json (was anthropic-claude-plan.json) or it is not loaded.
2026-07-07 22:47:39 +08:00
yige 1261460734 feat(compute): 新增 Claude 订阅 provider(anthropic-claude) (#47)
* feat(compute): 新增 Claude 订阅 provider(anthropic-claude,credentialSource=claude-oauth)

* chore(schemas): credentialSource enum 增加 claude-oauth
2026-07-07 21:29:37 +08:00
yige 4c17911630 chore(schemas): runtime-recommended 收紧 sha256 为必填(6 平台齐全) (#46)
与主仓库 lib/schemas/agent-service/runtime-manifest.ts 同源导出,强化归档防篡改校验
2026-07-07 19:23:22 +08:00
yige c67dfc2143 chore: refresh vendor model presets
Refresh vendor model presets and bump config data version.
2026-07-07 16:31:24 +08:00
yige 92e0d4651a chore: refresh GLM model configs
## Summary
- add GLM-5.2 and GLM-4.7-FlashX to Zhipu provider config
- update GLM context/output/pricing tiers from official BigModel docs and pricing
- align Zhipu Coding Plan with official GLM-5.2, GLM-5-Turbo, and GLM-4.7 availability
- sync existing GLM max output values in DashScope configs
- address Copilot review by using extra.pricingTiers consistently

## Validation
- npm run validate
- npm test
- git diff --check
2026-07-07 16:25:21 +08:00
yige 255e5a5b1b feat(runtimes): 新增推荐运行时清单与离线兜底版本清单 (#44)
- runtimes/recommended.json:Python 3.13.9 (hatch 1.16.5 pin) + Node.js 24.18.0 LTS,
  含 6 平台归档路径与 SHA-256,供主仓库构建时打包离线运行时与首启导入
- runtimes/versions-fallback.json:Node/Python/包管理器版本快照,
  客户端联网查询失败时的兜底列表
- schemas + validate.mjs 映射 + 测试(与主仓库 lib/schemas/agent-service/runtime-manifest.ts 同源导出)
- 不递增 presetDataVersion:runtimes/ 由客户端直接读取,不参与 compute.json 合并
2026-07-07 16:04:14 +08:00
yige 847f4bd139 更新 Kimi 模型配置 (#40)
更新 Kimi 模型配置

- 更新 Moonshot/Kimi 官方 provider 模型清单
- 新增 K2.7 Code、K2.7 Code HighSpeed 和 V1 vision-preview 模型
- 移除已下线 K2 系列并添加 tombstones
- 同步 Kimi Code coding plan 参数

验证:
- npm run validate
- npm test
2026-07-07 15:51:36 +08:00
yige f0e14a8b5e 更新 DeepSeek 官方模型配置
更新 DeepSeek 官方模型配置
2026-07-07 15:47:06 +08:00
yige 66113b06cf 更新 Qwen 模型配置 (#41)
更新 Qwen 模型配置
2026-07-07 15:41:24 +08:00
yige da0397f74b feat(compute): 补齐媒体生成 provider 能力声明(Seedream/Seedance/快乐马) (#34)
- volcengine:services 增 image_gen/video_gen;新增 doubao-seedream-4-0-250828(真 img2img/多图融合)与 doubao-seedance-2-0-260128(多素材视频)模型
- dashscope:新增快乐马 happyhorse-1.0-t2v/i2v/r2v 视频模型
- service-map:默认 image_gen→minimax/image-01、video_gen→minimax/MiniMax-Hailuo-2.3(指向已有内置工具适配器的后端)

使算力配置 UI 能展示这些 provider 的图像/视频能力标签与模型,用户填 key 时即可显式知晓其用途。
2026-07-06 14:41:57 +08:00
yigeandyi-ge ef632d4e6a feat(api-providers): 新增 web_search / image_understanding 声明式后端默认配置 (#31)
- api-providers/{web-search,image-understanding}/*.json + _index.json
- 新增 schemas/api-provider.schema.json,validate.mjs 纳入校验(CI 自检)
- 不改 compute/ 与 manifest,presetDataVersion 不变:老客户端忽略新目录,线上不受影响

Co-authored-by: yi-ge <jackyoncode@gmail.com>
2026-06-09 09:54:27 +08:00
yige 9633df0219 chore(internal-testing): 默认模型改为 MiMo V2.5 Pro(小米 Pro);bump presetDataVersion to 54 (#29) 2026-05-30 15:05:04 +08:00
yige e17a00d48b chore(internal-testing): 新增 Qwen3.7 Max 并设为默认模型;bump presetDataVersion to 51 (#25) 2026-05-23 10:24:58 +08:00
yige cc3f0b53da chore(internal-testing): 回退 DeepSeek V4 Pro/Flash 视觉与 OCR 能力(实测不支持);bump presetDataVersion to 50 (#24) 2026-05-20 13:37:45 +08:00
yige b8019c4a30 chore(internal-testing): DeepSeek V4 Pro/Flash 新增视觉(图像理解)与 OCR 能力;bump presetDataVersion to 49 (#23) 2026-05-20 12:35:23 +08:00
yige 72163bac46 chore(internal-testing): 默认模型改为 DeepSeek V4 Pro;bump presetDataVersion to 48 (#22) 2026-05-18 22:37:08 +08:00
yige fffa2b1980 chore(internal-testing): 新增 DeepSeek V4 Pro/Flash;bump presetDataVersion to 47 (#21)
- deepseek-v4-pro:1.6T/49B MoE 旗舰,1M 上下文,思考型(reasoning),省略温度参数
- deepseek-v4-flash:284B/13B MoE 高速版,1M 上下文,serviceType=[chat, fast]
- 价格统一保持 0,遵循内测专用 provider 惯例
- manifest: presetDataVersion 46→47,updatedAt 2026-05-12
2026-05-12 11:29:19 +08:00
yige 75f507b6fd chore: 新增 CI 拦截 AI 贡献痕迹 (#18)
- scripts/check-no-ai-attribution.sh:扫描指定 git 范围,命中 AI 身份、Co-Authored-By trailer、Generated/Authored 声明或机器人 emoji 时报错
- scripts/ai-attribution-patterns.txt:外置 AI 工具/厂商关键字清单,便于按需扩展
- .github/workflows/no-ai-attribution.yml:PR (target main) 与 push (main) 时对增量 commit 范围运行扫描
- CLAUDE.md:项目级 commit 身份规范,禁止任何 AI 署名/辅助标记
2026-05-08 17:48:34 +08:00
yigeandClaude Opus 4.7 34a75a7b25 chore(internal-testing): 默认模型改为 GLM-5;bump presetDataVersion to 43
Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-05-08 15:48:20 +08:00
yige 648839c5dd feat(internal-testing): add Xiaomi MiMo V2.5 and V2.5 Pro models (#12)
在内测渠道挂载小米 MiMo V2.5 / V2.5 Pro 两款模型:

- mimo-v2.5-pro:1.02T/42B 激活 MoE 旗舰,1M 上下文,长程代码与 Agent 自治
- mimo-v2.5:原生全模态(文本/图像/视频/音频),1M 上下文

沿用 internal-testing 渠道的 anthropic-messages(Claude 兼容)协议
和 https://api.yizhioa.cn/v1 端点;价格保持 0(内测免费)。

manifest.presetDataVersion: 31 -> 32
2026-05-02 00:57:54 +08:00
yige 8aa03dbb4e fix(ci): drop npm install fallback and use explicit test file path (#4)
回应 PR #3 review 反馈:

1. 移除 'npm ci || npm install' 兜底 (Copilot review #2)
   lockfile 已 commit,兜底反而会掩盖未来 lockfile 不一致问题,
   导致 CI 依赖解析随时间漂移。改为纯 'npm ci' 严格按 lockfile 安装。

2. test 脚本改用具体文件路径 (Copilot review #3)
   原 'node --test __tests__/*.test.mjs' 依赖 shell glob 展开,
   在 Windows cmd(npm 在 Windows 上的默认 script-shell)不展开 glob。
   实测 'node --test __tests__'(Copilot 建议)在 Node v22 报
   'Cannot find module',故改用直接列具体文件方式:
   'node --test __tests__/validate.test.mjs',跨平台稳定。
   未来新增测试文件需手动追加(成本极低)。

未应用的 review 评论:
- README 表格语法误报:实际已用单 |,Copilot 误读 unified diff 的 + 前缀
- loadSchemas 加 try/catch:schema 文件由维护者控制,原 stack trace 已显示路径,
  额外错误处理属过度防御
2026-04-25 21:50:07 +08:00
yige b238e9e496 Merge pull request #3 from desirecore/feat/schema-validation
feat: frozen schema + CI validation to prevent client-breaking data
2026-04-25 21:40:06 +08:00
yige 96bd5d0de4 chore: commit package-lock.json for CI cache 2026-04-25 21:11:24 +08:00
yige bd448f6c43 feat: frozen schema + CI validation to prevent client-breaking data
引入 frozen JSON Schema 契约(schemas/)和自动校验,作为已发布客户端的兼容防线。

背景:
PR #1 把 reasoning 模型 defaultTemperature/defaultTopP 写为 null,已发布客户端
schema 严格 number → readComputeConfig 校验失败 → sync 死锁。详见 desirecore PR #471。

本次新增:
- schemas/provider.schema.json: 镜像 desirecore d185299(fix #471 之前)的 strict
  computeProviderSchema/providerModelSchema,禁止 null/string/未知字段
- schemas/{manifest,service-map,pricing,providers-index}.schema.json: 配套契约
- scripts/validate.mjs: 扫所有数据文件自动校验
- __tests__/validate.test.mjs: 28 个测试,含 PR #1 反例的回归测试
- .github/workflows/validate.yml: PR/push 自动跑 validate + test

未来新增字段流程:
1. 先在 desirecore 主仓升级 schema 接受新字段
2. 发布新客户端,等用户升级
3. 再更新本仓库 frozen schema 和数据

否则老客户端因 additionalProperties: false 拒绝未知字段而死锁。
2026-04-25 21:09:23 +08:00
yige 10465e3570 chore: bump presetDataVersion to 30 to roll back PR #1
PR #1 (model-field-official-audit) caused production issues.
Reverted in previous commit; bumping version so clients pick up the rollback.
2026-04-25 19:35:39 +08:00
yige 371336cdd6 Revert "Merge pull request #1 from desirecore/model-field-official-audit"
This reverts commit 88a8cf2db6, reversing
changes made to ca99ea272f.
2026-04-25 19:34:29 +08:00
yige 88a8cf2db6 Merge pull request #1 from desirecore/model-field-official-audit
修改模型参数
2026-04-25 17:56:48 +08:00
yige ca99ea272f feat(internal-testing): restore MiniMax-M2.5
- \u53ea\u79fb\u9664 MiniMax-M2.7\uff0c\u4fdd\u7559 MiniMax-M2.5 \u4f5c\u4e3a\u5907\u9009
- MiniMax-M2.5 \u63d2\u5165\u5728 kimi-k2.5 \u4e4b\u540e (\u4e0e\u5176\u4ed6\u975e-highspeed MiniMax \u7cfb\u5217\u4e00\u81f4\u7684\u4f4d\u7f6e)
- MiniMax-M2.7-highspeed \u4ecd\u7136\u5728 models[0]\uff0c\u4f5c\u4e3a provider \u9ed8\u8ba4\u6a21\u578b
- tombstones: ["MiniMax-M2.7", "MiniMax-M2.5"] -> ["MiniMax-M2.7"]
- bump presetDataVersion 23 -> 24
2026-04-20 11:10:37 +08:00
yige 719407d82c feat: add per-provider tombstones whitelist for explicit model deletion
引入 tombstones 字段用于区分"主动删除"和"数据缺失"两种语义。
当合并策略(新版本客户端)遇到 preset 缺失的本地 preset-source 模型时:
- 若 modelName 在 tombstones 白名单 → 真删除
- 若不在白名单 → 保留并标 extra.deprecated: true(软降级)

本次添加 tombstones 的场景:
- internal-testing: MiniMax-M2.7 / MiniMax-M2.5(改为只保留 highspeed 版本)
- zhipu: embedding-3(已拆到独立的 zhipu-embedding provider)

user-added / synced / ollama-discovery 来源始终不受 tombstones 影响。

bump presetDataVersion 22 -> 23
2026-04-20 00:42:35 +08:00
yige 2ed86a9561 refactor(internal-testing): drop MiniMax-M2.5/M2.7, keep only M2.7-highspeed
- 用户反馈内测只需要高速版本, 移除 MiniMax-M2.7 和 MiniMax-M2.5 两个普通版本
- MiniMax-M2.7-highspeed 保留在首位作为 provider 默认模型
- bump presetDataVersion 21 -> 22
2026-04-19 23:43:10 +08:00
yige 5276339aa5 feat(internal-testing): add MiniMax-M2.7-highspeed as provider default model
- 在内测专用 provider 新增模型 MiniMax-M2.7-highspeed (高速版)
- 插入到 models 数组最前面, 基于前端 fallback 逻辑 (app/utils/compute-helpers.ts:
  fallback.models.find(chat) ?? fallback.models[0]) 成为该 provider 的默认选项
- bump presetDataVersion 18 -> 19
2026-04-19 23:32:31 +08:00
yige c7a24a7acd feat(zhipu): switch to anthropic-messages endpoint and split embedding provider
- zhipu (chat/reasoning/vision): baseUrl -> /api/anthropic, apiFormat -> anthropic-messages
  启用 Anthropic 协议的 thinking 字段以支持 GLM 深度思考流式输出
- zhipu-embedding (new): 独立承载 embedding-3, 保留 /api/paas/v4 + openai-completions
  Anthropic 协议不提供 /embeddings 端点
- zhipu-coding (Coding Plan): baseUrl -> /api/anthropic, apiFormat -> anthropic-messages
  与非套餐端点共用同一协议, 计费维度由 API Key 区分
- bump presetDataVersion 17 -> 18
2026-04-19 23:31:45 +08:00
yige b2726851e8 chore: bump presetDataVersion to 17 2026-04-08 17:43:58 +08:00
yige c8d4061422 feat: 内测 provider 新增 qwen3.6-plus、qwen3.5-35b-a3b、qwen3.5-27b 三个模型 2026-04-08 16:52:35 +08:00
yigeandClaude Opus 4.6 8ea6fa7bba feat: 内测渠道增加 GLM-5.1 模型支持
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
2026-03-28 23:36:33 +08:00
yige a35b268011 feat: add MiniMax M2.7 to official minimax provider 2026-03-19 23:17:37 +08:00
yigeandClaude Opus 4.6 3a655077b0 feat: 内测供应商增加 GLM-5-Turbo 并设为默认
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 20:29:54 +08:00
yigeandClaude Opus 4.6 9d5f1df7cb feat: 内测供应商增加 MiniMax-M2.7
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-19 16:32:27 +08:00
yigeandClaude Opus 4.6 d44541ca74 feat: 添加内测专用供应商 (internal-testing)
- 端点: https://api.yizhioa.cn/v1
- 协议: anthropic-messages
- 模型: GLM-5, Kimi-2.5, MiniMax-M2.5, Qwen3 Max, Qwen3.5 Plus, 豆包 Seed 2.0 Code Preview
- presetDataVersion: 10 → 11

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-17 01:57:40 +08:00
yigeandClaude Opus 4.6 b1e6046061 feat: bump presetDataVersion to 9 — apiFormat UI exposure
Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-03 16:22:54 +08:00
yigeandClaude Opus 4.6 e2f4a6935c refactor: defaultTemperature/defaultTopP 从 Provider 级别迁移到 Model 级别
- 删除所有 Provider 顶层的 defaultTemperature / defaultTopP
- 为所有对话类模型添加 model 级别的推荐温度参数(基于官方文档)
- volcengine:将 extra 内温度参数提升到模型顶层正式字段
- presetDataVersion 7→8

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:57:13 +08:00
yigeandClaude Opus 4.6 80565d66c1 fix: 全面复核 Provider 定价与配置,新增 priceCurrency 货币标识
- 新增 priceCurrency 字段:国外 Provider 标记 USD,国内 Provider 标记 CNY
- OpenAI GPT-4/o 系列价格修正(消除错误的 ×7.2 汇率膨胀)
- Anthropic modelName 格式修正(点号→连字符,如 claude-opus-4-6)
- DeepSeek 价格修正为 ¥ 原始定价,删除蒸馏模型
- DashScope qwen3.5-max→qwen3.5-plus(不存在的模型名修正)
- Google gemini-2.5-pro-vision 删除(不存在),flash 价格更新
- 智谱 glm-5-plus 删除(不存在),contextWindow 修正
- Kling apiFormat→kling-task-api,Stability→stability-rest-api
- Cohere baseUrl 域名修正 .com→.ai
- MiniMax/百度/腾讯/讯飞/硅基流动价格修正为 ¥ 原始定价
- presetDataVersion 6→7

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-23 18:02:47 +08:00
yige 16b06ab168 refactor: 统一所有 Provider label 为「公司 + 模型品牌」命名风格 2026-02-23 15:16:12 +08:00
yige 47eb290d3f fix: 统一 Provider 命名风格(文心 ERNIE、讯飞星火、xAI、Perplexity AI) 2026-02-23 15:12:11 +08:00
yige 646cee8992 feat: 新增 9 个 Provider(baidu, tencent, xunfei, siliconflow, mistral, xai, cohere, openrouter, perplexity),presetDataVersion 5→6 2026-02-23 11:49:39 +08:00
yige aa333700b6 feat: 添加 MiniMax Provider 配置,presetDataVersion 升至 5 2026-02-23 09:49:16 +08:00
yigeandClaude Opus 4.6 b3a8e9f4b5 refactor: 删除旧 providers.json 单文件格式
不再向后兼容,所有客户端统一使用 compute/providers/ 目录格式。

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 14:27:40 +08:00
yigeandClaude Opus 4.6 7ff488641f feat: 拆分 providers.json 为按 Provider 独立文件
将 compute/providers.json(54KB, 14 providers, 99 models)拆分为
compute/providers/ 目录下的独立 JSON 文件,便于维护和按需更新。

新增文件:
- compute/providers/_index.json — 加载顺序索引(保证 digest 确定性)
- compute/providers/{provider}.json × 14 — 各 provider 独立配置

保留 compute/providers.json 供旧客户端向后兼容(过渡期)。

presetDataVersion: 2 → 3

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 14:24:55 +08:00
yigeandClaude Opus 4.6 fe26a6ff58 fix: Kimi K2.5 添加 apiModelId 修正 API 模型名
kimi-k2.5 为内部标识,上游 API 期望 kimi-2.5。
添加 apiModelId 字段指定正确的 API 调用名。

presetDataVersion: 1 → 2

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-02-22 13:53:08 +08:00
yige ea740afdc5 feat: 初始化配置中心数据 (dataVersion: 1)
从 compute-presets.json 拆分为独立文件:
- manifest.json: 仓库元信息 + 数据版本号
- compute/providers.json: 14 个算力供应商及模型列表
- compute/service-map.json: 18 项默认服务映射
- compute/pricing.json: 定价配置
2026-02-21 17:00:13 +08:00