mirror of
https://github.com/CJackHwang/ds2api.git
synced 2026-05-05 00:45:29 +08:00
feat: Add OpenCode CLI integration instructions to READMEs and provide an example configuration file.
This commit is contained in:
22
opencode.json.example
Normal file
22
opencode.json.example
Normal 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"
|
||||
}
|
||||
Reference in New Issue
Block a user