feat: Add OpenCode CLI integration instructions to READMEs and provide an example configuration file.

This commit is contained in:
CJACK
2026-02-17 13:44:14 +08:00
parent 7dcddef91f
commit d0549c27c7
3 changed files with 54 additions and 0 deletions

22
opencode.json.example Normal file
View File

@@ -0,0 +1,22 @@
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"ds2api": {
"npm": "@ai-sdk/openai-compatible",
"name": "DS2API",
"options": {
"baseURL": "http://localhost:5001/v1",
"apiKey": "your-api-key"
},
"models": {
"deepseek-chat": {
"name": "DeepSeek Chat (DS2API)"
},
"deepseek-reasoner": {
"name": "DeepSeek Reasoner (DS2API)"
}
}
}
},
"model": "ds2api/deepseek-chat"
}