[Bug]:升级之后 mimo认证失败 (HTTP 401)
Version line
v2 — Go rewrite (1.x), main-v2 (active development)
Exact version
1.8.1
What happened?
认证失败 (HTTP 401):服务端拒绝了你的 API key。可能是 key 错误或已过期,也可能是服务端出现瞬时鉴权/额度问题——已退避重试仍失败。请稍后再试,或检查 .env 中的密钥 / 运行 reasonix setup。 (MIMO_API_KEY)
升级之后mimo一直报错了,在claude里面正常,都是一样的key,但是这边不行,以前版本本来都行来着
Steps to reproduce
1.升级,使用mimo就出了,我的套餐是属于新加坡的, [[providers]] name = "mimo-token-plan" kind = "openai" base_url = "https://token-plan-sgp.xiaomimimo.com/v1" models = ["mimo-v2.5-pro", "mimo-v2.5"] default = "mimo-v2.5" api_key_env = "MIMO_API_KEY" context_window = 1048576 # tokens; compaction triggers near this limit price = { cache_hit = 0.02, input = 1, output = 2, currency = "¥" } # provider-wide fallback, per 1M tokens no_proxy = true # reach this base_url directly, never via the proxy
OS / platform
windows 11
Relevant logs or output
我的也是这个问题 提示
authentication failed for provider "deepseek-flash" (HTTP 401): DEEPSEEK_API_KEY is invalid or expired — update it (in .env or your environment) and retry, or run reasonix setup
可以刷新拉取到模型列表,但是只要用就报错,太奇怪了,claude code里面使用正常
我的也是这个问题 提示 authentication failed for provider "deepseek-flash" (HTTP 401): DEEPSEEK_API_KEY is invalid or expired — update it (in .env or your environment) and retry, or run
reasonix setup
我的deepseek正常,mimo异常,前面都好好的,用了半个月,今天不行了,key是好的
找到了这个Bug,在有一个项目的配置下面,他生成了reasonix.json的文件,这下面还有一组小米的模型provider,应该是给覆写了,那个链接是cn的,挺神奇的,这么看这个配置还有点乱,重新做了N遍配置才发现这个问题
Might be related to an OpenAI auth/config issue. npx ai-doctor can help identify API key issues and auth config problems.