- endpoint:
https://mm-internal-cn.leonecloud.com - API Key:in create,「Model」Capabilityand.
- Model ID, and output:「Modellocalized example text」as.
in the<API_KEY> as LeoneCloud API Key.with when and field,.
OpenCode OpenAI Chat Completions.
file
in Item.opencode/opencode.json in and, provider<API_KEY>.default use DeepSeek; Model ID and Limit can use Model.
{
"$schema": "https://opencode.ai/config.json",
"model": "leonecloud/deepseek-v4-pro",
"provider": {
"leonecloud": {
"npm": "@ai-sdk/openai-compatible",
"name": "LeoneCloud (Chat Completions)",
"options": {
"baseURL": "https://mm-internal-cn.leonecloud.com/v1",
"apiKey": "<API_KEY>"
},
"models": {
"deepseek-v4-pro": {
"name": "DeepSeek V4 Pro",
"limit": {
"context": 200000,
"output": 65536
}
},
"deepseek-v4-flash": {
"name": "DeepSeek V4 Flash",
"limit": {
"context": 200000,
"output": 65536
}
}
}
}
}
}and Model
in Item execute:```bash
opencode
defaultModellocalized example text`model`, can as`leonecloud/deepseek-v4-flash`.provider localized example text`npm` use, Model ID must supported.