@aliou/pi-synthetic 0.6.0 → 0.6.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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliou/pi-synthetic",
3
- "version": "0.6.0",
3
+ "version": "0.6.2",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -21,6 +21,7 @@ export function registerSyntheticProvider(pi: ExtensionAPI): void {
21
21
  compat: {
22
22
  supportsDeveloperRole: false,
23
23
  maxTokensField: "max_tokens",
24
+ ...model.compat,
24
25
  },
25
26
  })),
26
27
  });
@@ -40,6 +40,21 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
40
40
  contextWindow: 202752,
41
41
  maxTokens: 65536,
42
42
  },
43
+ // API: hf:zai-org/GLM-4.7-Flash → ctx=196608
44
+ {
45
+ id: "hf:zai-org/GLM-4.7-Flash",
46
+ name: "zai-org/GLM-4.7-Flash",
47
+ reasoning: true,
48
+ input: ["text"],
49
+ cost: {
50
+ input: 0.06,
51
+ output: 0.4,
52
+ cacheRead: 0.06,
53
+ cacheWrite: 0,
54
+ },
55
+ contextWindow: 196608,
56
+ maxTokens: 65536,
57
+ },
43
58
  // API: hf:MiniMaxAI/MiniMax-M2.1 → ctx=196608, out=65536
44
59
  {
45
60
  id: "hf:MiniMaxAI/MiniMax-M2.1",
@@ -62,29 +77,14 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
62
77
  reasoning: false,
63
78
  input: ["text"],
64
79
  cost: {
65
- input: 0.9,
66
- output: 0.9,
67
- cacheRead: 0.9,
80
+ input: 0.88,
81
+ output: 0.88,
82
+ cacheRead: 0.88,
68
83
  cacheWrite: 0,
69
84
  },
70
85
  contextWindow: 131072,
71
86
  maxTokens: 32768,
72
87
  },
73
- // models.dev: synthetic/hf:deepseek-ai/DeepSeek-V3-0324 → ctx=128000, out=128000
74
- {
75
- id: "hf:deepseek-ai/DeepSeek-V3-0324",
76
- name: "deepseek-ai/DeepSeek-V3-0324",
77
- reasoning: false,
78
- input: ["text"],
79
- cost: {
80
- input: 1.2,
81
- output: 1.2,
82
- cacheRead: 1.2,
83
- cacheWrite: 0,
84
- },
85
- contextWindow: 131072,
86
- maxTokens: 128000,
87
- },
88
88
  // models.dev: synthetic/hf:deepseek-ai/DeepSeek-R1-0528 → ctx=128000, out=128000
89
89
  {
90
90
  id: "hf:deepseek-ai/DeepSeek-R1-0528",
@@ -264,5 +264,9 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
264
264
  },
265
265
  contextWindow: 191488,
266
266
  maxTokens: 65536,
267
+ compat: {
268
+ supportsReasoningEffort: true,
269
+ maxTokensField: "max_completion_tokens",
270
+ },
267
271
  },
268
272
  ];