#8496 Unsupported model mimo-v2.6-flashhttps://api.xiaomimimo.com/v1/

36.235**3 Posted at: 20 days ago

Unsupported model mimo-v2.6-flash
https://api.xiaomimimo.com/v1/
{'model': ' mimo-v2.6-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 131072}
None:Traceback (most recent call last):
File "videotrans\translator\_openaicompat.py", line 89, in _item_task
File "videotrans\translator\_openaicompat.py", line 41, in _create_completion
File "openai\_utils\_utils.py", line 298, in wrapper
File "openai\resources\chat\completions\completions.py", line 1215, in create
File "openai\_base_client.py", line 1332, in post
File "openai\_base_client.py", line 1105, in request
openai.BadRequestError: Error code: 400 - {'error': {'code': '400', 'message': 'Unsupported model mimo-v2.6-flash'}}

The above exception was the direct cause of the following exception:

Traceback (most recent call last):
File "videotrans\util\TestSrtTrans.py", line 19, in run
File "videotrans\translator\_runner.py", line 71, in run
File "videotrans\translator\_base.py", line 82, in run
File "videotrans\translator\_base.py", line 165, in _run_srt
File "tenacity\__init__.py", line 338, in wrapped_f
File "tenacity\__init__.py", line 477, in call
File "tenacity\__init__.py", line 378, in iter
File "tenacity\__init__.py", line 400, in
File "concurrent\futures\_base.py", line 451, in result
File "concurrent\futures\_base.py", line 403, in __get_result
File "tenacity\__init__.py", line 480, in call
File "videotrans\translator\_openaicompat.py", line 100, in _item_task
videotrans.configure.excepts.StopTask: Unsupported model mimo-v2.6-flash
https://api.xiaomimimo.com/v1/
{'model': ' mimo-v2.6-flash', 'timeout': 300, 'temperature': 0.1, 'max_tokens': 131072}
None


=
system:Windows-10-10.0.26300-SP0
version:v4.17
frozen:True
language:zh
root_dir:D:/RuanJian/AiQing/PyVideoTrans

3 Replies

#1 DeepSeek reply at 20 days ago

直接原因是小米开放平台 API 返回 400 错误 Unsupported model,表示该模型名称不存在或你的账号未开通该模型的调用权限。

另外注意报错信息中模型名称为 ' mimo-v2.6-flash',前面带有一个空格,任何多余字符都会导致模型名无效。

解决步骤:

  1. 打开 菜单 → 翻译设置 → 小米 AI,检查「模型名称」输入框,删除模型名前后所有空格,确保纯为 mimo-v2.6-flash。
  2. 登录 小米 AI 开放平台,确认你的 API Key 对应账号确实有该模型的使用权限,并核对官方文档中该模型的确切名称(注意版本号和拼写)。
  3. 如果平台并未提供 mimo-v2.6-flash 这个模型,或该模型不支持文本翻译任务,请更换为平台实际支持的文本模型(例如知识库中明确提到的小米平台模型为 mimo-v2.5-asr,但它是语音识别模型,不可用于字幕翻译;字幕翻译请确认使用纯文本对话模型)。
  4. max_tokens 设置为 131072 也可能超出该模型上限,若更换模型后仍报错,请把 max_tokens 调低。

请勿在模型名中保留空格;若确认名称与权限都正确仍报错,则该模型本身不适用于字幕翻译,需换用其他渠道(如 DeepSeek / 智谱AI 等)。

请查阅相关文档:

#2 36.235**3 reply at 20 days ago

问题已经得到解决,感谢帮助。

#3 DeepSeek reply at 20 days ago

好的。如后续再遇到报错,请提供软件版本、操作系统及 logs 目录下最新日志底部约 30 行信息。

Thinking...
Post Your Reply
If you have more than 50 messages, you will no longer receive an automatic reply. Please ask a new question!
Open source and free maintenance is not easy. If this project is helpful to you, please consider making a small donation to help the project continue to maintain and update.

Dondate via ko-fi.com

Related resource