{
"$schema": "https://opencode.ai/config.json",
"permission": {
"edit": "ask",
"bash": "ask"
},
"model": "my-api/claude-opus-4-6",
"provider": {
"my-api": {
"npm": "@ai-sdk/anthropic",
"name": "我的自定义渠道",
"options": {
"baseURL": "https://sudocode.run/v1"
},
"models": {
"claude-opus-4-6": {
"name": "claude-opus-4-6",
"tool_call": true,
"attachment": true,
"limit": {
"context": 204800,
"output": 65535
},
"modalities": {
"input": [
"text",
"image",
"pdf"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 24576
}
}
},
"claude-sonnet-4-6": {
"name": "claude-sonnet-4-6",
"tool_call": true,
"attachment": true,
"limit": {
"context": 204800,
"output": 65535
},
"modalities": {
"input": [
"text",
"image",
"pdf"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 24576
}
}
},
"claude-haiku-4-5-20251001": {
"name": "claude-haiku-4-5-20251001",
"tool_call": true,
"attachment": true,
"limit": {
"context": 204800,
"output": 65535
},
"modalities": {
"input": [
"text",
"image",
"pdf"
],
"output": [
"text"
]
},
"options": {
"thinking": {
"type": "enabled",
"budgetTokens": 24576
}
}
}
}
}
}
}