":{"code":"","message":"所有令牌分组 default 下对于模型 sora-2-hd-10s-chat 均无可用渠道,请更换分组尝试 (...
🚨 错误信息
{"error":{"code":"","message":"所有令牌分组 default 下对于模型 sora-2-hd-10s-chat 均无可用渠道,请更换分组尝试 (request id: 20260121165009908337212C7JKiuLL)","type":"rix_api_error"}}
🤖 AI解决方案
代码报错分析报告
错误翻译
原文:All tokens under default group have no available channels for model sora-2-hd-10s-chat
译文:默认分组下的所有令牌对于模型 sora-2-hd-10s-chat 均无可用渠道
原因分析
这是一个API服务调用失败的错误,根本原因是:
sora-2-hd-10s-chat 模型在当前的分组配置中无可用服务渠道default 分组下的所有令牌都无法访问该模型发生位置:在调用DMXAPI平台的AI模型接口时,请求被服务端拒绝
解决方案
方案1:更换模型分组(推荐)
python
原来的代码可能是这样调用的:
response = dmxapi.chat.completions.create(
model="sora-2-hd-10s-chat",
messages=[{"role": "user", "content": "你的问题"}]
)
修改为指定其他分组:
response = dmxapi.chat.completions.create(
model="sora-2-hd-10s-chat",
messages=[{"role": "user", "content": "你的问题"}],
# 添加分组参数(根据您的平台配置)
group="other_group_name" # 替换为您的其他可用分组名
)
方案2:切换为可用模型
python
或者更换为其他可用的模型:
response = dmxapi.chat.completions.create(
model="gpt-3.5-turbo", # 或其他在default分组下可用的模型
messages=[{"role": "user", "content": "你的问题"}]
)
方案3:检查并更新令牌配置
default 分组的令牌配置sora-2-hd-10s-chat 模型的访问权限️ 预防措施
- 创建不同的分组用于不同的模型或用途
- 在代码中根据功能需求动态选择合适的分组
- 定期检查各分组的可用模型列表
python
# 在调用API前,可以先检查模型可用性
def check_model_availability(api_client, model_name, group="default"):
try:
# 尝试一个简单的测试请求
test_response = api_client.chat.completions.create(
model=model_name,
messages=[{"role": "user", "content": "test"}],
max_tokens=1
)
return True
except Exception as e:
print(f"模型 {model_name} 在分组 {group} 下不可用: {e}")
return False
- 记录所有API请求的响应状态
- 设置告警机制,当特定模型不可用时及时通知
- 定期审查API使用报告,了解各模型的可用性情况
---
请求ID: 20260121165009908337212C7JKiuLL
错误类型: rix_api_error
建议操作: 优先尝试切换到其他可用分组,或联系平台技术支持确认该模型的服务状态。