Hướng dẫn tích hợp Opencode
Last updated
Tạo file opencode.json C:\Users\xxx\.config\opencode.json Copy bỏ vào Chỉ cần thay api-key và base-url ở phía dưới cùng
Last updated
{
"$schema": "https://opencode.ai/config.json",
"provider": {
"aishopacc": {
"models": {
"claude-opus-4-6-thinking": {
"limit": {
"context": 168000,
"output": 64000
},
"name": "Claude Opus 4 6 Thinking",
"options": {
"thinking": {
"budgetTokens": 8192,
"type": "enabled"
}
},
"reasoning": true,
"variants": {
"low": {
"thinkingConfig": {
"thinkingBudget": 8192
}
},
"max": {
"thinkingConfig": {
"thinkingBudget": 32768
}
}
}
},
"claude-sonnet-4-5": {
"limit": {
"context": 168000,
"output": 64000
},
"name": "Claude Sonnet 4 5"
},
"claude-sonnet-4-5-thinking": {
"limit": {
"context": 168000,
"output": 64000
},
"name": "Claude Sonnet 4 5 Thinking",
"options": {
"thinking": {
"budgetTokens": 8192,
"type": "enabled"
}
},
"reasoning": true,
"variants": {
"low": {
"thinkingConfig": {
"thinkingBudget": 8192
}
},
"max": {
"thinkingConfig": {
"thinkingBudget": 32768
}
}
}
}
},
"name": "Aishopacc",
"npm": "@ai-sdk/anthropic",
"options": {
"apiKey": "sk-xxx",
"baseURL": "https://xxx.aishopacc.live",
"includeUsage": true
}
}
}
}