Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion astrbot/core/config/default.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down
11 changes: 10 additions & 1 deletion tests/unit/test_config.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand Down Expand Up @@ -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."""

Expand Down
Loading