opencode配置cc中转

佬门,按教程配置的中转,怎么一直报错


是要中转站适配吗

2 个赞

{
“$schema”: “https://opencode.ai/config.json”,
“provider”: {
“packy-gemini”: {
“npm”: “@ai-sdk/openai-compatible”,
“name”: “PackyAPI GEMINI”,
“options”: {
“baseURL”: “https://api-slb.packyapi.com/v1”,
“apiKey”: “sk-”
},
“models”: {
“gemini-3-pro-high”: {
“name”: “gemini-3-pro-high”
}
}
},
“packy-claude”: {
“npm”: “@ai-sdk/anthropic”,
“name”: “PackyAPI CLAUDE”,
“options”: {
“baseURL”: “https://api-slb.packyapi.com/v1”,
“apiKey”: “sk-iEJ5mdghJ4qeHUtI9xVC6”
},
“models”: {
“claude-opus-4-5-20251101”: {
“name”: “claude-opus-4-5-20251101”
},
“claude-sonnet-4-5-20250929”: {
“name”: “claude-sonnet-4-5-20250929”
},
“claude-haiku-4-5-20251001”: {
“name”: “claude-haiku-4-5-20251001”
}
}
},
“openai”: {
“npm”: “@ai-sdk/openai”,
“name”: “OpenAI”,
“options”: {
“baseURL”: “https://api-slb.packyapi.com/v1”,
“apiKey”: “sk-AjENc9DV36DS4PbjE”
},
“models”: {
“gpt-5-pro”: {
“name”: “gpt-5-pro”
}
}
}
}
}

4 个赞

还是不行”
image

你还是直接找你的中转站问一下靠谱

已经解决了,谢谢

佬怎么解决的,我按照上面佬配置的,输入没反应

你要自己改成自己的地址把

好了,自己部署的 cch 中转,没更新版本 :sweat_smile: