A local-first multi-agent app development platform, built on PenguinHarness
feat(core): 模型库里多了 Abliteration 分组,去审查的模型可以直接选
lmliheng9864a187b2b0
diff --git a/changelog/unreleased/2026-10-23-abliteration.md b/changelog/unreleased/2026-10-23-abliteration.mdnew file mode 100644index 00000000..ce7ad751--- /dev/null+++ b/changelog/unreleased/2026-10-23-abliteration.md@@ -0,0 +1,47 @@+# Abliteration's uncensored models are in the model library++- **Date:** 2026-10-23+- **Type:** feat+- **Scope:** `core`, `docs`+- **Breaking:** no++[中文](2026-10-23-abliteration.zh.md)++The model library gains an Abliteration group, sitting just before vLLM. Its four rows are the+"abliterated" — refusal-ablated — models that service sells, and a Project gets them with+**Sync presets** or from its next new Project.++Everything is one OpenAI-compatible endpoint, `https://api.abliteration.ai/v1`, so a key of the+`ak_…` shape pasted into the group header is all it takes: no protocol to pick, no endpoint to+type. The group is closed like every other gateway — its presets arrive with the catalog, and no+model is added by hand.++## Details++- **The rows** (`core/src/state/model-catalog.ts`): `abliterated-model-large-v2` (the vendor's+ recommended default) and `abliterated-model-large` at a 1,000,000-token window, text only;+ `abliterated-model-large-flash` at 1,048,576 with image input; `abliterated-model` at 262,144+ with image input. Read from the service's own `GET /v1/models` on 2026-10-23, which publishes+ the windows, the input modalities and the per-token rates the rows record.+- **Protocol.** None of those ids matches a rule AgentHub routes by, so each row pins+ `openai-chat` and carries the endpoint on itself; that is also what makes the group speak the+ same protocol as its presets for the frontend's dialogs. The endpoint serves `/responses` too,+ so a row can be switched to it by hand.+- **Prices** are the published per-token rates converted to the catalog's USD-per-million+ buckets: input 1 or 3, output 2/3/5, cache hits 0.1 or 0.3. The service publishes no+ cache-write premium, so `cache_write` repeats the input rate. No promotion is running, so a+ Project stores these as the list prices.+- **Credential rule:** unchanged and deliberately unhelpful — a keyless row of this group is+ refused rather than sent the `OPENAI_API_KEY` the generic client would read, because the+ endpoint is not OpenAI's. The key goes on the group or on the row.+- Docs: a row in the provider table plus a short section in `packages/docs/content/models.zh.md`+ and `models.en.md`.+- Tests: `core/test/model-catalog.test.ts` (the group's rows, prices, vision flags, protocol and+ endpoint, plus the group order and the gateway aggregations) and the group order in+ `web/test/model-grouping.test.ts`.++## Compatibility++- No dependency change and nothing stored is rewritten: an existing Project keeps its rows, and+ the new group appears with its four presets after **Sync presets**.+- The group renders as a letter tile, like any group without a brand mark in the UI package.diff --git a/changelog/unreleased/2026-10-23-abliteration.zh.md b/changelog/unreleased/2026-10-23-abliteration.zh.mdnew file mode 100644index 00000000..2733e72e--- /dev/null+++ b/changelog/unreleased/2026-10-23-abliteration.zh.md@@ -0,0 +1,35 @@+# 模型库里多了 Abliteration,那批去审查的模型可以直接选++- **Date:** 2026-10-23+- **Type:** feat+- **Scope:** `core`, `docs`+- **Breaking:** no++[English](2026-10-23-abliteration.md)++**模型库**页面多了一个 Abliteration 分组,排在 vLLM 前面。它收录的四个模型就是这家服务卖的「abliterated」+——在开源权重上去掉拒答倾向的微调版本。已有的项目点一次**同步预置**就有,新建的项目直接带着。++整个分组只有一个 OpenAI 兼容端点 `https://api.abliteration.ai/v1`,所以把一把 `ak_…` 的 key 填进分组标题栏+就完事:不用挑协议,也不用填端点。和别的网关一样,这个分组是封闭的——模型跟着目录来,不能手工往里加。++## 细节++- **四个条目**(`core/src/state/model-catalog.ts`):`abliterated-model-large-v2`(服务推荐的默认款)与+ `abliterated-model-large`,上下文 1,000,000 Token、只收文本;`abliterated-model-large-flash`,1,048,576、+ 接受图像;`abliterated-model`,262,144、接受图像。数据是 2026-10-23 从服务自己的 `GET /v1/models` 读的,+ 上下文窗口、输入模态和每 Token 费率都出自那里。+- **协议**:这几个 id 没有一条能被 AgentHub 按名字认出来,所以每个条目都固定 `openai-chat` 并把端点写在条目上;+ 前端的添加、检测等对话框也因此按同一套协议给这个分组兜底。同一端点也提供 `/responses`,需要时可以在条目上改。+- **价格**是它公布的每 Token 费率折算成目录里每百万 Token 的三项:输入 1 或 3,输出 2/3/5,缓存命中 0.1 或+ 0.3。服务不额外收缓存写入费,所以 `cache_write` 记的就是输入价。目前没有促销,项目里存的就是牌价。+- **凭据规则**没变,而且这里刻意不帮你省事:这个分组里没有 key 的条目会被拒绝,而不是把通用客户端会去读的+ `OPENAI_API_KEY` 发给它——那端点不是 OpenAI 的。key 要设在分组上或条目上。+- 文档:`packages/docs/content/models.zh.md` 与 `models.en.md` 的分组表各加一行,另加一节说明。+- 测试:`core/test/model-catalog.test.ts`(四个条目的窗口、视觉、三项价格、协议与端点,以及分组顺序与网关集合),+ 前端分组顺序在 `web/test/model-grouping.test.ts`。++## 兼容性++- 没有依赖变化,也没重写已存的数据:老项目自己的条目原样保留,点一次**同步预置**才会把这四条补进来。+- 这个分组在界面上显示成字母牌,和所有在 UI 包里还没有品牌标的其它分组一样。diff --git a/docs/FORK-PROGRESS.md b/docs/FORK-PROGRESS.mdindex 172d2411..4f05cecb 100644--- a/docs/FORK-PROGRESS.md+++ b/docs/FORK-PROGRESS.md@@ -14408,3 +14408,47 @@ setDeleting(null); // 被拒也关- 先按 `csu-mail` 技能试 `mail.py check`:100 秒超时(`EXIT=124`,202.197.0.0/16 那个老问题),约定一轮只试一次,于是改由飞书送达(`message_id=om_x100b6299d2db88a8c0a9e0ae81b2e2f`,收件人即已绑定的那个私聊),正文留在scratchpad 的 `r116/report.md`;下一轮开工先再试一次 `mail.py check`,通了再把积压的补发到 `[email protected]`。++## 用户点单:模型库加一个 Abliteration 分组(2026-10-23)++### 事实来源++用户给了一把 `ak_…` 的 key,要「加到模型组,我自己来测试」。key 先在 TokenDance 上试过:`/gateway/v1/models`+不带鉴权也回 200(公开列表),带这把 key 的对话与 `/portal/api/v1/user/balance` 都是 `API 密钥不存在`,+所以不是那家。按前缀查到 Abliteration(abliteration.ai),实测:`GET https://api.abliteration.ai/v1/models`+回 200 并列出四个 id(窗口、输入模态、每 Token 费率都在里面),`GET /v1/credits` 回 200+`{"total_credits":0,"total_usage":0}`,而对话接口当时是 402 `insufficient_credits`(用户随后已充值)。+端点与协议取自其文档 `docs.abliteration.ai/api/openai-compatibility`:OpenAI 兼容,base URL+`https://api.abliteration.ai/v1`,`/chat/completions`、`/responses`、`/models` 都在上面。++### 改了什么++- `packages/core/src/state/model-catalog.ts`:新增 `ABLITERATION_BASE_URL` 与 `abliteration` 分组(排在+ modelscope 之后、vllm 之前;`OPENAI_*` 凭据、`gatewayBaseUrl` 指向该端点、控制台与文档链接各一条),+ 四条目录条目 `abliterated-model-large-v2` / `-large` / `-large-flash` / `abliterated-model`:窗口+ 1,000,000 / 1,000,000 / 1,048,576 / 262,144,视觉 否 / 否 / 是 / 是,价格按每 Token 费率折成每百万+ (3/3/5、3/3/5、1/1/2、1/1/3),四条都固定 `openai-chat` 并把端点写在条目上。文件头的数据核对日期与+ 「七个网关分组」那一句跟着改成八个、点名 Abliteration。+- `packages/core/test/model-catalog.test.ts`:分组顺序、网关 env 清单、`GATEWAYS` 清单、`gatewayBaseUrl`+ 断言与 `withBaseUrl` 期望各补一处;网关那一段里新加一组断言(四个 id 的窗口、视觉、三项价格、协议、端点、+ 无促销、非退役)。+- `packages/web/test/model-grouping.test.ts`:分组默认顺序补 `abliteration`。+- `packages/docs/content/models.zh.md` 与 `models.en.md`:分组表各一行(`OPENAI_API_KEY`)、各加一节+ 「Abliteration 分组 / The Abliteration group」(预置、协议、价格),预置模型清单各加一行。+- `changelog/unreleased/2026-10-23-abliteration.md` 与 `.zh.md`:中英双份。++### 验证++- `packages/core`:`npx vitest run test/model-catalog.test.ts` → 65 passed;全量 `npx vitest run` →+ 68 个文件通过 / 1410 passed、6 skipped(含两个 e2e 跳过);`npx tsc --noEmit -p tsconfig.json` 无输出。+- `packages/web`:`npx vitest run` → 264 个文件 / 3239 passed、2 skipped(改前先跑过 `model-grouping`,+ 失败原因就是 dist 还是旧的;`pnpm --filter @adelie/core build` 重建后转绿)。+- `npx prettier --check` 覆盖上列源码、测试与两份文档:全部符合。++### 没做 / 还差什么++- **没动现网与任何进程。** 现网 7364 跑的是 `/root/.adelie/lib` 里那份安装副本(`/root/.local/bin/penguin`+ → `/root/.adelie/bin/penguin`),不是这棵树里的 `packages/*/dist`,所以要让它出现在界面上,得重新构建+ 安装副本再重启 `adelie-server.service`——这一步没做,等用户点头。+- key 没有写进任何 Project 配置;用户说他自己来测试。+- 没切版本号、没发 npm、没发安装包、没发发布汇总。diff --git a/packages/core/src/state/model-catalog.ts b/packages/core/src/state/model-catalog.tsindex 89e96046..07558e35 100644--- a/packages/core/src/state/model-catalog.ts+++ b/packages/core/src/state/model-catalog.ts@@ -27,7 +27,8 @@* together — Xiaomi MiMo, Baidu ERNIE, Tencent Hunyuan and iFlytek Spark — read from each* vendor's own docs and console pages: 2026-10-15, with the iFlytek rows deliberately unpriced* (its HTTP doc publishes no price list, and the product page's prices name model families it- * has published no API id for).+ * has published no API id for); and the Abliteration group, whose four rows were read from the+ * service's own model list on 2026-10-23.* Docs: packages/docs/content/models.{zh,en}.md (site path /docs/models) documents the* provider groups and credential resolution described here.*@@ -48,8 +49,9 @@* (delisted 2026-08-06; the Z.AI direct glm-5.1 remains), the OpenRouter* inclusionai/ling-3.0-flash:free listing (delisted from OpenRouter, removed 2026-08-18),* non-chat models (embedding / image generation / TTS), and Bedrock. Direct-vendor ids are- * auto-routed by AgentHub and leave client_type unset; seven gateway groups (OpenRouter,- * Fireworks AI, SiliconFlow, TokenDance, OpenCode Go, Qwen Pay-As-You-Go and Qwen Token Plan)+ * auto-routed by AgentHub and leave client_type unset; eight gateway groups (OpenRouter,+ * Fireworks AI, SiliconFlow, TokenDance, OpenCode Go, Qwen Pay-As-You-Go, Qwen Token Plan and+ * Abliteration)* can't be auto-routed, so every gateway row **always pins an explicit client_type** and* inlines its preset base URL. ModelScope's rows pin one protocol too (see below).* Two groups pin at GROUP level as well (ModelProviderInfo.clientType, read@@ -283,6 +285,8 @@ const QWEN_TOKEN_PLAN_BASE_URL =const QWEN_PAYG_BASE_URL = "https://dashscope.aliyuncs.com/compatible-mode/v1";const FIREWORKS_BASE_URL = "https://api.fireworks.ai/inference/v1";const TOKENDANCE_BASE_URL = "https://tokendance.space/gateway/v1";+/** Abliteration's OpenAI-compatible base (its docs' base URL for every SDK and agent they wire up). */+const ABLITERATION_BASE_URL = "https://api.abliteration.ai/v1";const MINIMAX_BASE_URL = "https://api.minimax.io/v1";const DEEPSEEK_BASE_URL = "https://api.deepseek.com";const MODELSCOPE_BASE_URL = "https://api-inference.modelscope.cn/v1";@@ -566,6 +570,22 @@ export const MODEL_PROVIDERS: ModelProviderInfo[] = [gatewayBaseUrl: MODELSCOPE_BASE_URL,bridgeAuth: { flow: "modelscope" },},+ {+ // Abliteration (abliteration.ai): its own line of "abliterated" models — the uncensored+ // fine-tunes the service is named after — served on one OpenAI-compatible base URL that+ // answers /chat/completions, /responses and /models. Keys start with `ak_` and come from+ // its console. Every id is its own spelling (`abliterated-model…`), which matches none of+ // AgentHub's routing rules, so each row pins the generic Chat Completions client and+ // inlines the endpoint; the group carries the endpoint too, as every gateway does.+ // https://docs.abliteration.ai/api/openai-compatibility+ id: "abliteration",+ label: "Abliteration",+ envKey: "OPENAI_API_KEY",+ envBaseUrlKey: "OPENAI_BASE_URL",+ apiKeyUrl: "https://abliteration.ai/console",+ modelsUrl: "https://docs.abliteration.ai/",+ gatewayBaseUrl: ABLITERATION_BASE_URL,+ },{// Self-hosted: the user runs the server, so there is no console to mint a key at// (apiKeyUrl) and no endpoint to preset (gatewayBaseUrl). modelsUrl points at the recipe@@ -3121,6 +3141,55 @@ export const MODEL_CATALOG: ModelCatalogEntry[] = [clientType: "openai-chat",baseUrl: IFLYTEK_BASE_URL,},+ // -- Abliteration. Its own ids, read on 2026-10-23 from the service's own model list+ // (GET https://api.abliteration.ai/v1/models), which publishes everything the rows below+ // record: the window, the input modalities and the per-token rates. Prices are the list+ // rates converted to the catalog's USD-per-million buckets (input per token 0.000001 = 1+ // USD/Mtok, and so on); the service charges no cache-write premium, so cache_write repeats+ // the input rate while cache_read stores the discounted hit rate it does publish. Vision+ // follows input_modalities: only the two rows that accept an image say so. Every id pins+ // openai-chat and inlines the endpoint — none of them matches an AgentHub routing rule.+ // Largest first, newest revision of a size ahead of its predecessor.+ {+ modelId: "abliterated-model-large-v2",+ displayName: "Abliterated Model Large V2",+ provider: "abliteration",+ contextWindow: 1000000,+ pricing: usd(0.3, 3, 5),+ supportsVision: false,+ clientType: "openai-chat",+ baseUrl: ABLITERATION_BASE_URL,+ },+ {+ modelId: "abliterated-model-large",+ displayName: "Abliterated Model Large",+ provider: "abliteration",+ contextWindow: 1000000,+ pricing: usd(0.3, 3, 5),+ supportsVision: false,+ clientType: "openai-chat",+ baseUrl: ABLITERATION_BASE_URL,+ },+ {+ modelId: "abliterated-model-large-flash",+ displayName: "Abliterated Model Large Flash",+ provider: "abliteration",+ contextWindow: 1048576,+ pricing: usd(0.1, 1, 2),+ supportsVision: true,+ clientType: "openai-chat",+ baseUrl: ABLITERATION_BASE_URL,+ },+ {+ modelId: "abliterated-model",+ displayName: "Abliterated Model",+ provider: "abliteration",+ contextWindow: 262144,+ pricing: usd(0.1, 1, 3),+ supportsVision: true,+ clientType: "openai-chat",+ baseUrl: ABLITERATION_BASE_URL,+ },// -- Custom (the group that otherwise holds only user-defined models). A preset may live// here only as a complete row — its own base URL and a pinned generic protocol — because the// group implies neither; it is where a vendor with a single preview model and no consolediff --git a/packages/core/test/model-catalog.test.ts b/packages/core/test/model-catalog.test.tsindex 5e84dc30..eba2dea0 100644--- a/packages/core/test/model-catalog.test.ts+++ b/packages/core/test/model-catalog.test.ts@@ -75,6 +75,7 @@ describe("model-catalog", () => {"qwen-pay-as-you-go","qwen-token-plan","modelscope",+ "abliteration","vllm","custom",]);@@ -983,6 +984,7 @@ describe("model-catalog", () => {"qwen-token-plan","qwen-pay-as-you-go","modelscope",+ "abliteration","vllm","custom","xiaomi",@@ -1007,6 +1009,7 @@ describe("model-catalog", () => {expect(providerInfo("modelscope")!.gatewayBaseUrl).toBe("https://api-inference.modelscope.cn/v1",);+ expect(providerInfo("abliteration")!.gatewayBaseUrl).toBe("https://api.abliteration.ai/v1");const GATEWAYS = ["openrouter","fireworks",@@ -1016,13 +1019,41 @@ describe("model-catalog", () => {"qwen-token-plan","qwen-pay-as-you-go","modelscope",+ "abliteration",];for (const p of MODEL_PROVIDERS) {if (!GATEWAYS.includes(p.id)) {expect(p.gatewayBaseUrl, p.id).toBeUndefined();}}- const gateway = [...or, ...fw, ...sf, ...td, ...qtp, ...qpayg, ...ms];+ const abl = MODEL_CATALOG.filter((m) => m.provider === "abliteration");+ // Abliteration's own ids, read from GET /v1/models on 2026-10-23. There is no routing rule+ // for any of them, so every row pins openai-chat and inlines the endpoint; prices are the+ // service's per-token rates in the catalog's USD-per-million buckets, and vision follows+ // the input modalities it publishes.+ expect(+ abl.map((m) => [+ m.modelId,+ m.contextWindow,+ m.supportsVision,+ m.pricing!.cache_read,+ m.pricing!.cache_write,+ m.pricing!.output,+ ]),+ ).toEqual([+ ["abliterated-model-large-v2", 1000000, false, 0.3, 3, 5],+ ["abliterated-model-large", 1000000, false, 0.3, 3, 5],+ ["abliterated-model-large-flash", 1048576, true, 0.1, 1, 2],+ ["abliterated-model", 262144, true, 0.1, 1, 3],+ ]);+ for (const m of abl) {+ expect(m.clientType, m.modelId).toBe("openai-chat");+ expect(m.baseUrl, m.modelId).toBe("https://api.abliteration.ai/v1");+ // A gateway row: no promotion, so nothing sits between the list price and the bill.+ expect(m.discount, m.modelId).toBeUndefined();+ expect(m.retired, m.modelId).toBeUndefined();+ }+ const gateway = [...or, ...fw, ...sf, ...td, ...qtp, ...qpayg, ...ms, ...abl];// Pricing (USD, per the 2026-08-03 models-API re-read): MiMo v2.5 and Hy3 publish a real// cache-hit price and no per-token write premium, so cache_write carries the input price.const mimo = MODEL_CATALOG.find((m) => m.modelId === "xiaomi/mimo-v2.5")!.pricing!;diff --git a/packages/docs/content/models.en.md b/packages/docs/content/models.en.mdindex 76b897b4..6d46ea7f 100644--- a/packages/docs/content/models.en.md+++ b/packages/docs/content/models.en.md@@ -449,6 +449,7 @@ The table below lists the built-in groups and the environment variables their mo| qwen-pay-as-you-go | `OPENAI_API_KEY` | Qwen pay-as-you-go (DashScope's OpenAI-compatible endpoint), preset base URL `https://dashscope.aliyuncs.com/compatible-mode/v1`; resold third-party models keep vendor-prefixed ids (e.g. `kimi/kimi-k3`) || qwen-token-plan | `OPENAI_API_KEY` | Qwen Token Plan subscription gateway, preset base URL `https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1`; pricing from each model page's official list price (the preview model has only a quota-multiplier promo, no list price) || modelscope | `OPENAI_API_KEY` | ModelScope's OpenAI-compatible api-inference gateway, preset base URL `https://api-inference.modelscope.cn/v1`; ids are the upstream repo names (`deepseek-ai/DeepSeek-V4.1-Flash`, `Qwen/Qwen3.8-27B`); the group's header authorizes a token for you through an authorization bridge, or takes one you set by hand. See [The ModelScope group](#the-modelscope-group) |+| abliteration | `OPENAI_API_KEY` | Abliteration's own line of "abliterated" (refusal-ablated) models, OpenAI-compatible, preset base URL `https://api.abliteration.ai/v1`; keys look like `ak_…`; all four presets pin Chat Completions. See [The Abliteration group](#the-abliteration-group) || vllm | `OPENAI_API_KEY` | Self-hosted vLLM servers: protocol fixed to `openai-chat-vllm-adapter`, no preset base URL, eight preset models priced at 0 (see [Connect a local or self-hosted endpoint](#connect-a-local-or-self-hosted-endpoint)) || custom | `OPENAI_API_KEY` | Any OpenAI-protocol endpoint; ships one preset, Atria Dawn Preview (Anthropic Messages API at `api.atria-asi.ai`, needs its own key, 256K window, priced at $0 until the vendor publishes prices) |@@ -491,6 +492,14 @@ The group's key comes from its header; see [Connect an account](#connect-an-accoThe preset rows carry no price. ModelScope bills for api-inference and its model pages publish no read-able rate, so the rows are left unpriced: the models page shows no price badge on them and the cost center reports their usage as uncosted. That is the catalog's way of recording "nobody has looked this up" — see [Prices and promotions](#prices-and-promotions).+### The Abliteration group++`abliteration` carries abliteration.ai's own line of "abliterated" models — the refusal-ablated fine-tunes the service is named after. The endpoint is OpenAI-compatible: `/chat/completions`, `/responses` and `/models` all sit on `https://api.abliteration.ai/v1`, and a key from the console looks like `ak_…`. Set it once on the group header with **Enter key**.++- **Presets.** `abliterated-model-large-v2` (the vendor's recommended default), `abliterated-model-large`, `abliterated-model-large-flash` and `abliterated-model`. The first two take text only at a 1,000,000-token window; `flash` takes text and images at 1,048,576; `abliterated-model` takes both at 262,144.+- **Protocol.** None of these ids matches a rule AgentHub routes by, so every row pins the Chat Completions client (`client_type = "openai-chat"`) and carries the endpoint on itself. The same endpoint also serves `/responses`; change the row's protocol if you prefer it. As in every gateway, a keyless row is refused rather than sent your OpenAI key.+- **Prices.** Read from the service's own model list, in USD per million Tokens: input 1 or 3, output 2, 3 or 5, and cache hits read at 0.1 or 0.3. It charges no separate cache-write fee, so `cache_write` records the input rate.+### Preset modelsThe preset catalog includes, among others:@@ -506,6 +515,7 @@ The preset catalog includes, among others:- `seed-2.1-pro` / `seed-2.1-turbo` / `seed-evolving`- `dots-3-note-preview` (free on TokenDance, 512K context)- `deepseek-ai/DeepSeek-V4.1-Flash`, `Qwen/Qwen3.8-27B`, `Qwen/Qwen3.8-Flash-Next` (ModelScope's api-inference; preset rows with no price)+- `abliterated-model-large-v2` / `abliterated-model-large-flash` (Abliteration's refusal-ablated models)The list is not exhaustive.diff --git a/packages/docs/content/models.zh.md b/packages/docs/content/models.zh.mdindex 8abd7313..e44b33e7 100644--- a/packages/docs/content/models.zh.md+++ b/packages/docs/content/models.zh.md@@ -448,6 +448,7 @@ Adelie 升级可能改变内置的预置模型目录。一旦发生,Project ow| qwen-pay-as-you-go | `OPENAI_API_KEY` | Qwen 按量付费(DashScope 的 OpenAI 兼容端点),预置 base URL `https://dashscope.aliyuncs.com/compatible-mode/v1`;转售的第三方模型保留供应商前缀 id(如 `kimi/kimi-k3`) || qwen-token-plan | `OPENAI_API_KEY` | Qwen Token Plan 订阅网关,预置 base URL `https://token-plan.cn-beijing.maas.aliyuncs.com/compatible-mode/v1`;价格取自各模型页面的官方牌价(预览模型只有配额倍率优惠,没有牌价) || modelscope | `OPENAI_API_KEY` | 魔搭的 OpenAI 兼容 api-inference 网关,预置 base URL `https://api-inference.modelscope.cn/v1`;id 就是上游仓库名(如 `deepseek-ai/DeepSeek-V4.1-Flash`、`Qwen/Qwen3.8-27B`);分组标题栏可以经授权中转层为你自动授权一把 token,也可以手动设置。见 [ModelScope 分组](#modelscope-分组) |+| abliteration | `OPENAI_API_KEY` | abliteration.ai 自家那批「abliterated」(去审查微调)模型,OpenAI 兼容,预置 base URL `https://api.abliteration.ai/v1`;key 形如 `ak_…`;四条预置都固定 Chat Completions 客户端。见 [Abliteration 分组](#abliteration-分组) || vllm | `OPENAI_API_KEY` | 自托管 vLLM 服务器:协议固定为 `openai-chat-vllm-adapter`,无预置 base URL,八个预置模型价格均为 0(见[连接本地或自托管端点](#连接本地或自托管端点)) || custom | `OPENAI_API_KEY` | 任意 OpenAI 协议端点;自带一个预置模型 Atria Dawn Preview(Anthropic Messages API,地址 `api.atria-asi.ai`,需要自己的 key,上下文窗口 256K,供应商公布价格之前定价 $0) |@@ -490,6 +491,14 @@ OpenAI 兼容网关分组(openrouter / fireworks / siliconflow / tokendance /预置条目不带价格。魔搭的 api-inference 是计费的,但它的模型页面读不到费率,所以这些条目按未定价处理:模型页在它们上面不显示价格徽标,成本中心把它们的用量报为未计价。这是目录记录「没人查过这个价格」的方式,见[价格与促销](#价格与促销)。+### Abliteration 分组++`abliteration` 收录 abliteration.ai 自家那批「abliterated」模型——在开源权重上做去审查微调得到的那条产品线,服务名就来自这个做法。端点是 OpenAI 兼容的:`/chat/completions`、`/responses` 与 `/models` 都挂在 `https://api.abliteration.ai/v1` 上,key 从控制台领取,形如 `ak_…`,在分组标题栏用**填写密钥**设置一次即可。++- **预置模型。** `abliterated-model-large-v2`(官方推荐的默认选择)、`abliterated-model-large`、`abliterated-model-large-flash` 与 `abliterated-model`。前两条是 1,000,000 Token 上下文、只收文本;`flash` 是 1,048,576 并接受图像;`abliterated-model` 是 262,144,也接受图像。+- **协议。** 这些 id 没有一条能被 AgentHub 按名字认出来,所以每个条目都固定 Chat Completions 客户端(`client_type = "openai-chat"`)并把端点写在条目上;同一条端点上也有 `/responses`,要换协议在条目上改即可。和所有网关一样,没有 key 的条目会被拒绝,而不是把你的 OpenAI key 发过去。+- **价格。** 取自服务自己的模型列表,单位是每百万 Token 多少美元:输入 1 或 3,输出 2、3 或 5,缓存命中的读价 0.1 或 0.3。它不额外收缓存写入费,所以 `cache_write` 记的就是输入价。+### 预置模型预置模型目录包含以下模型:@@ -505,6 +514,7 @@ OpenAI 兼容网关分组(openrouter / fireworks / siliconflow / tokendance /- `seed-2.1-pro` / `seed-2.1-turbo` / `seed-evolving`- `dots-3-note-preview`(TokenDance 上免费,512K 上下文)- `deepseek-ai/DeepSeek-V4.1-Flash`、`Qwen/Qwen3.8-27B`、`Qwen/Qwen3.8-Flash-Next`(ModelScope 的 api-inference,没有价格的预置条目)+- `abliterated-model-large-v2` / `abliterated-model-large-flash`(Abliteration 的去审查模型)列表并未穷尽所有模型。diff --git a/packages/web/test/model-grouping.test.ts b/packages/web/test/model-grouping.test.tsindex a21d1b47..d95c4a39 100644--- a/packages/web/test/model-grouping.test.ts+++ b/packages/web/test/model-grouping.test.ts@@ -112,6 +112,7 @@ describe("groupModelRows", () => {"qwen-pay-as-you-go","qwen-token-plan","modelscope",+ "abliteration","vllm","custom",]);