feat: 增加火山引擎 Coding Plan 渠道

使用 Coding Plan 专属地址 /api/coding/v3 和方舟 API Key,默认 doubao-seed-2.1-lite;提示不要改成 /api/v3(不计入套餐、按量计费)。Coding Plan 不含语音合成,提示改用火山引擎 Agent Plan、豆包语音或其他渠道的云端语音。

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
margrop
2026-10-30 09:50:19 +08:00
parent 3d8a48ccfa
commit 75e29b35c1
9 changed files with 35 additions and 9 deletions

View File

@@ -31,7 +31,7 @@ AUTH_TRUST_HOST=true
# VOLCENGINE_TTS_API_KEY=""
# AI 服务提供商配置
# 可选值: "minimax" (默认)、"minimax-code"、"glm"、"deepseek"、"kimi"、"qwen"、"stepfun"、"volcengine"、"volcengine-agent"、"volcengine-free"、"anthropic"、"azure"、"openai"、"gemini"
# 可选值: "minimax" (默认)、"minimax-code"、"glm"、"deepseek"、"kimi"、"qwen"、"stepfun"、"volcengine"、"volcengine-agent"、"volcengine-coding"、"volcengine-free"、"anthropic"、"azure"、"openai"、"gemini"
AI_PROVIDER="minimax"
# 国产大模型官方渠道(OpenAI 兼容接口,BASE_URL 和 MODEL 可选,留空使用官方默认值)
@@ -67,6 +67,10 @@ VOLCENGINE_MODEL="" # 默认为 doubao-seed-2-1-lite-260915
VOLCENGINE_AGENT_API_KEY=""
VOLCENGINE_AGENT_BASE_URL="" # 默认为 https://ark.cn-beijing.volces.com/api/plan/v3
VOLCENGINE_AGENT_MODEL="" # 默认为 doubao-seed-2-1-pro-260628
# 火山引擎 Coding Plan (当 AI_PROVIDER="volcengine-coding" 时需要):方舟 API Key;不要改成 /api/v3(不计入套餐、按量计费);套餐不含语音合成
VOLCENGINE_CODING_API_KEY=""
VOLCENGINE_CODING_BASE_URL="" # 默认为 https://ark.cn-beijing.volces.com/api/coding/v3
VOLCENGINE_CODING_MODEL="" # 默认为 doubao-seed-2.1-lite
# 火山引擎(免费试用)(当 AI_PROVIDER="volcengine-free" 时需要):新用户每个模型有免费推理额度,开启「安心体验模式」后用完自动暂停不扣费
VOLCENGINE_FREE_API_KEY=""
VOLCENGINE_FREE_BASE_URL="" # 默认为 https://ark.cn-beijing.volces.com/api/v3

View File

@@ -203,7 +203,7 @@ When served over HTTPS (or `localhost`), a service worker caches scripts, styles
- **Database**: [SQLite](https://www.sqlite.org/) (via [Prisma 5](https://www.prisma.io/))
- **Styling**: [Tailwind CSS v4](https://tailwindcss.com/) + [Radix UI](https://www.radix-ui.com/) (shadcn/ui-style components)
- **Formulas**: [KaTeX](https://katex.org/) (react-markdown + remark-math)
- **AI**: MiniMax / MiniMax Code (browser sign-in) / Zhipu GLM / DeepSeek / Kimi / Qwen / StepFun / Volcengine Doubao (including Agent Plan and a free trial) / Anthropic (and compatible APIs) / Azure OpenAI / OpenAI (and compatible APIs) / Google Gemini
- **AI**: MiniMax / MiniMax Code (browser sign-in) / Zhipu GLM / DeepSeek / Kimi / Qwen / StepFun / Volcengine Doubao (including Agent Plan, Coding Plan and a free trial) / Anthropic (and compatible APIs) / Azure OpenAI / OpenAI (and compatible APIs) / Google Gemini
- **Auth**: [NextAuth.js v4](https://next-auth.js.org/)
- **Testing**: Vitest (unit, integration), Playwright (E2E)
@@ -361,7 +361,7 @@ Data directories, default accounts and local builds are described in [INSTALL_PA
| Variable | Description | Default | Notes |
| :--- | :--- | :--- | :--- |
| `AI_PROVIDER` | AI provider | `minimax` | `minimax`, `minimax-code`, `glm`, `deepseek`, `kimi`, `qwen`, `stepfun`, `volcengine`, `volcengine-agent`, `volcengine-free`, `anthropic`, `azure`, `openai` or `gemini` |
| `AI_PROVIDER` | AI provider | `minimax` | `minimax`, `minimax-code`, `glm`, `deepseek`, `kimi`, `qwen`, `stepfun`, `volcengine`, `volcengine-agent`, `volcengine-coding`, `volcengine-free`, `anthropic`, `azure`, `openai` or `gemini` |
| `MINIMAX_API_KEY` / `MINIMAX_BASE_URL` / `MINIMAX_MODEL` | MiniMax | URL `https://api.minimax.cn/v1`, model `MiniMax-M3.1-Flash` | URL and model are optional |
| `MINIMAX_CODE_MODEL` | MiniMax Code model | `MiniMax-M3.1-Flash` | The account signs in from the web settings; no API key needed |
| `MINIMAX_CODE_AUTO_CHECKIN` | MiniMax Code daily auto check-in | `true` | Set to `false` to turn it off |
@@ -372,6 +372,7 @@ Data directories, default accounts and local builds are described in [INSTALL_PA
| `STEPFUN_API_KEY` / `STEPFUN_BASE_URL` / `STEPFUN_MODEL` | StepFun | URL `https://api.stepfun.com/step_plan/v1` (Step Plan), model `step-5-preview` | Pay-as-you-go keys use `https://api.stepfun.com/v1`; international `https://api.stepfun.ai/v1` |
| `VOLCENGINE_API_KEY` / `VOLCENGINE_BASE_URL` / `VOLCENGINE_MODEL` | Volcengine Doubao | URL `https://ark.cn-beijing.volces.com/api/v3`, model `doubao-seed-2-1-lite-260915` | Pay-as-you-go; with an Agent Plan or similar subscription, choose the matching plan channel; international `https://ark.ap-southeast.bytepluses.com/api/v3` |
| `VOLCENGINE_AGENT_API_KEY` / `VOLCENGINE_AGENT_BASE_URL` / `VOLCENGINE_AGENT_MODEL` | Volcengine Agent Plan | URL `https://ark.cn-beijing.volces.com/api/plan/v3`, model `doubao-seed-2-1-pro-260628` | The plan's dedicated API key from the Agent Plan page; the plan includes Doubao speech synthesis |
| `VOLCENGINE_CODING_API_KEY` / `VOLCENGINE_CODING_BASE_URL` / `VOLCENGINE_CODING_MODEL` | Volcengine Coding Plan | URL `https://ark.cn-beijing.volces.com/api/coding/v3`, model `doubao-seed-2.1-lite` | Ark API key; do not change it to `/api/v3` (not counted toward the plan); the plan does not include speech synthesis |
| `VOLCENGINE_FREE_API_KEY` / `VOLCENGINE_FREE_BASE_URL` / `VOLCENGINE_FREE_MODEL` | Volcengine (free trial) | URL `https://ark.cn-beijing.volces.com/api/v3`, model `doubao-seed-2-1-lite-260915` | Free inference quota for new users; with worry-free trial mode on, calls pause when it runs out |
| `ANTHROPIC_API_KEY` | Anthropic API key | None | From the [Claude Console](https://platform.claude.com/) |
| `ANTHROPIC_BASE_URL` | API URL | `https://api.anthropic.com` | For compatible services, use the URL without `/v1` |
@@ -405,7 +406,7 @@ When adding environment variables, update `.env.example` as well.
AI settings can be changed in the web UI without restarting the server.
1. **Open settings**: as an administrator, click the settings icon at the top right of the home page and open **AI Provider**.
2. **Choose a provider**: MiniMax is the default. Choose from the official MiniMax channel, MiniMax Code OAuth (sign in with a MiniMax Code account in the browser), the official Zhipu GLM, DeepSeek, Kimi, Qwen, StepFun, Volcengine Doubao, Volcengine Agent Plan and Volcengine (free trial) channels, Anthropic, Azure OpenAI, OpenAI (including compatible APIs) or Google Gemini; OpenAI supports several configurations you can switch between.
2. **Choose a provider**: MiniMax is the default. Choose from the official MiniMax channel, MiniMax Code OAuth (sign in with a MiniMax Code account in the browser), the official Zhipu GLM, DeepSeek, Kimi, Qwen, StepFun, Volcengine Doubao, Volcengine Agent Plan, Volcengine Coding Plan and Volcengine (free trial) channels, Anthropic, Azure OpenAI, OpenAI (including compatible APIs) or Google Gemini; OpenAI supports several configurations you can switch between.
3. **Fill in the parameters**: API key, base URL (or endpoint) and model (or deployment name). Test the connection and fetch the model list from the API.
4. **Save**: settings are stored in `config/app-config.json` and take precedence over `.env`.
@@ -442,6 +443,7 @@ These channels call each vendor's official OpenAI-compatible API, so only an API
| StepFun | [StepFun platform](https://platform.stepfun.com) (Step Plan recommended) | `https://api.stepfun.com/step_plan/v1` (pay-as-you-go `https://api.stepfun.com/v1`, international `https://api.stepfun.ai/v1`) | `step-5-preview` |
| Volcengine Doubao | [Volcengine Ark](https://console.volcengine.com/ark) (pay-as-you-go) | `https://ark.cn-beijing.volces.com/api/v3` (international `https://ark.ap-southeast.bytepluses.com/api/v3`) | `doubao-seed-2-1-lite-260915` |
| Volcengine Agent Plan | [Volcengine Ark](https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh) (dedicated Agent Plan key) | `https://ark.cn-beijing.volces.com/api/plan/v3` | `doubao-seed-2-1-pro-260628` |
| Volcengine Coding Plan | [Volcengine Ark](https://www.volcengine.com/docs/82379/1928261) | `https://ark.cn-beijing.volces.com/api/coding/v3` | `doubao-seed-2.1-lite` |
| Volcengine (free trial) | [Volcengine Ark](https://console.volcengine.com/ark) | `https://ark.cn-beijing.volces.com/api/v3` | `doubao-seed-2-1-lite-260915` |
#### Volcengine (free trial)

View File

@@ -201,7 +201,7 @@
- **数据库**: [SQLite](https://www.sqlite.org/) (via [Prisma 5](https://www.prisma.io/))
- **样式**: [Tailwind CSS v4](https://tailwindcss.com/) + [Radix UI](https://www.radix-ui.com/)(shadcn/ui 风格组件)
- **公式**: [KaTeX](https://katex.org/)(react-markdown + remark-math)
- **AI**: MiniMax / MiniMax Code(网页登录)/ 智谱 GLM / DeepSeek / Kimi / 千问 Qwen / 阶跃星辰 StepFun / 火山引擎豆包(含 Agent Plan、免费试用) / Anthropic(及兼容接口)/ Azure OpenAI / OpenAI(及兼容接口)/ Google Gemini
- **AI**: MiniMax / MiniMax Code(网页登录)/ 智谱 GLM / DeepSeek / Kimi / 千问 Qwen / 阶跃星辰 StepFun / 火山引擎豆包(含 Agent Plan、Coding Plan、免费试用) / Anthropic(及兼容接口)/ Azure OpenAI / OpenAI(及兼容接口)/ Google Gemini
- **认证**: [NextAuth.js v4](https://next-auth.js.org/)
- **测试**: Vitest(单元、集成)、Playwright(E2E)
@@ -359,7 +359,7 @@ wrong-notebook --port 3000
| 环境变量 | 描述 | 默认值 | 说明 |
| :--- | :--- | :--- | :--- |
| `AI_PROVIDER` | AI 提供商 | `minimax` | 可选 `minimax`、`minimax-code`、`glm`、`deepseek`、`kimi`、`qwen`、`stepfun`、`volcengine`、`volcengine-agent`、`volcengine-free`、`anthropic`、`azure`、`openai`、`gemini` |
| `AI_PROVIDER` | AI 提供商 | `minimax` | 可选 `minimax`、`minimax-code`、`glm`、`deepseek`、`kimi`、`qwen`、`stepfun`、`volcengine`、`volcengine-agent`、`volcengine-coding`、`volcengine-free`、`anthropic`、`azure`、`openai`、`gemini` |
| `MINIMAX_API_KEY` / `MINIMAX_BASE_URL` / `MINIMAX_MODEL` | MiniMax | 地址 `https://api.minimax.cn/v1`,模型 `MiniMax-M3.1-Flash` | 地址和模型可留空 |
| `MINIMAX_CODE_MODEL` | MiniMax Code 模型 | `MiniMax-M3.1-Flash` | 账号在网页设置中登录,无需 API Key |
| `MINIMAX_CODE_AUTO_CHECKIN` | MiniMax Code 每日自动签到 | `true` | 设为 `false` 关闭 |
@@ -370,6 +370,7 @@ wrong-notebook --port 3000
| `STEPFUN_API_KEY` / `STEPFUN_BASE_URL` / `STEPFUN_MODEL` | 阶跃星辰 StepFun | 地址 `https://api.stepfun.com/step_plan/v1`(Step Plan 套餐),模型 `step-5-preview` | 按量付费改填 `https://api.stepfun.com/v1`,国际站 `https://api.stepfun.ai/v1` |
| `VOLCENGINE_API_KEY` / `VOLCENGINE_BASE_URL` / `VOLCENGINE_MODEL` | 火山引擎 豆包 | 地址 `https://ark.cn-beijing.volces.com/api/v3`,模型 `doubao-seed-2-1-lite-260915` | 按量付费;订阅 Agent Plan 等套餐时选择对应的套餐渠道;国际站 `https://ark.ap-southeast.bytepluses.com/api/v3` |
| `VOLCENGINE_AGENT_API_KEY` / `VOLCENGINE_AGENT_BASE_URL` / `VOLCENGINE_AGENT_MODEL` | 火山引擎 Agent Plan | 地址 `https://ark.cn-beijing.volces.com/api/plan/v3`,模型 `doubao-seed-2-1-pro-260628` | Agent Plan 管理页的专属 API Key;套餐含豆包语音合成 |
| `VOLCENGINE_CODING_API_KEY` / `VOLCENGINE_CODING_BASE_URL` / `VOLCENGINE_CODING_MODEL` | 火山引擎 Coding Plan | 地址 `https://ark.cn-beijing.volces.com/api/coding/v3`,模型 `doubao-seed-2.1-lite` | 方舟 API Key;不要改成 `/api/v3`(不计入套餐);套餐不含语音合成 |
| `VOLCENGINE_FREE_API_KEY` / `VOLCENGINE_FREE_BASE_URL` / `VOLCENGINE_FREE_MODEL` | 火山引擎(免费试用) | 地址 `https://ark.cn-beijing.volces.com/api/v3`,模型 `doubao-seed-2-1-lite-260915` | 新用户免费推理额度,开启「安心体验模式」后用完自动暂停 |
| `ANTHROPIC_API_KEY` | Anthropic API Key | 无 | 从 [Claude Console](https://platform.claude.com/) 获取 |
| `ANTHROPIC_BASE_URL` | API 地址 | `https://api.anthropic.com` | 兼容服务填写不含 `/v1` 的地址 |
@@ -403,7 +404,7 @@ wrong-notebook --port 3000
AI 配置可在网页中动态修改,无需重启服务器。
1. **进入设置**:管理员点击首页右上角的设置图标,打开「AI 设置」。
2. **选择提供商**:默认使用 MiniMax;可选 MiniMax、用 MiniMax Code 账号网页登录的 MiniMax Code OAuth、智谱 GLM、DeepSeek、Kimi、千问 Qwen、阶跃星辰 StepFun、火山引擎豆包、火山引擎 Agent Plan、火山引擎(免费试用),以及 Anthropic、Azure OpenAI、OpenAI(含兼容接口)、Google Gemini,OpenAI 可添加多个配置并切换。
2. **选择提供商**:默认使用 MiniMax;可选 MiniMax、用 MiniMax Code 账号网页登录的 MiniMax Code OAuth、智谱 GLM、DeepSeek、Kimi、千问 Qwen、阶跃星辰 StepFun、火山引擎豆包、火山引擎 Agent Plan、火山引擎 Coding Plan、火山引擎(免费试用),以及 Anthropic、Azure OpenAI、OpenAI(含兼容接口)、Google Gemini,OpenAI 可添加多个配置并切换。
3. **填写参数**:API Key、Base URL(或 Endpoint)、模型(或部署名称);可测试连接并从接口获取模型列表。
4. **保存生效**:配置保存到 `config/app-config.json`,优先级高于 `.env`。
@@ -440,6 +441,7 @@ AI 配置可在网页中动态修改,无需重启服务器。
| 阶跃星辰 StepFun | [阶跃星辰开放平台](https://platform.stepfun.com)(推荐 Step Plan) | `https://api.stepfun.com/step_plan/v1`(按量付费 `https://api.stepfun.com/v1`,国际站 `https://api.stepfun.ai/v1`) | `step-5-preview` |
| 火山引擎 豆包 | [火山方舟](https://console.volcengine.com/ark)(按量付费) | `https://ark.cn-beijing.volces.com/api/v3`(国际站 `https://ark.ap-southeast.bytepluses.com/api/v3`) | `doubao-seed-2-1-lite-260915` |
| 火山引擎 Agent Plan | [火山方舟](https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh)(Agent Plan 专属 Key) | `https://ark.cn-beijing.volces.com/api/plan/v3` | `doubao-seed-2-1-pro-260628` |
| 火山引擎 Coding Plan | [火山方舟](https://www.volcengine.com/docs/82379/1928261) | `https://ark.cn-beijing.volces.com/api/coding/v3` | `doubao-seed-2.1-lite` |
| 火山引擎(免费试用) | [火山方舟](https://console.volcengine.com/ark) | `https://ark.cn-beijing.volces.com/api/v3` | `doubao-seed-2-1-lite-260915` |
#### 火山引擎(免费试用)

View File

@@ -24,6 +24,7 @@ AI 设置、连接测试、模型列表与提示词设置只向管理员开放
| 阶跃星辰 StepFun | API Key(推荐 Step Plan 套餐) | 默认 Step Plan 地址 `https://api.stepfun.com/step_plan/v1`,按量付费改填 `https://api.stepfun.com/v1`,国际站 `https://api.stepfun.ai/v1`;代码默认 `step-5-preview` |
| 火山引擎 豆包 | API Key(按量付费;订阅套餐时选择对应的套餐渠道) | 默认 `https://ark.cn-beijing.volces.com/api/v3`,国际站 `https://ark.ap-southeast.bytepluses.com/api/v3`;代码默认 `doubao-seed-2-1-lite-260915` |
| 火山引擎 Agent Plan | Agent Plan 专属 API Key | 默认 `https://ark.cn-beijing.volces.com/api/plan/v3`;代码默认 `doubao-seed-2-1-pro-260628`;套餐含豆包语音合成 |
| 火山引擎 Coding Plan | 火山方舟 API Key | 默认 `https://ark.cn-beijing.volces.com/api/coding/v3`(改成 `/api/v3` 不计入套餐、按量计费);代码默认 `doubao-seed-2.1-lite`;套餐不含语音合成 |
| 火山引擎(免费试用) | 火山方舟 API Key | 默认 `https://ark.cn-beijing.volces.com/api/v3`;使用新用户的[免费推理额度](https://www.volcengine.com/docs/82379/1399514),开启「安心体验模式」后用完自动暂停,不产生费用 |
| Anthropic 或兼容接口 | API Key、模型 | 默认 `https://api.anthropic.com`;代码默认 `claude-sonnet-5-5` |
| Azure OpenAI | API Key、Endpoint、部署名称 | API 版本默认 `2024-02-15-preview`;模型字段用于显示 |
@@ -69,7 +70,7 @@ MiniMax Code OAuth 用 MiniMax Code 账号登录后调用模型,不需要 API
## 环境变量
基础选择使用 `AI_PROVIDER`,默认 `minimax`,可选 `minimax`、`minimax-code`、`glm`、`deepseek`、`kimi`、`qwen`、`stepfun`、`volcengine`、`volcengine-agent`、`volcengine-free`、`anthropic`、`azure`、`openai`、`gemini`。
基础选择使用 `AI_PROVIDER`,默认 `minimax`,可选 `minimax`、`minimax-code`、`glm`、`deepseek`、`kimi`、`qwen`、`stepfun`、`volcengine`、`volcengine-agent`、`volcengine-coding`、`volcengine-free`、`anthropic`、`azure`、`openai`、`gemini`。
| 提供商 | 配置项 |
| --- | --- |
@@ -82,6 +83,7 @@ MiniMax Code OAuth 用 MiniMax Code 账号登录后调用模型,不需要 API
| 阶跃星辰 StepFun | `STEPFUN_API_KEY`、`STEPFUN_BASE_URL`、`STEPFUN_MODEL` |
| 火山引擎 豆包 | `VOLCENGINE_API_KEY`、`VOLCENGINE_BASE_URL`、`VOLCENGINE_MODEL` |
| 火山引擎 Agent Plan | `VOLCENGINE_AGENT_API_KEY`、`VOLCENGINE_AGENT_BASE_URL`、`VOLCENGINE_AGENT_MODEL` |
| 火山引擎 Coding Plan | `VOLCENGINE_CODING_API_KEY`、`VOLCENGINE_CODING_BASE_URL`、`VOLCENGINE_CODING_MODEL` |
| 火山引擎(免费试用) | `VOLCENGINE_FREE_API_KEY`、`VOLCENGINE_FREE_BASE_URL`、`VOLCENGINE_FREE_MODEL` |
| 豆包语音(云端语音) | `VOLCENGINE_TTS_API_KEY` |
| Anthropic | `ANTHROPIC_API_KEY`、`ANTHROPIC_BASE_URL`、`ANTHROPIC_MODEL` |

View File

@@ -24,6 +24,7 @@ AI settings, connection tests, model lists and prompt settings are admin-only. T
| StepFun | API key (Step Plan recommended) | Defaults to the Step Plan URL `https://api.stepfun.com/step_plan/v1`; pay-as-you-go keys use `https://api.stepfun.com/v1`, international `https://api.stepfun.ai/v1`; code default `step-5-preview` |
| Volcengine Doubao | API key (pay-as-you-go; with a plan subscription, choose the matching plan channel) | Defaults to `https://ark.cn-beijing.volces.com/api/v3`; international `https://ark.ap-southeast.bytepluses.com/api/v3`; code default `doubao-seed-2-1-lite-260915` |
| Volcengine Agent Plan | Dedicated Agent Plan API key | Defaults to `https://ark.cn-beijing.volces.com/api/plan/v3`; code default `doubao-seed-2-1-pro-260628`; the plan includes Doubao speech synthesis |
| Volcengine Coding Plan | Volcengine Ark API key | Defaults to `https://ark.cn-beijing.volces.com/api/coding/v3` (changing it to `/api/v3` is billed pay-as-you-go instead of the plan); code default `doubao-seed-2.1-lite`; the plan does not include speech synthesis |
| Volcengine (free trial) | Volcengine Ark API key | Defaults to `https://ark.cn-beijing.volces.com/api/v3`; uses the new-user [free inference quota](https://www.volcengine.com/docs/82379/1399514); with worry-free trial mode on, calls pause when it runs out, so you are never charged |
| Anthropic or compatible | API key, model | Defaults to `https://api.anthropic.com`; code default `claude-sonnet-5-5` |
| Azure OpenAI | API key, endpoint, deployment name | API version defaults to `2024-02-15-preview`; the model field is for display |
@@ -69,7 +70,7 @@ Animation narration is read by the browser's own voice (Web Speech) by default.
## Environment variables
`AI_PROVIDER` selects the provider. It defaults to `minimax` and accepts `minimax`, `minimax-code`, `glm`, `deepseek`, `kimi`, `qwen`, `stepfun`, `volcengine`, `volcengine-agent`, `volcengine-free`, `anthropic`, `azure`, `openai` and `gemini`.
`AI_PROVIDER` selects the provider. It defaults to `minimax` and accepts `minimax`, `minimax-code`, `glm`, `deepseek`, `kimi`, `qwen`, `stepfun`, `volcengine`, `volcengine-agent`, `volcengine-coding`, `volcengine-free`, `anthropic`, `azure`, `openai` and `gemini`.
| Provider | Variables |
| --- | --- |
@@ -82,6 +83,7 @@ Animation narration is read by the browser's own voice (Web Speech) by default.
| StepFun | `STEPFUN_API_KEY`, `STEPFUN_BASE_URL`, `STEPFUN_MODEL` |
| Volcengine Doubao | `VOLCENGINE_API_KEY`, `VOLCENGINE_BASE_URL`, `VOLCENGINE_MODEL` |
| Volcengine Agent Plan | `VOLCENGINE_AGENT_API_KEY`, `VOLCENGINE_AGENT_BASE_URL`, `VOLCENGINE_AGENT_MODEL` |
| Volcengine Coding Plan | `VOLCENGINE_CODING_API_KEY`, `VOLCENGINE_CODING_BASE_URL`, `VOLCENGINE_CODING_MODEL` |
| Volcengine (free trial) | `VOLCENGINE_FREE_API_KEY`, `VOLCENGINE_FREE_BASE_URL`, `VOLCENGINE_FREE_MODEL` |
| Doubao Speech (cloud voice) | `VOLCENGINE_TTS_API_KEY` |
| Anthropic | `ANTHROPIC_API_KEY`, `ANTHROPIC_BASE_URL`, `ANTHROPIC_MODEL` |

View File

@@ -44,6 +44,7 @@ const EXPECTED: Record<VendorProviderId, { baseUrl: string; model: string }> = {
stepfun: { baseUrl: 'https://api.stepfun.com/step_plan/v1', model: 'step-5-preview' },
volcengine: { baseUrl: 'https://ark.cn-beijing.volces.com/api/v3', model: 'doubao-seed-2-1-lite-260915' },
'volcengine-agent': { baseUrl: 'https://ark.cn-beijing.volces.com/api/plan/v3', model: 'doubao-seed-2-1-pro-260628' },
'volcengine-coding': { baseUrl: 'https://ark.cn-beijing.volces.com/api/coding/v3', model: 'doubao-seed-2.1-lite' },
'volcengine-free': { baseUrl: 'https://ark.cn-beijing.volces.com/api/v3', model: 'doubao-seed-2-1-lite-260915' },
};

View File

@@ -25,6 +25,7 @@ export function VendorSettings({ provider, value, onChange }: VendorSettingsProp
stepfun: t.settings?.ai?.stepfunBaseUrlHint,
volcengine: t.settings?.ai?.volcengineBaseUrlHint,
"volcengine-agent": t.settings?.ai?.volcengineAgentBaseUrlHint,
"volcengine-coding": t.settings?.ai?.volcengineCodingBaseUrlHint,
};
return (

View File

@@ -91,6 +91,16 @@ export const VENDOR_PRESETS = {
consoleUrl: 'https://console.volcengine.com/ark',
docs: { cn: 'https://ark.volcengine.com/region:cn-beijing/docs/82379/2160841?lang=zh' },
},
// 火山方舟 Coding Plan 套餐:专属地址 /api/coding/v3(用 /api/v3 不计入套餐,会按量计费),套餐不含语音合成
'volcengine-coding': {
name: '火山引擎 Coding Plan',
nameEn: 'Volcengine Coding Plan',
baseUrl: 'https://ark.cn-beijing.volces.com/api/coding/v3',
model: 'doubao-seed-2.1-lite',
envPrefix: 'VOLCENGINE_CODING',
consoleUrl: 'https://console.volcengine.com/ark',
docs: { cn: 'https://www.volcengine.com/docs/82379/1928261' },
},
// 同为火山方舟,面向新用户的免费推理额度:每个模型有免费 token,开启「安心体验模式」后额度用完自动暂停,不产生费用
'volcengine-free': {
name: '火山引擎(免费试用)',

View File

@@ -517,6 +517,7 @@ export const translations = {
stepfunBaseUrlHint: "The default is the Step Plan endpoint (recommended; the plan includes speech synthesis). For a pay-as-you-go key, enter https://api.stepfun.com/v1; for the international site, https://api.stepfun.ai/v1.",
volcengineBaseUrlHint: "This channel is pay-as-you-go. With an Agent Plan or Coding Plan subscription, choose the matching Volcengine plan channel instead (it uses the plan endpoint, so calls count toward the plan). For the international site (BytePlus ModelArk), enter https://ark.ap-southeast.bytepluses.com/api/v3.",
volcengineAgentBaseUrlHint: "Agent Plan endpoint. Use the plan's dedicated API key from the Agent Plan page in the Ark console; a regular Ark key does not work here. The plan includes Doubao speech synthesis, which can be chosen under Voice narration.",
volcengineCodingBaseUrlHint: "Coding Plan endpoint, used with your Ark API key. Do not change it to /api/v3: calls there do not count toward the plan and are billed pay-as-you-go. Coding Plan does not include speech synthesis; for cloud voice choose Volcengine Agent Plan, Doubao Speech or another provider under Voice narration.",
volcengineFree: {
title: "Free trial",
body: "New Volcengine accounts get a free inference quota for each model (500,000 tokens per model, per Volcengine's docs). Turn on worry-free trial mode under Activation Management in the Ark console: calls only use the free quota and pause when it is nearly used up, so you are never charged. To keep going afterwards, verify your identity and switch to the regular Volcengine channel.",
@@ -1767,6 +1768,7 @@ export const translations = {
stepfunBaseUrlHint: "默认为 Step Plan 套餐地址(推荐,套餐含语音合成);使用按量付费的 Key 时填写 https://api.stepfun.com/v1,国际站填写 https://api.stepfun.ai/v1。",
volcengineBaseUrlHint: "本渠道按量付费;订阅了 Agent Plan 或 Coding Plan 时请选择对应的火山引擎套餐渠道(使用套餐专属地址,计入套餐额度)。国际站(BytePlus ModelArk)填写 https://ark.ap-southeast.bytepluses.com/api/v3。",
volcengineAgentBaseUrlHint: "Agent Plan 专属地址。请使用方舟控制台 Agent Plan 管理页的专属 API Key,普通方舟 Key 不能用于此地址。套餐含豆包语音合成,可在「语音讲解」中选用。",
volcengineCodingBaseUrlHint: "Coding Plan 专属地址,使用方舟 API Key。不要改成 /api/v3:该地址不计入套餐额度,会按量计费。Coding Plan 不含语音合成,云端语音请在「语音讲解」中选择火山引擎 Agent Plan、豆包语音或其他渠道。",
volcengineFree: {
title: "免费试用",
body: "注册火山引擎即可获得每个模型的免费推理额度(官方文档为每个模型 50 万 tokens)。在火山方舟控制台的「开通管理」中开启「安心体验模式」后,调用只消耗免费额度,额度接近用完时自动暂停,不会产生费用。额度用完后如需继续使用,完成实名认证并改用「火山引擎 豆包」渠道。",