File tree Expand file tree Collapse file tree 1 file changed +11
-3
lines changed
astrbot/core/provider/sources Expand file tree Collapse file tree 1 file changed +11
-3
lines changed Original file line number Diff line number Diff line change 1+ from astrbot import logger
12from astrbot .core .provider .sources .anthropic_source import ProviderAnthropic
23
34from ..register import register_provider_adapter
45
56MINIMAX_TOKEN_PLAN_MODELS = [
67 "MiniMax-M2.7" ,
8+ "MiniMax-M2.7-highspeed" ,
79 "MiniMax-M2.5" ,
10+ "MiniMax-M2.5-highspeed" ,
811 "MiniMax-M2.1" ,
12+ "MiniMax-M2.1-highspeed" ,
913 "MiniMax-M2" ,
1014]
1115
@@ -43,9 +47,13 @@ def __init__(
4347
4448 configured_model = provider_config .get ("model" , "MiniMax-M2.7" )
4549 if configured_model not in MINIMAX_TOKEN_PLAN_MODELS :
46- raise ValueError (
47- f"Unsupported model: { configured_model !r} . "
48- f"Supported models: { ', ' .join (MINIMAX_TOKEN_PLAN_MODELS )} "
50+ logger .warning (
51+ f"Configured model { configured_model !r} is not in the known "
52+ f"Token Plan model list "
53+ f"({ ', ' .join (MINIMAX_TOKEN_PLAN_MODELS )} ). "
54+ f"The model may still work if your plan supports it. "
55+ f"If you encounter errors, please check your plan's "
56+ f"model availability."
4957 )
5058
5159 self .set_model (configured_model )
You can’t perform that action at this time.
0 commit comments