mmx-cli 1.0.16 → 1.0.18
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +15 -2
- package/dist/index.d.ts +7 -4
- package/dist/mmx.mjs +270 -272
- package/dist/sdk.mjs +234 -50
- package/package.json +9 -1
package/README.md
CHANGED
|
@@ -68,7 +68,7 @@ mmx quota
|
|
|
68
68
|
|
|
69
69
|
```bash
|
|
70
70
|
mmx text chat --message "Write a poem"
|
|
71
|
-
mmx text chat --model MiniMax-
|
|
71
|
+
mmx text chat --model MiniMax-M3 --message "Hello" --stream
|
|
72
72
|
mmx text chat --system "You are a coding assistant" --message "Fizzbuzz in Go"
|
|
73
73
|
mmx text chat --message "user:Hi" --message "assistant:Hey!" --message "How are you?"
|
|
74
74
|
cat messages.json | mmx text chat --messages-file - --output json
|
|
@@ -130,6 +130,8 @@ mmx search "MiniMax AI"
|
|
|
130
130
|
mmx search query --q "latest news" --output json
|
|
131
131
|
```
|
|
132
132
|
|
|
133
|
+
> The `/v1/coding_plan/search` API returns at most 10 results per call and does not currently expose a pagination parameter (see #107). Refine your query if you need different results.
|
|
134
|
+
|
|
133
135
|
### `mmx auth`
|
|
134
136
|
|
|
135
137
|
```bash
|
|
@@ -156,13 +158,24 @@ Useful for CI/CD (`mmx auth login --api-key sk-xxxxx`), or pass per-command via
|
|
|
156
158
|
OAuth and API key are mutually exclusive — logging in with one clears the other.
|
|
157
159
|
Credential priority: `--api-key` flag > OAuth (config) > `api_key` (config).
|
|
158
160
|
|
|
161
|
+
### Environment variables
|
|
162
|
+
|
|
163
|
+
| Variable | Description |
|
|
164
|
+
|---|---|
|
|
165
|
+
| `MINIMAX_REGION` | `global` or `cn`. |
|
|
166
|
+
| `MINIMAX_BASE_URL` | Override the API base URL. |
|
|
167
|
+
| `MINIMAX_OUTPUT` | `text` or `json`. |
|
|
168
|
+
| `MINIMAX_TIMEOUT` | Request timeout in seconds. |
|
|
169
|
+
| `MINIMAX_VERBOSE` | `1` to enable verbose HTTP logging. |
|
|
170
|
+
| `MMX_CONFIG_DIR` | Directory containing the `config.json` file (default: `~/.mmx`). Set this when `mmx` runs from a subprocess, service, or CI job whose home directory differs from where you logged in. |
|
|
171
|
+
|
|
159
172
|
### `mmx config` · `mmx quota`
|
|
160
173
|
|
|
161
174
|
```bash
|
|
162
175
|
mmx quota
|
|
163
176
|
mmx config show
|
|
164
177
|
mmx config set --key region --value cn
|
|
165
|
-
mmx config set --key default-text-model --value MiniMax-
|
|
178
|
+
mmx config set --key default-text-model --value MiniMax-M3
|
|
166
179
|
mmx config export-schema | jq .
|
|
167
180
|
```
|
|
168
181
|
|
package/dist/index.d.ts
CHANGED
|
@@ -159,10 +159,9 @@ export interface SpeechRequest {
|
|
|
159
159
|
channel?: number;
|
|
160
160
|
};
|
|
161
161
|
language_boost?: string;
|
|
162
|
-
pronunciation_dict?:
|
|
163
|
-
tone: string;
|
|
164
|
-
|
|
165
|
-
}>;
|
|
162
|
+
pronunciation_dict?: {
|
|
163
|
+
tone: string[];
|
|
164
|
+
};
|
|
166
165
|
output_format?: "url" | "hex";
|
|
167
166
|
stream?: boolean;
|
|
168
167
|
subtitle_enable?: boolean;
|
|
@@ -248,6 +247,7 @@ export interface MusicRequest {
|
|
|
248
247
|
lyrics_optimizer?: boolean;
|
|
249
248
|
audio_url?: string;
|
|
250
249
|
audio_base64?: string;
|
|
250
|
+
cover_feature_id?: string;
|
|
251
251
|
seed?: number;
|
|
252
252
|
audio_setting?: {
|
|
253
253
|
format?: string;
|
|
@@ -287,9 +287,12 @@ export interface QuotaModelRemain {
|
|
|
287
287
|
current_weekly_total_count: number;
|
|
288
288
|
current_weekly_usage_count: number;
|
|
289
289
|
current_weekly_remaining_percent?: number;
|
|
290
|
+
current_interval_status?: number;
|
|
291
|
+
current_weekly_status?: number;
|
|
290
292
|
weekly_start_time: number;
|
|
291
293
|
weekly_end_time: number;
|
|
292
294
|
weekly_remains_time: number;
|
|
295
|
+
weekly_boost_permille?: number;
|
|
293
296
|
}
|
|
294
297
|
export interface FileUploadResponse {
|
|
295
298
|
base_resp: BaseResp;
|