diff --git a/astrbot/core/config/default.py b/astrbot/core/config/default.py index 6156601248..f19f8339db 100644 --- a/astrbot/core/config/default.py +++ b/astrbot/core/config/default.py @@ -1766,7 +1766,7 @@ "api_key": "", "api_base": "https://api.minimax.chat/v1/t2a_v2", "minimax-group-id": "", - "model": "speech-02-turbo", + "model": "speech-2.8-hd", "minimax-langboost": "auto", "minimax-voice-speed": 1.0, "minimax-voice-vol": 1.0, diff --git a/tests/unit/test_config.py b/tests/unit/test_config.py index 56eebade06..e71f387d15 100644 --- a/tests/unit/test_config.py +++ b/tests/unit/test_config.py @@ -6,7 +6,7 @@ import pytest from astrbot.core.config.astrbot_config import AstrBotConfig, RateLimitStrategy -from astrbot.core.config.default import DEFAULT_VALUE_MAP +from astrbot.core.config.default import CONFIG_METADATA_2, DEFAULT_VALUE_MAP from astrbot.core.config.i18n_utils import ConfigMetadataI18n from astrbot.core.utils.auth_password import ( DEFAULT_DASHBOARD_PASSWORD, @@ -43,6 +43,15 @@ def minimal_default_config(): } +def test_minimax_tts_default_model_is_speech_28_hd(): + """MiniMax TTS should default to the current HD speech model.""" + provider_sources = CONFIG_METADATA_2["provider_group"]["metadata"]["provider"][ + "config_template" + ] + + assert provider_sources["MiniMax TTS(API)"]["model"] == "speech-2.8-hd" + + class TestRateLimitStrategy: """Tests for RateLimitStrategy enum."""