chore: 配置文件格式从JSON改为JSONC

- 移除对特定JSON文件类型的编辑器关联设置。
- 将配置文件格式从 JSON 更改为 JSONC。
This commit is contained in:
2026-01-12 12:21:51 +08:00
parent dcf7c9868d
commit 80c2a77ed9
2 changed files with 0 additions and 3 deletions

77
opencode.jsonc Normal file
View File

@@ -0,0 +1,77 @@
{
"$schema": "https://opencode.ai/config.json",
"autoupdate": "notify",
"theme": "tokyonight",
"model": "gateway/claude-claude-4-5",
"small_model": "gateway/gemini-3-flash-preview",
"plugin": [
"@tarquinen/opencode-dcp@latest",
"@franlol/opencode-md-table-formatter@latest"
],
"mcp": {
"websearch": {
"type": "remote",
"url": "https://mcp.exa.ai/mcp?tools=web_search_exa"
},
"context7": {
"type": "remote",
"url": "https://mcp.context7.com/mcp"
},
"grep_app": {
"type": "remote",
"url": "https://mcp.grep.app"
}
},
"permission": {
"websearch": "deny" // 禁用内置的 websearch 工具
},
"provider": {
"gateway": {
"name": "Gateway",
"npm": "@ai-sdk/anthropic",
"options": {
"baseURL": "http://10.0.1.1:8317/v1",
"apiKey": "{env:CPA_API_KEY}"
},
"models": {
"claude-opus-4-5-thinking": {
"name": "Claude Opus 4.5 (Thinking)"
},
"claude-sonnet-4-5-thinking": {
"name": "Claude Sonnet 4.5 (Thinking)"
},
"claude-sonnet-4-5": {
"name": "Claude Sonnet 4.5"
},
"claude-haiku-4-5": {
"name": "Claude Haiku 4.5"
},
"gemini-3-pro-preview": {
"name": "Gemini 3 Pro"
},
"gemini-3-flash-preview": {
"name": "Gemini 3 Flash"
},
"gpt-5.2-codex": {
"name": "GPT-5.2-Codex"
},
"gpt-5.2": {
"name": "GPT-5.2"
}
}
},
"GLM Coding": {
"name": "Z.AI",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "https://api.z.ai/api/coding/paas/v4",
"apiKey": "{env:ZAI_API_KEY}"
},
"models": {
"glm-4.7": {
"name": "GLM-4.7"
}
}
}
}
}