chore: migrate config files to jsonc

This commit is contained in:
2026-03-18 09:57:50 +08:00
parent cdabb9fd16
commit d9f89b3b28
3 changed files with 1 additions and 1 deletions

67
opencode.jsonc Normal file
View File

@@ -0,0 +1,67 @@
{
"$schema": "https://opencode.ai/config.json",
"plugin": ["oh-my-opencode@latest"],
"autoupdate": false,
"model": "openai/gpt-5.4",
"small_model": "litellm/minimax-m2.5",
"provider": {
"openai": {
"npm": "@ai-sdk/openai",
"options": {
"baseURL": "{env:LITELLM_BASE_URL}/v1",
"apiKey": "{env:LITELLM_API_KEY}"
},
"models": {
"gpt-5.4": {
"name": "GPT-5.4",
"reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 1050000, "input": 922000, "output": 128000 }
},
"gpt-5.3-codex": {
"name": "GPT-5.3-Codex",
"reasoning": true,
"modalities": { "input": ["text", "image", "pdf"], "output": ["text"] },
"limit": { "context": 400000, "input": 272000, "output": 128000 }
},
"gpt-5.4-mini": {
"name": "GPT-5.4 mini",
"reasoning": true,
"modalities": { "input": ["text", "image"], "output": ["text"] },
"limit": { "context": 400000, "input": 272000, "output": 128000 }
}
}
},
"litellm": {
"name": "LiteLLM",
"npm": "@ai-sdk/openai-compatible",
"options": {
"baseURL": "{env:LITELLM_BASE_URL}/v1",
"apiKey": "{env:LITELLM_API_KEY}"
},
"models": {
"glm-5": {
"name": "GLM-5",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
},
"kimi-k2.5": {
"name": "Kimi K2.5",
"reasoning": true,
"modalities": { "input": ["text", "image", "video"], "output": ["text"] },
"limit": { "context": 262144, "output": 262144 }
},
"minimax-m2.5": {
"name": "MiniMax M2.5",
"reasoning": true,
"modalities": { "input": ["text"], "output": ["text"] },
"limit": { "context": 204800, "output": 131072 }
}
}
}
},
"experimental": {
"disable_paste_summary": true
}
}