chore(docs): i18n sync (#15417)
This commit is contained in:
parent
971bd30516
commit
e1e18c7abd
174 changed files with 6358 additions and 4392 deletions
|
|
@ -558,6 +558,7 @@ OpenCode 可以通过环境变量进行配置。
|
|||
| `OPENCODE_AUTO_SHARE` | boolean | 自动分享会话 |
|
||||
| `OPENCODE_GIT_BASH_PATH` | string | Windows 上 Git Bash 可执行文件的路径 |
|
||||
| `OPENCODE_CONFIG` | string | 配置文件路径 |
|
||||
| `OPENCODE_TUI_CONFIG` | string | TUI 配置文件路径 |
|
||||
| `OPENCODE_CONFIG_DIR` | string | 配置目录路径 |
|
||||
| `OPENCODE_CONFIG_CONTENT` | string | 内联 JSON 配置内容 |
|
||||
| `OPENCODE_DISABLE_AUTOUPDATE` | boolean | 禁用自动更新检查 |
|
||||
|
|
|
|||
|
|
@ -14,10 +14,11 @@ OpenCode 支持 **JSON** 和 **JSONC**(带注释的 JSON)格式。
|
|||
```jsonc title="opencode.jsonc"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
// Theme configuration
|
||||
"theme": "opencode",
|
||||
"model": "anthropic/claude-sonnet-4-5",
|
||||
"autoupdate": true,
|
||||
"server": {
|
||||
"port": 4096,
|
||||
},
|
||||
}
|
||||
```
|
||||
|
||||
|
|
@ -33,7 +34,7 @@ OpenCode 支持 **JSON** 和 **JSONC**(带注释的 JSON)格式。
|
|||
|
||||
配置文件是合并在一起的,而不是被替换。来自以下配置位置的设置会被合并。后面的配置仅在键冲突时覆盖前面的配置。所有配置中的非冲突设置都会被保留。
|
||||
|
||||
例如,如果您的全局配置设置了 `theme: "opencode"` 和 `autoupdate: true`,而您的项目配置设置了 `model: "anthropic/claude-sonnet-4-5"`,则最终配置将包含所有三个设置。
|
||||
例如,如果您的全局配置设置了 `autoupdate: true`,而您的项目配置设置了 `model: "anthropic/claude-sonnet-4-5"`,则最终配置将包含这两个设置。
|
||||
|
||||
---
|
||||
|
||||
|
|
|
|||
|
|
@ -3,11 +3,11 @@ title: 快捷键
|
|||
description: 自定义您的快捷键。
|
||||
---
|
||||
|
||||
OpenCode 提供了一系列快捷键,您可以通过 OpenCode 配置进行自定义。
|
||||
OpenCode 提供了一系列快捷键,您可以通过 `tui.json` 进行自定义。
|
||||
|
||||
```json title="opencode.json"
|
||||
```json title="tui.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"$schema": "https://opencode.ai/tui.json",
|
||||
"keybinds": {
|
||||
"leader": "ctrl+x",
|
||||
"app_exit": "ctrl+c,ctrl+d,<leader>q",
|
||||
|
|
@ -117,11 +117,11 @@ OpenCode 的大多数快捷键使用 `leader`(前导键)。这可以避免
|
|||
|
||||
## 禁用快捷键
|
||||
|
||||
您可以通过在配置中将对应的键值设置为 "none" 来禁用某个快捷键。
|
||||
您可以通过将键值添加到 `tui.json` 并设置为 "none" 来禁用某个快捷键。
|
||||
|
||||
```json title="opencode.json"
|
||||
```json title="tui.json"
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"$schema": "https://opencode.ai/tui.json",
|
||||
"keybinds": {
|
||||
"session_compact": "none"
|
||||
}
|
||||
|
|
|
|||
|
|
@ -61,11 +61,11 @@ OpenCode 自带多个内置主题。
|
|||
|
||||
## 使用主题
|
||||
|
||||
您可以通过 `/theme` 命令调出主题选择界面来选择主题,也可以在[配置](/docs/config)文件中直接指定。
|
||||
您可以通过 `/theme` 命令调出主题选择界面来选择主题,也可以在 `tui.json` 文件中直接指定。
|
||||
|
||||
```json title="opencode.json" {3}
|
||||
```json title="tui.json" {3}
|
||||
{
|
||||
"$schema": "https://opencode.ai/config.json",
|
||||
"$schema": "https://opencode.ai/tui.json",
|
||||
"theme": "tokyonight"
|
||||
}
|
||||
```
|
||||
|
|
|
|||
|
|
@ -3,7 +3,7 @@ title: Zen
|
|||
description: 由 OpenCode 提供的精选模型列表。
|
||||
---
|
||||
|
||||
import config from "../../../../config.mjs"
|
||||
import config from "../../../config.mjs"
|
||||
export const console = config.console
|
||||
export const email = `mailto:${config.email}`
|
||||
|
||||
|
|
@ -55,6 +55,7 @@ OpenCode Zen 的工作方式与 OpenCode 中的任何其他提供商相同。
|
|||
|
||||
| 模型 | 模型 ID | 端点 | AI SDK 包 |
|
||||
| ------------------ | ------------------ | -------------------------------------------------- | --------------------------- |
|
||||
| GPT 5.3 Codex | gpt-5.3-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.2 | gpt-5.2 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.2 Codex | gpt-5.2-codex | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
| GPT 5.1 | gpt-5.1 | `https://opencode.ai/zen/v1/responses` | `@ai-sdk/openai` |
|
||||
|
|
@ -79,11 +80,9 @@ OpenCode Zen 的工作方式与 OpenCode 中的任何其他提供商相同。
|
|||
| MiniMax M2.5 Free | minimax-m2.5-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| MiniMax M2.1 | minimax-m2.1 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 5 | glm-5 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 5 Free | glm-5-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.7 | glm-4.7 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| GLM 4.6 | glm-4.6 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 | kimi-k2.5 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2.5 Free | kimi-k2.5-free | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 Thinking | kimi-k2-thinking | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Kimi K2 | kimi-k2 | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
| Qwen3 Coder 480B | qwen3-coder | `https://opencode.ai/zen/v1/chat/completions` | `@ai-sdk/openai-compatible` |
|
||||
|
|
@ -113,11 +112,9 @@ https://opencode.ai/zen/v1/models
|
|||
| MiniMax M2.5 Free | 免费 | 免费 | 免费 | - |
|
||||
| MiniMax M2.5 | $0.30 | $1.20 | $0.06 | - |
|
||||
| MiniMax M2.1 | $0.30 | $1.20 | $0.10 | - |
|
||||
| GLM 5 Free | Free | Free | Free | - |
|
||||
| GLM 5 | $1.00 | $3.20 | $0.20 | - |
|
||||
| GLM 4.7 | $0.60 | $2.20 | $0.10 | - |
|
||||
| GLM 4.6 | $0.60 | $2.20 | $0.10 | - |
|
||||
| Kimi K2.5 Free | 免费 | 免费 | 免费 | - |
|
||||
| Kimi K2.5 | $0.60 | $3.00 | $0.08 | - |
|
||||
| Kimi K2 Thinking | $0.40 | $2.50 | - | - |
|
||||
| Kimi K2 | $0.40 | $2.50 | - | - |
|
||||
|
|
@ -139,6 +136,7 @@ https://opencode.ai/zen/v1/models
|
|||
| Gemini 3 Pro (≤ 200K tokens) | $2.00 | $12.00 | $0.20 | - |
|
||||
| Gemini 3 Pro (> 200K tokens) | $4.00 | $18.00 | $0.40 | - |
|
||||
| Gemini 3 Flash | $0.50 | $3.00 | $0.05 | - |
|
||||
| GPT 5.3 Codex | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT 5.2 | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT 5.2 Codex | $1.75 | $14.00 | $0.175 | - |
|
||||
| GPT 5.1 | $1.07 | $8.50 | $0.107 | - |
|
||||
|
|
@ -157,8 +155,6 @@ https://opencode.ai/zen/v1/models
|
|||
|
||||
免费模型说明:
|
||||
|
||||
- GLM 5 Free 在 OpenCode 上限时免费提供。团队正在利用这段时间收集反馈并改进模型。
|
||||
- Kimi K2.5 Free 在 OpenCode 上限时免费提供。团队正在利用这段时间收集反馈并改进模型。
|
||||
- MiniMax M2.5 Free 在 OpenCode 上限时免费提供。团队正在利用这段时间收集反馈并改进模型。
|
||||
- Big Pickle 是一个隐身模型,在 OpenCode 上限时免费提供。团队正在利用这段时间收集反馈并改进模型。
|
||||
|
||||
|
|
@ -187,8 +183,6 @@ https://opencode.ai/zen/v1/models
|
|||
我们所有的模型都托管在美国。我们的提供商遵循零保留政策,不会将你的数据用于模型训练,但以下情况除外:
|
||||
|
||||
- Big Pickle:在免费期间,收集的数据可能会被用于改进模型。
|
||||
- GLM 5 Free:在免费期间,收集的数据可能会被用于改进模型。
|
||||
- Kimi K2.5 Free:在免费期间,收集的数据可能会被用于改进模型。
|
||||
- MiniMax M2.5 Free:在免费期间,收集的数据可能会被用于改进模型。
|
||||
- OpenAI API:请求会根据 [OpenAI 数据政策](https://platform.openai.com/docs/guides/your-data)保留 30 天。
|
||||
- Anthropic API:请求会根据 [Anthropic 数据政策](https://docs.anthropic.com/en/docs/claude-code/data-usage)保留 30 天。
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue