Skip to content

[Bug]MiMo-V2-TTS、MiMo-V2-Omni模型无法被正确设置为语音合成/语音识别提供商 #6594

@HosisoraLing

Description

@HosisoraLing

What happened / 发生了什么

MiMo-V2-Omni模型无法作为语音识别提供商使用,MiMo-V2-TTS无法作为语音合成供应商使用。根据MiMo官方文档,这两个模型均使用https://api.xiaomimimo.com/v1/chat/completions/为API_URL,可能由于添加语音识别/合成供应商时的自动补全URL导致这两个模型无法跑通。我已尝试将mimo-v2-tts添加为对话模型,但测试联通时报错Error code: 400 - {'error': {'code': '400', 'message': 'Param Incorrect', 'param': 'messages must contain an assistant role for TTS model', 'type': ''}}。希望为mimo提供适配。

Reproduce / 如何复现?

1、添加mimo-v2-tts为语音合成提供商,使用openai_tts预设,base_url设为https://api.xiaomimimo.com/v1/
2、测试不通过
3、添加mimo-v2-omni为语音识别提供商,使用whisper_api预设,base_url设为https://api.xiaomimimo.com/v1/
4、测试不通过

AstrBot version, deployment method (e.g., Windows Docker Desktop deployment), provider used, and messaging platform used. / AstrBot 版本、部署方式(如 Windows Docker Desktop 部署)、使用的提供商、使用的消息平台适配器

Ubuntu2404 Docker 部署

OS

Linux

Logs / 报错日志

[2026-03-19 10:07:51.550] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo/mimo-v2-tts (ID: mimo/mimo-v2-tts) is unavailable. Error: Error code: 400 - {'error': {'code': '400', 'message': 'Param Incorrect', 'param': 'messages must contain an assistant role for TTS model', 'type': ''}}
[2026-03-19 10:07:55.912] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo/mimo-v2-tts
[2026-03-19 10:07:55.974] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo/mimo-v2-tts (ID: mimo/mimo-v2-tts) is unavailable. Error: Error code: 400 - {'error': {'code': '400', 'message': 'Param Incorrect', 'param': 'messages must contain an assistant role for TTS model', 'type': ''}}
[2026-03-19 10:08:31.810] [Core] [INFO] [provider.manager:718]: 终止 mimo/mimo-v2-tts 提供商适配器(7, 1, 1) ...
[2026-03-19 10:08:31.810] [Core] [INFO] [provider.manager:745]: mimo/mimo-v2-tts 提供商适配器已终止(6, 1, 1)
[2026-03-19 10:08:31.810] [Core] [INFO] [provider.manager:526]: 载入 openai_chat_completion(mimo/mimo-v2-tts) 服务提供商 ...
[2026-03-19 10:08:31.817] [Core] [INFO] [provider.manager:680]: providers in user's config: ['openai/mimo-v2-flash', 'siliconflow/THUDM/GLM-4.1V-9B-Thinking', 'whisper', 'openai_embedding', 'vllm_rerank', 'moonshot/kimi-k2.5', 'MiniMax/minimax-m2.5', 'mimo/mimo-v2-omni', 'mimo/mimo-v2-pro', 'mimo_tts', 'openai_tts', 'mimo/mimo-v2-tts']
[2026-03-19 10:08:32.991] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo/mimo-v2-tts
[2026-03-19 10:08:33.195] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo/mimo-v2-tts (ID: mimo/mimo-v2-tts) is unavailable. Error: Error code: 400 - {'error': {'code': '400', 'message': 'Param Incorrect', 'param': 'messages must contain an assistant role for TTS model', 'type': ''}}
[2026-03-19 10:08:35.352] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo/mimo-v2-tts
[2026-03-19 10:08:35.427] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo/mimo-v2-tts (ID: mimo/mimo-v2-tts) is unavailable. Error: Error code: 400 - {'error': {'code': '400', 'message': 'Param Incorrect', 'param': 'messages must contain an assistant role for TTS model', 'type': ''}}
[2026-03-19 10:08:52.399] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo_tts
[2026-03-19 10:08:52.548] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo_tts (ID: mimo_tts) is unavailable. Error: Error code: 406 - {'timestamp': 1773886132539, 'path': '/v1/chat/completions/audio/speech', 'status': 406, 'error': 'Not Acceptable', 'requestId': 'eb3732a9-90046'}
[2026-03-19 10:09:00.874] [Core] [INFO] [provider.manager:718]: 终止 mimo_tts 提供商适配器(7, 1, 1) ...
[2026-03-19 10:09:00.874] [Core] [INFO] [provider.manager:745]: mimo_tts 提供商适配器已终止(7, 1, 0)
[2026-03-19 10:09:00.874] [Core] [INFO] [provider.manager:526]: 载入 openai_tts_api(mimo_tts) 服务提供商 ...
[2026-03-19 10:09:00.880] [Core] [INFO] [provider.manager:680]: providers in user's config: ['openai/mimo-v2-flash', 'siliconflow/THUDM/GLM-4.1V-9B-Thinking', 'whisper', 'openai_embedding', 'vllm_rerank', 'moonshot/kimi-k2.5', 'MiniMax/minimax-m2.5', 'mimo/mimo-v2-omni', 'mimo/mimo-v2-pro', 'mimo_tts', 'openai_tts', 'mimo/mimo-v2-tts']
[2026-03-19 10:09:01.885] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo_tts
[2026-03-19 10:09:02.015] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo_tts (ID: mimo_tts) is unavailable. Error:

<title>404 Not Found</title>

404 Not Found


openresty [2026-03-19 10:09:02.540] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo_tts [2026-03-19 10:09:02.581] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo_tts (ID: mimo_tts) is unavailable. Error: <title>404 Not Found</title>

404 Not Found


openresty [2026-03-19 10:09:41.455] [Core] [INFO] [routes.config:307]: Saving config, is_core=True [2026-03-19 10:11:54.493] [Core] [INFO] [provider.manager:718]: 终止 whisper 提供商适配器(7, 1, 1) ... [2026-03-19 10:11:54.494] [Core] [INFO] [provider.manager:745]: whisper 提供商适配器已终止(7, 0, 1) [2026-03-19 10:11:54.494] [Core] [INFO] [provider.manager:526]: 载入 openai_whisper_api(whisper) 服务提供商 ... [2026-03-19 10:11:54.500] [Core] [INFO] [provider.manager:581]: 已选择 openai_whisper_api(whisper) 作为当前语音转文本提供商适配器。 [2026-03-19 10:11:54.501] [Core] [INFO] [provider.manager:680]: providers in user's config: ['openai/mimo-v2-flash', 'siliconflow/THUDM/GLM-4.1V-9B-Thinking', 'whisper', 'openai_embedding', 'vllm_rerank', 'moonshot/kimi-k2.5', 'MiniMax/minimax-m2.5', 'mimo/mimo-v2-omni', 'mimo/mimo-v2-pro', 'mimo_tts', 'openai_tts', 'mimo/mimo-v2-tts'] [2026-03-19 10:11:55.512] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=whisper [2026-03-19 10:11:55.645] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider whisper (ID: whisper) is unavailable. Error: <title>404 Not Found</title>

404 Not Found


openresty [2026-03-19 10:11:56.366] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=whisper [2026-03-19 10:11:56.405] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider whisper (ID: whisper) is unavailable. Error: <title>404 Not Found</title>

404 Not Found


openresty [2026-03-19 10:12:09.865] [Core] [INFO] [routes.config:307]: Saving config, is_core=True [2026-03-19 10:12:17.907] [Core] [INFO] [routes.config:307]: Saving config, is_core=True [2026-03-19 10:12:29.392] [Core] [INFO] [routes.config:307]: Saving config, is_core=True [2026-03-19 10:12:33.579] [Core] [INFO] [provider.manager:718]: 终止 MiniMax/minimax-m2.5 提供商适配器(7, 1, 1) ... [2026-03-19 10:12:33.580] [Core] [INFO] [provider.manager:745]: MiniMax/minimax-m2.5 提供商适配器已终止(6, 1, 1) [2026-03-19 10:12:33.581] [Core] [INFO] [provider.manager:770]: Provider ['MiniMax/minimax-m2.5'] 已从配置中删除。 [2026-03-19 10:12:33.581] [Core] [INFO] [routes.config:307]: Saving config, is_core=True [2026-03-19 10:15:42.909] [Core] [ERRO] [v4.20.1] [routes.config:1006]: Traceback (most recent call last): File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 101, in map_httpcore_exceptions yield File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 394, in handle_async_request resp = await self._pool.handle_async_request(req) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 256, in handle_async_request raise exc from None File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection_pool.py", line 236, in handle_async_request response = await connection.handle_async_request( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 101, in handle_async_request raise exc File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 78, in handle_async_request stream = await self._connect(request) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/httpcore/_async/connection.py", line 124, in _connect stream = await self._network_backend.connect_tcp(**kwargs) ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/auto.py", line 31, in connect_tcp return await self._backend.connect_tcp( ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/site-packages/httpcore/_backends/anyio.py", line 113, in connect_tcp with map_exceptions(exc_map): ^^^^^^^^^^^^^^^^^^^^^^^ File "/usr/local/lib/python3.12/contextlib.py", line 158, in __exit__ self.gen.throw(value) File "/usr/local/lib/python3.12/site-packages/httpcore/_exceptions.py", line 14, in map_exceptions raise to_exc(exc) from exc httpcore.ConnectTimeout

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

Traceback (most recent call last):
File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1604, in request
response = await self._client.send(
^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1629, in send
response = await self._send_handling_auth(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1657, in _send_handling_auth
response = await self._send_handling_redirects(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1694, in _send_handling_redirects
response = await self._send_single_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_client.py", line 1730, in _send_single_request
response = await transport.handle_async_request(request)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 393, in handle_async_request
with map_httpcore_exceptions():
^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/contextlib.py", line 158, in exit
self.gen.throw(value)
File "/usr/local/lib/python3.12/site-packages/httpx/_transports/default.py", line 118, in map_httpcore_exceptions
raise mapped_exc(message) from exc
httpx.ConnectTimeout

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

Traceback (most recent call last):
File "/AstrBot/astrbot/dashboard/routes/config.py", line 982, in get_provider_source_models
models = await inst.get_models()
^^^^^^^^^^^^^^^^^^^^^^^
File "/AstrBot/astrbot/core/provider/sources/openai_source.py", line 216, in get_models
models = await self.client.models.list()
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 308, in _get_page
return await self._client.request(self._page_cls, self._options)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.12/site-packages/openai/_base_client.py", line 1622, in request
raise APITimeoutError(request=request) from err
openai.APITimeoutError: Request timed out.
[2026-03-19 10:17:16.702] [Core] [INFO] [routes.config:743]: API call: /config/provider/check_one id=mimo_tts
[2026-03-19 10:17:16.833] [Core] [WARN] [v4.20.1] [routes.config:712]: Provider mimo_tts (ID: mimo_tts) is unavailable. Error:

<title>404 Not Found</title>

404 Not Found


openresty

Are you willing to submit a PR? / 你愿意提交 PR 吗?

  • Yes!

Code of Conduct

Metadata

Metadata

Assignees

No one assigned

    Labels

    area:providerThe bug / feature is about AI Provider, Models, LLM Agent, LLM Agent Runner.bugSomething isn't working

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions