Skip to content

Commit 2c557e9

Browse files
committed
docs: add mmx text repl command documentation to README
1 parent b263dd3 commit 2c557e9

2 files changed

Lines changed: 28 additions & 0 deletions

File tree

‎README.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,27 @@ mmx quota
6767
### `mmx text`
6868

6969
```bash
70+
# One-shot chat
7071
mmx text chat --message "Write a poem"
7172
mmx text chat --model MiniMax-M2.7-highspeed --message "Hello" --stream
7273
mmx text chat --system "You are a coding assistant" --message "Fizzbuzz in Go"
7374
mmx text chat --message "user:Hi" --message "assistant:Hey!" --message "How are you?"
7475
cat messages.json | mmx text chat --messages-file - --output json
76+
77+
# Interactive multi-turn chat REPL
78+
mmx text repl
79+
mmx text repl --model MiniMax-M2.7-highspeed
80+
mmx text repl --system "You are a coding expert" --temperature 0.7
7581
```
7682

83+
`mmx text repl` starts an interactive multi-turn chat session with:
84+
85+
- **Automatic context** — conversation history tracked across turns
86+
- **Real-time slash suggestions** — type `/` to see all commands, filter as you type
87+
- **Visual input area** — bordered prompt keeps input and suggestions visually separated
88+
- **Slash commands**: `/exit`, `/clear`, `/system`, `/model`, `/save`, `/help`, `/history`
89+
- **Line editing**: arrow keys, Home/End, Ctrl+A/E/U/W, history navigation with ↑/↓
90+
7791
### `mmx image`
7892

7993
```bash

‎README_CN.md‎

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -67,13 +67,27 @@ mmx quota
6767
### `mmx text`
6868

6969
```bash
70+
# 单次对话
7071
mmx text chat --message "写一首诗"
7172
mmx text chat --model MiniMax-M2.7-highspeed --message "你好" --stream
7273
mmx text chat --system "你是编程助手" --message "用 Go 写 Fizzbuzz"
7374
mmx text chat --message "user:你好" --message "assistant:嗨!" --message "你叫什么名字?"
7475
cat messages.json | mmx text chat --messages-file - --output json
76+
77+
# 交互式多轮对话 REPL
78+
mmx text repl
79+
mmx text repl --model MiniMax-M2.7-highspeed
80+
mmx text repl --system "你是编程专家" --temperature 0.7
7581
```
7682

83+
`mmx text repl` 启动交互式多轮对话会话,功能包括:
84+
85+
- **自动上下文** — 对话历史跨轮次自动维护
86+
- **实时斜杠建议** — 输入 `/` 即可查看所有命令,随输入逐字母过滤
87+
- **可视化输入区** — 带边框的输入区域,建议列表显示在输入区外部
88+
- **斜杠命令**: `/exit`(退出)、`/clear`(清空历史)、`/system`(系统提示词)、`/model`(切换模型)、`/save`(保存对话)、`/help`(帮助)、`/history`(查看历史)
89+
- **行编辑**: 方向键、Home/End、Ctrl+A/E/U/W、↑/↓ 历史导航
90+
7791
### `mmx image`
7892

7993
```bash

0 commit comments

Comments
 (0)