@paean-ai/zero-cli 0.12.9 → 0.12.10
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 +21 -0
- package/dist/_cli.js +1484 -2476
- package/package.json +1 -1
package/README.md
CHANGED
|
@@ -33,6 +33,13 @@ zero login
|
|
|
33
33
|
zero provider set zai --api-key <YOUR_GLM_API_KEY>
|
|
34
34
|
```
|
|
35
35
|
|
|
36
|
+
Text-only gateways can declare their affected model IDs during setup:
|
|
37
|
+
|
|
38
|
+
```bash
|
|
39
|
+
zero provider set byok --api-key <KEY> --base-url <URL> \
|
|
40
|
+
--model dsv4-0731 --non-multimodal-models dsv4-0731
|
|
41
|
+
```
|
|
42
|
+
|
|
36
43
|
Then start a session:
|
|
37
44
|
|
|
38
45
|
```bash
|
|
@@ -224,10 +231,24 @@ Zero stores config in `~/.zero/`. Key environment variables:
|
|
|
224
231
|
| `ZERO_CLI_DEFAULT_OPUS_MODEL` | Model for the "opus" (flagship) tier |
|
|
225
232
|
| `ZERO_CLI_DEFAULT_SONNET_MODEL` | Model for the "sonnet" (standard) tier |
|
|
226
233
|
| `ZERO_CLI_DEFAULT_HAIKU_MODEL` | Model for the "haiku" (fast) tier |
|
|
234
|
+
| `ZERO_CLI_NON_MULTIMODAL_MODELS` | Comma-separated model IDs that must not receive image/document blocks; use `*` for every model on the configured third-party provider |
|
|
227
235
|
| `ZERO_PROVIDER_API_KEY` | Fallback key read by `zero provider set` in CI |
|
|
228
236
|
|
|
229
237
|
Legacy `ANTHROPIC_*` equivalents are still honored but the `ZERO_CLI_*` names are preferred.
|
|
230
238
|
|
|
239
|
+
For a text-only provider, declare the affected model IDs in user settings (or
|
|
240
|
+
the process environment). Zero then blocks visual `Read` calls, replaces any
|
|
241
|
+
image/document blocks before the API request, and tells the model to use text
|
|
242
|
+
extraction instead:
|
|
243
|
+
|
|
244
|
+
```json
|
|
245
|
+
{
|
|
246
|
+
"env": {
|
|
247
|
+
"ZERO_CLI_NON_MULTIMODAL_MODELS": "deepseek-v4-flash,dsv4-0731"
|
|
248
|
+
}
|
|
249
|
+
}
|
|
250
|
+
```
|
|
251
|
+
|
|
231
252
|
## License
|
|
232
253
|
|
|
233
254
|
MIT
|