70 lines
2.4 KiB
Markdown
70 lines
2.4 KiB
Markdown
我之前用的"MiniMax-M2.5",API 密钥是通用的;
|
||
现在我购买了Coding Plan的Max-极速版年度套餐,用的是"MiniMax-M2.5-highspeed",API密钥用的是这个Plan对应的API Key。
|
||
|
||
现在交流时,总会报一次错:
|
||
|
||
> HTTP 401 authentication_error: invalid api key (request_id: 05fd7cb261698f9b5a2106bc7948b378)
|
||
|
||
然后刷新页面,其实已经回答了。
|
||
|
||
需要检查一下日志,看这个是我们的配置问题,还是MiniMax平台的问题。
|
||
|
||
发现问题了!看配置:
|
||
|
||
1. **`minimax` provider** 有 API Key(看起来是旧的通用 Plan key)
|
||
2. **`minimax-cn` provider** 完全没有配置 API Key!
|
||
|
||
你的 `default_model` 是 `minimax/MiniMax-M2.5-highspeed`,用的是 `minimax` provider。问题在于:**配置的 API Key 是旧的**,不是 Coding Plan 的新 key。
|
||
|
||
fallback 配置是 `minimax-cn/MiniMax-M2.5`,但 `minimax-cn` 根本连 API Key 都没有。
|
||
|
||
**解决方案:** 需要更新 `minimax` provider 的 API Key 为你新购买的 Coding Plan key。
|
||
|
||
要我帮你更新配置吗?只需要告诉我新的 API Key 即可。
|
||
|
||
# 2
|
||
|
||
新的Key: `sk-cp-6co6v8Tehx-i1KBYILM0_2e5MSSlo0yxJHUve9WPm5pqufl6pAXu0_UB5RIGw9Z2U3tyVPli1cOj3o697to56anRtrHM86qlJbXFAGEHBd4DdQGuYVUKzbk`
|
||
|
||
另外,我已经买了年度套餐,Minimax中的model只保留`MiniMax-M2.5-highspeed`,其他都可以删掉。
|
||
|
||
帮我更新这个配置。重启相关的服务。
|
||
|
||
完成!✅
|
||
|
||
- 已更新 API Key 为新的 Coding Plan key
|
||
- 已删除其他模型,只保留 `MiniMax-M2.5-highspeed`
|
||
- Gateway 已重启,健康状态正常
|
||
|
||
现在可以试试再对话一次,应该不会再报 401 错误了。
|
||
|
||
---
|
||
|
||
你好!我是 Claw 🐾
|
||
|
||
我现在用的是 **MiniMax-M2.5-highspeed** 模型(MiniMax Coding Plan 年度套餐版)。有什么我可以帮你的吗?
|
||
|
||
# 3
|
||
|
||
我们这个会话没问题了。
|
||
|
||
但是其他会话还有401报错,用这个链接`https://openclaw.wantsong.cn/chat?session=agent%3Awantsong%3Amain`的讨论,每次还有。
|
||
这个怎么处理?
|
||
|
||
搞定!✅
|
||
|
||
**问题原因:** fallback 配置了 `minimax-cn/MiniMax-M2.5`,但 `minimax-cn` provider 没有 API Key,所以每次 fallback 尝试都会 401。
|
||
|
||
**已修复:** 移除 fallback,现在只使用 primary 模型 `minimax/MiniMax-M2.5-highspeed`。
|
||
|
||
Gateway 已重启,再试试那个会话应该没问题了。
|
||
|
||
# 4
|
||
|
||
这次看不到消息回复了。
|
||
|
||
# 5
|
||
|
||
我修复了Minimax的相关配置,原因是Provider应该只用`minimax-cn`,不用`minimax`
|
||
|