@x12i/ai-profiles 1.2.0 → 1.2.2

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 CHANGED
@@ -133,7 +133,7 @@ const modelConfig = {
133
133
  | `cheap` | Remote | **`default`** | `gemini-2.5-flash-lite` |
134
134
  | `fast` | Remote | **`default`** | `gpt-5.4-mini` |
135
135
  | `balanced` | Remote | **`default`** | `gpt-5.4` |
136
- | `deep` | Remote | **`reasoning`** | `claude-sonnet-4-6` |
136
+ | `deep` | Remote | **`reasoning`** | `claude-sonnet-4.6` |
137
137
  | `pro` | Remote | **`default`** | `gpt-5.5` |
138
138
  | `local` / `llama_cpp_gguf` | CPU | **`cpu`** | `funcx:llama-cpp:gguf` |
139
139
  | `local` / `transformersjs_default` | CPU | **`cpu`** | `Xenova/distilbart-cnn-6-6` |
@@ -142,6 +142,10 @@ Legacy mode shortcuts: `weak` → local, `normal` → balanced, `strong` → pro
142
142
 
143
143
  Local CPU choices expose FuncX env keys in `resolved.metadata` (e.g. `LLAMA_CPP_MODEL_PATH`, `TRANSFORMERS_JS_MODEL_ID`).
144
144
 
145
+ ### OpenRouter model ids
146
+
147
+ Remote profile choices use vendor-native `modelId` values (e.g. `gpt-5.4`, `gemini-2.5-flash-lite`). Anthropic version segments follow OpenRouter slugs (`claude-sonnet-4.6`, not `claude-sonnet-4-6`). `@x12i/ai-tools` resolves these to full OpenRouter slugs (`openai/gpt-5.4`) and remaps deprecated ids when the bundled catalog is stale.
148
+
145
149
  ## Tests
146
150
 
147
151
  ```bash
@@ -62,7 +62,7 @@
62
62
  "displayName": "Cheap but Safer",
63
63
  "description": "Use when cheap is required, but you want a stronger instruction-following model.",
64
64
  "provider": "anthropic",
65
- "modelId": "claude-haiku-4-5",
65
+ "modelId": "claude-haiku-4.5",
66
66
  "pricing": {
67
67
  "input": 1,
68
68
  "cacheWrite5m": 1.25,
@@ -137,7 +137,7 @@
137
137
  "displayName": "Quality Fast",
138
138
  "description": "Fast, but with stronger quality than the cheapest fast options.",
139
139
  "provider": "anthropic",
140
- "modelId": "claude-haiku-4-5",
140
+ "modelId": "claude-haiku-4.5",
141
141
  "pricing": {
142
142
  "input": 1,
143
143
  "cacheWrite5m": 1.25,
@@ -190,7 +190,7 @@
190
190
  "displayName": "Reasoning Balanced",
191
191
  "description": "Balanced profile with stronger reasoning behavior.",
192
192
  "provider": "anthropic",
193
- "modelId": "claude-sonnet-4-6",
193
+ "modelId": "claude-sonnet-4.6",
194
194
  "pricing": {
195
195
  "input": 3,
196
196
  "cacheWrite5m": 3.75,
@@ -245,7 +245,7 @@
245
245
  "displayName": "Deep Default",
246
246
  "description": "Recommended high-reasoning model.",
247
247
  "provider": "anthropic",
248
- "modelId": "claude-sonnet-4-6",
248
+ "modelId": "claude-sonnet-4.6",
249
249
  "pricing": {
250
250
  "input": 3,
251
251
  "cacheWrite5m": 3.75,
@@ -285,12 +285,13 @@
285
285
  "displayName": "Long-Context Deep",
286
286
  "description": "Deep reasoning with strong long-context handling.",
287
287
  "provider": "google",
288
- "modelId": "gemini-2.5-pro",
288
+ "modelId": "gemini-3.5-flash",
289
289
  "pricing": {
290
- "inputBelow200k": 1.25,
291
- "inputAbove200k": 2.5,
292
- "outputBelow200k": 10,
293
- "outputAbove200k": 15
290
+ "input": 1.5,
291
+ "cachedInput": 0.15,
292
+ "output": 9,
293
+ "batchInput": 0.75,
294
+ "batchOutput": 4.5
294
295
  },
295
296
  "runtime": {
296
297
  "reasoningEffort": "high",
@@ -338,7 +339,7 @@
338
339
  "displayName": "Claude Pro",
339
340
  "description": "Premium Claude alternative.",
340
341
  "provider": "anthropic",
341
- "modelId": "claude-opus-4-7",
342
+ "modelId": "claude-opus-4.7",
342
343
  "pricing": {
343
344
  "input": 5,
344
345
  "cacheWrite5m": 6.25,
@@ -360,7 +361,7 @@
360
361
  "displayName": "Cost-Aware Pro",
361
362
  "description": "Premium-like behavior with lower cost.",
362
363
  "provider": "anthropic",
363
- "modelId": "claude-sonnet-4-6",
364
+ "modelId": "claude-sonnet-4.6",
364
365
  "pricing": {
365
366
  "input": 3,
366
367
  "cacheWrite5m": 3.75,
@@ -440,7 +441,7 @@
440
441
  "displayName": "Quality JSON",
441
442
  "description": "Structured output with stronger reasoning.",
442
443
  "provider": "anthropic",
443
- "modelId": "claude-sonnet-4-6",
444
+ "modelId": "claude-sonnet-4.6",
444
445
  "pricing": {
445
446
  "input": 3,
446
447
  "cacheWrite5m": 3.75,
@@ -479,7 +480,7 @@
479
480
  "displayName": "Agentic Default",
480
481
  "description": "Recommended model for agentic execution.",
481
482
  "provider": "anthropic",
482
- "modelId": "claude-sonnet-4-6",
483
+ "modelId": "claude-sonnet-4.6",
483
484
  "pricing": {
484
485
  "input": 3,
485
486
  "cacheWrite5m": 3.75,
@@ -557,7 +558,7 @@
557
558
  "displayName": "Research Default",
558
559
  "description": "Recommended research model.",
559
560
  "provider": "anthropic",
560
- "modelId": "claude-sonnet-4-6",
561
+ "modelId": "claude-sonnet-4.6",
561
562
  "pricing": {
562
563
  "input": 3,
563
564
  "cacheWrite5m": 3.75,
@@ -603,12 +604,13 @@
603
604
  "displayName": "Long-Context Research",
604
605
  "description": "Research profile optimized for large context.",
605
606
  "provider": "google",
606
- "modelId": "gemini-2.5-pro",
607
+ "modelId": "gemini-3.5-flash",
607
608
  "pricing": {
608
- "inputBelow200k": 1.25,
609
- "inputAbove200k": 2.5,
610
- "outputBelow200k": 10,
611
- "outputAbove200k": 15
609
+ "input": 1.5,
610
+ "cachedInput": 0.15,
611
+ "output": 9,
612
+ "batchInput": 0.75,
613
+ "batchOutput": 4.5
612
614
  },
613
615
  "runtime": {
614
616
  "reasoningEffort": "high",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@x12i/ai-profiles",
3
- "version": "1.2.0",
3
+ "version": "1.2.2",
4
4
  "description": "Resolve AI profile names into concrete model choices with bundled defaults and remote JSON refresh",
5
5
  "type": "module",
6
6
  "main": "./dist/index.js",