@almyty/models 1.5.1 → 1.5.3
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 +13 -12
- package/dist/index.js +4 -3
- package/package.json +2 -2
package/README.md
CHANGED
|
@@ -5,8 +5,9 @@ router may pick and **why not** when it may not, what a routing policy would
|
|
|
5
5
|
choose right now, what everything costs, and where self-hosted weights run.
|
|
6
6
|
|
|
7
7
|
```sh
|
|
8
|
-
|
|
9
|
-
|
|
8
|
+
npm i -g @almyty/cli
|
|
9
|
+
almyty login
|
|
10
|
+
almyty models list
|
|
10
11
|
```
|
|
11
12
|
|
|
12
13
|
## What makes a model usable
|
|
@@ -58,7 +59,7 @@ lists. `sync` is the same import by hand.
|
|
|
58
59
|
same policy an `llm_call` node carries, and **calls nothing** — it plans.
|
|
59
60
|
|
|
60
61
|
```sh
|
|
61
|
-
|
|
62
|
+
almyty models route --objective cheapest --tier private_cloud \
|
|
62
63
|
--regions eu-central --needs tools --budget-headroom 500
|
|
63
64
|
```
|
|
64
65
|
|
|
@@ -112,9 +113,9 @@ run a model that already lives somewhere.
|
|
|
112
113
|
Naming the model is configuration, so it is the positional argument:
|
|
113
114
|
|
|
114
115
|
```sh
|
|
115
|
-
|
|
116
|
-
|
|
117
|
-
|
|
116
|
+
almyty models host hf://Qwen/Qwen3-0.6B@main --adapter huggingface-endpoints
|
|
117
|
+
almyty models host fireworks://accounts/acme/models/qwen3-tuned --adapter fireworks
|
|
118
|
+
almyty models host --model-version <id> --adapter modal --desired '{"replicas":1}'
|
|
118
119
|
```
|
|
119
120
|
|
|
120
121
|
An **artifact** reference points at bytes and is pinned, so the hosted model is
|
|
@@ -134,16 +135,16 @@ a secret as a flag value.
|
|
|
134
135
|
provider account once and name the connection.
|
|
135
136
|
|
|
136
137
|
```sh
|
|
137
|
-
|
|
138
|
-
|
|
138
|
+
almyty credentials add huggingface
|
|
139
|
+
almyty models host hf://Qwen/Qwen3-0.6B@main \
|
|
139
140
|
--adapter huggingface-endpoints --credential <connectionId>
|
|
140
141
|
```
|
|
141
142
|
|
|
142
143
|
Otherwise pass the object from a file or stdin:
|
|
143
144
|
|
|
144
145
|
```sh
|
|
145
|
-
|
|
146
|
-
cat hf.json |
|
|
146
|
+
almyty models host hf://Qwen/Qwen3-0.6B@main --adapter huggingface-endpoints --config-file hf.json
|
|
147
|
+
cat hf.json | almyty models host hf://Qwen/Qwen3-0.6B@main --adapter huggingface-endpoints --config-stdin
|
|
147
148
|
```
|
|
148
149
|
|
|
149
150
|
`--config` still works for the fields an adapter does **not** mark secret, and
|
|
@@ -173,7 +174,7 @@ says where a number came from: `feed:litellm`, `feed:openrouter`, `native`,
|
|
|
173
174
|
| 0 | success |
|
|
174
175
|
| 1 | unexpected error |
|
|
175
176
|
| 2 | usage error (bad flags, missing argument, unknown command) |
|
|
176
|
-
| 3 | not authenticated — run `
|
|
177
|
+
| 3 | not authenticated — run `almyty login` |
|
|
177
178
|
| 4 | not found |
|
|
178
179
|
| 5 | the operation ran and failed (a check that did not pass, a policy that resolves to nothing) |
|
|
179
180
|
|
|
@@ -188,6 +189,6 @@ turned into tools, served over MCP, A2A, UTCP and Agent Skills.
|
|
|
188
189
|
- Design notes: `docs/models.md` in the almyty repository
|
|
189
190
|
- Source: https://github.com/almyty-inc/almyty
|
|
190
191
|
|
|
191
|
-
Run `
|
|
192
|
+
Run `almyty models --help` for the full surface.
|
|
192
193
|
|
|
193
194
|
Apache-2.0 © Almyty Inc.
|
package/dist/index.js
CHANGED
|
@@ -398,10 +398,11 @@ export function unselectableReason(c) {
|
|
|
398
398
|
const err = c.lastValidationError ? `: ${c.lastValidationError}` : '';
|
|
399
399
|
if (c.validationStatus === 'failed')
|
|
400
400
|
return `the provider says this model is not available${err}`;
|
|
401
|
-
// A provider's models are usable once the provider's key check passes
|
|
402
|
-
//
|
|
401
|
+
// A provider's models are usable once the provider's key check passes,
|
|
402
|
+
// which is on the connection's page under Credentials; an endpoint with
|
|
403
|
+
// no provider row is checked on its own.
|
|
403
404
|
if (c.providerId)
|
|
404
|
-
return `waiting for its provider's key check${err} (check
|
|
405
|
+
return `waiting for its provider's key check${err} (check its connection under Credentials)`;
|
|
405
406
|
return `not checked yet${err} — run: almyty models validate ${c.id}`;
|
|
406
407
|
}
|
|
407
408
|
return 'the catalog does not consider it selectable';
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@almyty/models",
|
|
3
|
-
"version": "1.5.
|
|
3
|
+
"version": "1.5.3",
|
|
4
4
|
"publishConfig": {
|
|
5
5
|
"access": "public"
|
|
6
6
|
},
|
|
@@ -28,7 +28,7 @@
|
|
|
28
28
|
"author": "almyty",
|
|
29
29
|
"license": "Apache-2.0",
|
|
30
30
|
"dependencies": {
|
|
31
|
-
"@almyty/client": "^1.5.
|
|
31
|
+
"@almyty/client": "^1.5.2"
|
|
32
32
|
},
|
|
33
33
|
"devDependencies": {
|
|
34
34
|
"@types/node": "^25.4.0",
|