opencode-provider-switch/examples/opencode_ocswitch.jsonc
apale7 cf3dcec399 refactor(cli): rename tool to ocswitch
Avoid collision with the existing Opswitch product while keeping the repository name as opencode-provider-switch.

This aligns the CLI, provider key, config paths, examples, and Trellis history under one public-facing name.
2026-04-17 21:43:21 +08:00

67 lines
1.7 KiB
Plaintext

{
// provider.ocswitch.models entries may include OpenCode-only metadata.
// ocswitch sync preserves same-name model objects and only manages the alias set.
"$schema": "https://opencode.ai/config.json",
"model": "ocswitch/gpt-5.4",
"small_model": "ocswitch/gpt-5.4-mini",
"provider": {
"ocswitch": {
"models": {
"gpt-5.4": {
"name": "gpt-5.4",
"limit": {
"context": 272000,
"output": 128000
},
"cost": {
"input": 1.75,
"output": 14,
"cache_read": 0.175,
"cache_write": 1.75
},
"options": {
"serviceTier": "priority",
"include": [
"reasoning.encrypted_content"
],
"parallel_tool_calls": true,
"store": false
},
"variants": {
"xhigh": {
"reasoningEffort": "xhigh",
"reasoningSummary": "auto"
},
"high": {
"reasoningEffort": "high",
"reasoningSummary": "auto"
},
"medium": {
"reasoningEffort": "medium",
"reasoningSummary": "auto"
},
"low": {
"reasoningEffort": "low",
"reasoningSummary": "auto"
}
}
},
"gpt-5.4-mini": {
"name": "gpt-5.4-mini"
}
},
"name": "OpenCode Provider Switch CLI",
"npm": "@ai-sdk/openai",
"options": {
"apiKey": "ocswitch-local",
"baseURL": "http://127.0.0.1:9982/v1",
"setCacheKey": true
}
}
},
"plugin": [
"@tarquinen/opencode-dcp@latest",
"oh-my-opencode-slim@latest"
]
}