@inference/cli 0.0.20-beta.318 → 0.0.20-beta.321
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 +23 -2
- package/package.json +5 -5
package/README.md
CHANGED
|
@@ -119,10 +119,31 @@ inf dataset download <id> # Download a dataset (-o output path)
|
|
|
119
119
|
### Inferences
|
|
120
120
|
|
|
121
121
|
```bash
|
|
122
|
-
inf inference list # List
|
|
123
|
-
inf inference
|
|
122
|
+
inf inference list # List and filter inferences
|
|
123
|
+
inf inference facets # Probe valid filter values + full filter reference
|
|
124
|
+
inf inference get <id> # Get the full stored request + response (method, path, headers, bodies)
|
|
125
|
+
|
|
126
|
+
# Search / sort (no need to hardcode filter values — discover them with `facets`):
|
|
127
|
+
inf inference list --sort input_tokens --order desc --limit 50 # largest prompts first
|
|
128
|
+
inf inference list --filter inputTokens>39000 # numeric filter
|
|
129
|
+
inf inference list --model my-model --status 200 --range 7d # array + time filters
|
|
130
|
+
inf inference list --metadata user_id=abc123 # metadata filter
|
|
131
|
+
|
|
132
|
+
# Paginate from a script — JSON output includes nextCursor:
|
|
133
|
+
cursor=$(inf --json inference list --sort input_tokens --order desc | jq -r '.nextCursor')
|
|
134
|
+
inf --json inference list --sort input_tokens --order desc --cursor "$cursor"
|
|
135
|
+
|
|
136
|
+
# Fetch the complete bodies for scripting / archiving:
|
|
137
|
+
inf --json inference get <id> # Full payload as clean JSON (pipe to jq)
|
|
138
|
+
inf --json inference get <id> | jq '.response.body' # Just the response body
|
|
139
|
+
inf inference get <id> --response --body # Raw response body (no decoration)
|
|
140
|
+
inf inference get <id> --request --body -o req.json # Dump the raw request body to a file
|
|
141
|
+
inf --json inference get <id> -o dump.json # Save the full {request,response} payload
|
|
124
142
|
```
|
|
125
143
|
|
|
144
|
+
The full bodies are returned only when payload storage was enabled for the
|
|
145
|
+
request — otherwise `request`/`response` come back `null`.
|
|
146
|
+
|
|
126
147
|
### Traces
|
|
127
148
|
|
|
128
149
|
```bash
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@inference/cli",
|
|
3
|
-
"version": "0.0.20-beta.
|
|
3
|
+
"version": "0.0.20-beta.321",
|
|
4
4
|
"description": "Inference.net CLI - manage training runs, evals, datasets, and inferences from your terminal",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"license": "MIT",
|
|
@@ -26,10 +26,10 @@
|
|
|
26
26
|
"ai"
|
|
27
27
|
],
|
|
28
28
|
"optionalDependencies": {
|
|
29
|
-
"@inference/cli-darwin-arm64": "0.0.20-beta.
|
|
30
|
-
"@inference/cli-darwin-x64": "0.0.20-beta.
|
|
31
|
-
"@inference/cli-linux-x64": "0.0.20-beta.
|
|
32
|
-
"@inference/cli-linux-arm64": "0.0.20-beta.
|
|
29
|
+
"@inference/cli-darwin-arm64": "0.0.20-beta.321",
|
|
30
|
+
"@inference/cli-darwin-x64": "0.0.20-beta.321",
|
|
31
|
+
"@inference/cli-linux-x64": "0.0.20-beta.321",
|
|
32
|
+
"@inference/cli-linux-arm64": "0.0.20-beta.321"
|
|
33
33
|
},
|
|
34
34
|
"scripts": {
|
|
35
35
|
"build": "bun run clean:bin && bun run build:cli",
|