fix(channel): normalize telegram history for MiniMax

This commit is contained in:
Chummy 2026-02-20 01:06:07 +08:00
parent 7173045f1c
commit c5834b1077
2 changed files with 135 additions and 9 deletions

View file

@ -144,6 +144,11 @@ Optional:
- `MINIMAX_OAUTH_REGION=global` or `cn` (defaults by provider alias)
- `MINIMAX_OAUTH_CLIENT_ID` to override the default OAuth client id
Channel compatibility note:
- For MiniMax-backed channel conversations, runtime history is normalized to keep valid `user`/`assistant` turn order.
- Channel-specific delivery guidance (for example Telegram attachment markers) is merged into the leading system prompt instead of being appended as a trailing `system` turn.
## Qwen Code OAuth Setup (config.toml)
Set Qwen Code OAuth mode in config: