":{"message":"分组 default 下模型 gpt-3.5-turbo 无可用渠道(distributor) (request id: 20261...
错误信息
https://api.codingplanx.ai/v1/chat/completions 返回 HTTP 503:{"error":{"message":"分组 default 下模型 gpt-3.5-turbo 无可用渠道(distributor) (request id: 20261024122656891906863oHRCXiKm)","type":"new_api_error","param":"","code":null}}
AI 解决方案
🔍 报错分析
1. 🌐 错误翻译
原文:{"error":{"message":"分组 default 下模型 gpt-3.5-turbo 无可用渠道(distributor) (request id: 20261024122656891906863oHRCXiKm)","type":"new_api_error","param":"","code":null}}
译文:{"error":{"message":"在 default 分组下,gpt-3.5-turbo 模型没有可用的渠道(distributor)(请求ID:20261024122656891906863oHRCXiKm)","type":"new_api_error","param":"","code":null}}
2. 🎯 原因分析
default分组下没有配置或激活 gpt-3.5-turbo 模型的可用渠道,导致请求无法被路由转发。3. 💡 解决方案
该错误由服务端配置异常导致,客户端无需修改代码,建议按以下步骤处理:
- 稍后重试请求,可能是渠道临时过载或正在进行维护
- 联系API平台管理员,确认
default分组下gpt-3.5-turbo的渠道配置是否启用 - 若渠道确实不可用,可临时更换为其他可用模型(如
gpt-4、deepseek-chat等)
临时更换模型示例代码:
const response = await fetch('https://api.codingplanx.ai/v1/chat/completions', {
method: 'POST',
headers: {
'Authorization': 'Bearer YOUR_API_KEY',
'Content-Type': 'application/json'
},
body: JSON.stringify({
model: 'gpt-4', // 替换为平台已配置可用渠道的模型
messages: [{ role: 'user', content: '你好' }]
})
});