pi-tensorix-provider 1.0.8 → 1.0.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 CHANGED
@@ -46,6 +46,7 @@ _32 models — DeepSeek, Kimi, GLM, Qwen, MiniMax, Llama — all **free** for [p
46
46
  | Qwen3.5 122b A10b | 262K | ❌ | ✅ | **Free** | **Free** |
47
47
  | Qwen3.5 9b | 262K | ❌ | ✅ | **Free** | **Free** |
48
48
  | Qwen3.8 2.4t A95b | 131K | ❌ | ❌ | **Free** | **Free** |
49
+ | Qwen3.8 27b | 131K | ❌ | ❌ | **Free** | **Free** |
49
50
 
50
51
  ## Installation
51
52
 
@@ -1,89 +1,4 @@
1
1
  {
2
- "deepseek/deepseek-chat-v3.1": {
3
- "id": "deepseek/deepseek-chat-v3.1",
4
- "name": "Deepseek Chat V3.1",
5
- "reasoning": false,
6
- "input": [
7
- "text"
8
- ],
9
- "cost": {
10
- "input": 0,
11
- "output": 0,
12
- "cacheRead": 0,
13
- "cacheWrite": 0
14
- },
15
- "contextWindow": 131072,
16
- "maxTokens": 131072,
17
- "deprecatedAt": "2026-08-01T02:00:23.121Z"
18
- },
19
- "nvidia/nemotron-3-super-120b-a12b": {
20
- "id": "nvidia/nemotron-3-super-120b-a12b",
21
- "name": "Nemotron 3 Super 120b A12b",
22
- "reasoning": false,
23
- "input": [
24
- "text"
25
- ],
26
- "cost": {
27
- "input": 0,
28
- "output": 0,
29
- "cacheRead": 0,
30
- "cacheWrite": 0
31
- },
32
- "contextWindow": 131072,
33
- "maxTokens": 131072,
34
- "deprecatedAt": "2026-08-01T02:00:23.121Z"
35
- },
36
- "openai/gpt-oss-120b": {
37
- "id": "openai/gpt-oss-120b",
38
- "name": "Gpt Oss 120b",
39
- "reasoning": false,
40
- "input": [
41
- "text"
42
- ],
43
- "cost": {
44
- "input": 0,
45
- "output": 0,
46
- "cacheRead": 0,
47
- "cacheWrite": 0
48
- },
49
- "contextWindow": 131072,
50
- "maxTokens": 131072,
51
- "deprecatedAt": "2026-08-01T02:00:23.121Z"
52
- },
53
- "qwen/qwen3-coder-30b-a3b-instruct": {
54
- "id": "qwen/qwen3-coder-30b-a3b-instruct",
55
- "name": "Qwen3 Coder 30b A3b Instruct",
56
- "reasoning": false,
57
- "input": [
58
- "text"
59
- ],
60
- "cost": {
61
- "input": 0,
62
- "output": 0,
63
- "cacheRead": 0,
64
- "cacheWrite": 0
65
- },
66
- "contextWindow": 131072,
67
- "maxTokens": 131072,
68
- "deprecatedAt": "2026-08-01T02:00:23.121Z"
69
- },
70
- "qwen/qwen3-vl-235b-a22b-instruct": {
71
- "id": "qwen/qwen3-vl-235b-a22b-instruct",
72
- "name": "Qwen3 Vl 235b A22b Instruct",
73
- "reasoning": false,
74
- "input": [
75
- "text"
76
- ],
77
- "cost": {
78
- "input": 0,
79
- "output": 0,
80
- "cacheRead": 0,
81
- "cacheWrite": 0
82
- },
83
- "contextWindow": 131072,
84
- "maxTokens": 131072,
85
- "deprecatedAt": "2026-08-01T02:00:23.121Z"
86
- },
87
2
  "deepseek/deepseek-v4-flash": {
88
3
  "id": "deepseek/deepseek-v4-flash",
89
4
  "name": "Deepseek V4 Flash",
package/models.json CHANGED
@@ -239,6 +239,22 @@
239
239
  "contextWindow": 131072,
240
240
  "maxTokens": 131072
241
241
  },
242
+ {
243
+ "id": "qwen/qwen3.8-27b",
244
+ "name": "Qwen3.8 27b",
245
+ "reasoning": false,
246
+ "input": [
247
+ "text"
248
+ ],
249
+ "cost": {
250
+ "input": 0,
251
+ "output": 0,
252
+ "cacheRead": 0,
253
+ "cacheWrite": 0
254
+ },
255
+ "contextWindow": 131072,
256
+ "maxTokens": 131072
257
+ },
242
258
  {
243
259
  "id": "z-ai/glm-5",
244
260
  "name": "Glm 5",
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "pi-tensorix-provider",
3
- "version": "1.0.8",
3
+ "version": "1.0.10",
4
4
  "description": "Tensorix provider extension for pi - Access DeepSeek, GLM, Kimi, Qwen, MiniMax, Llama, and more through the Tensorix API",
5
5
  "type": "module",
6
6
  "main": "index.ts",
@@ -251,8 +251,9 @@ function loadJson(filePath) {
251
251
 
252
252
  function formatCost(cost, isFree) {
253
253
  if (isFree) return '**Free**';
254
- if (cost === 0) return '-';
255
- return `$${cost.toFixed(2)}`;
254
+ if (cost === 0) return '—';
255
+ if (cost === null || cost === undefined) return '—';
256
+ return '$' + cost.toFixed(2);
256
257
  }
257
258
 
258
259
  function formatContextWindow(n) {
@@ -365,6 +366,31 @@ function updateDeprecatedModels(modelsJsonPath, newModels) {
365
366
  }
366
367
  }
367
368
 
369
+ /**
370
+ * Grace-period deprecated models (deprecatedAt within TTL) with metadata stripped.
371
+ * Keeps the README table serving models that are delisted but still within their
372
+ * 14-day grace window.
373
+ */
374
+ function withDeprecatedForReadme(models) {
375
+ const deprecatedPath = path.join(path.dirname(MODELS_JSON_PATH), 'deprecated-models.json');
376
+ let deprecated = {};
377
+ try {
378
+ const parsed = JSON.parse(fs.readFileSync(deprecatedPath, 'utf8'));
379
+ if (parsed && typeof parsed === 'object' && !Array.isArray(parsed)) deprecated = parsed;
380
+ } catch { /* no graveyard yet */ }
381
+ const now = Date.now();
382
+ const seen = new Set(models.map(m => m.id));
383
+ const extras = [];
384
+ for (const entry of Object.values(deprecated)) {
385
+ if (!entry || !entry.id || seen.has(entry.id)) continue;
386
+ const removedAt = Date.parse(entry.deprecatedAt || '');
387
+ if (Number.isNaN(removedAt) || now - removedAt > DEPRECATED_MODEL_TTL_MS) continue;
388
+ const m = { ...entry };
389
+ delete m.deprecatedAt;
390
+ extras.push(m);
391
+ }
392
+ return extras.length > 0 ? [...models, ...extras] : models;
393
+ }
368
394
  async function main() {
369
395
  console.log(`Fetching models from ${MODELS_API_URL}...`);
370
396
 
@@ -434,7 +460,7 @@ async function main() {
434
460
  // Build full model list for README: base → patch → custom
435
461
  const customModels = loadJson(CUSTOM_MODELS_JSON_PATH);
436
462
  const readmeModels = buildModels(
437
- apiTransformed,
463
+ withDeprecatedForReadme(apiTransformed),
438
464
  Array.isArray(customModels) ? customModels : [],
439
465
  patch
440
466
  );