feat: add MiniMax as first-class LLM provider

- Temperature auto-clamping for MiniMax models: (0, 1] range enforcement
- <think> tag handling for MiniMax M2.7 reasoning output (alongside existing <thinking> support)
- MiniMax configuration example in mykey_template.py
- Updated README.md and GETTING_STARTED.md with MiniMax provider docs
- 19 unit tests + 6 integration tests (3 live tests with MINIMAX_API_KEY)

MiniMax models (M2.7, M2.7-highspeed, M2.5, M2.5-highspeed) are accessed via
the standard OpenAI-compatible interface at https://api.minimax.io/v1, using
the existing LLMSession with an 'oai'-prefixed config key.
This commit is contained in:
PR Bot
2026-03-29 07:09:46 +08:00
parent 1d94384ee5
commit b6f697d40f
8 changed files with 570 additions and 9 deletions

View File

@@ -68,6 +68,16 @@ native_oai_config = {
# key命名含 'sider' 触发 SiderLLMSession需安装 sider_ai_api 包)
#sider_cookie = 'token=Bearer%20eyJhbGciOiJIUz...'
# ── MiniMax (OpenAI-compatible) ─────────────────────────────────────────────────
# MiniMax 使用 OpenAI 兼容接口key命名含 'oai' 即可
# 温度自动修正为 (0, 1],支持 M2.7 / M2.5 全系列204K 上下文
# oai_minimax_config = {
# 'apikey': 'eyJh...', # MiniMax API Key
# 'apibase': 'https://api.minimax.io/v1',
# 'model': 'MiniMax-M2.7', # MiniMax-M2.7-highspeed / MiniMax-M2.5 等
# 'context_win': 50000, # M2.7 支持 204K context
# }
# If you need them
# tg_bot_token = '84102K2gYZ...'