docs(frontend): 完善 OpenCode 配置说明

更新 API 密钥页面 OpenCode 配置提示信息:
- 补充支持 opencode.jsonc 后缀名
- 说明可使用默认 provider(openai/anthropic/google)或自定义 provider_id
- 说明 API Key 支持直接配置或通过 /connect 命令配置
- 保留"示例仅供参考,模型与选项可按需调整"的提示

配置文件路径:~/.config/opencode/opencode.json(或 opencode.jsonc)
This commit is contained in:
ianshaw
2026-01-12 11:17:47 -08:00
parent fe6a3f4267
commit ea699cbdc2
2 changed files with 2 additions and 2 deletions

View File

@@ -390,7 +390,7 @@ export default {
opencode: {
title: 'OpenCode Example',
subtitle: 'opencode.json',
hint: 'Config path: ~/.config/opencode/opencode.json (create if not exists). This is an example, adjust model and options as needed.',
hint: 'Config path: ~/.config/opencode/opencode.json (or opencode.jsonc), create if not exists. Use default providers (openai/anthropic/google) or custom provider_id. API Key can be configured directly or via /connect command. This is an example, adjust models and options as needed.',
},
},
customKeyLabel: 'Custom Key',

View File

@@ -387,7 +387,7 @@ export default {
opencode: {
title: 'OpenCode 配置示例',
subtitle: 'opencode.json',
hint: '配置文件路径:~/.config/opencode/opencode.json,不存在需手动创建。示例仅供参考,模型与选项可按需调整。',
hint: '配置文件路径:~/.config/opencode/opencode.json(或 opencode.jsonc不存在需手动创建。可使用默认 provideropenai/anthropic/google或自定义 provider_id。API Key 支持直接配置或通过客户端 /connect 命令配置。示例仅供参考,模型与选项可按需调整。',
},
},
customKeyLabel: '自定义密钥',