@aliou/pi-synthetic 0.18.4 → 0.19.0
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
|
@@ -33,11 +33,11 @@ export type SyntheticModelEntry =
|
|
|
33
33
|
| SyntheticModelAliasConfig;
|
|
34
34
|
|
|
35
35
|
export const SYNTHETIC_MODELS: SyntheticModelEntry[] = [
|
|
36
|
-
// API: syn:large:text → alias for hf:zai-org/GLM-5.
|
|
36
|
+
// API: syn:large:text → alias for hf:zai-org/GLM-5.2
|
|
37
37
|
{
|
|
38
38
|
id: "syn:large:text",
|
|
39
39
|
name: "syn:large:text",
|
|
40
|
-
aliasFor: "hf:zai-org/GLM-5.
|
|
40
|
+
aliasFor: "hf:zai-org/GLM-5.2",
|
|
41
41
|
},
|
|
42
42
|
// API: syn:small:text → alias for hf:zai-org/GLM-4.7-Flash
|
|
43
43
|
{
|
|
@@ -112,6 +112,44 @@ export const SYNTHETIC_MODELS: SyntheticModelEntry[] = [
|
|
|
112
112
|
contextWindow: 196608,
|
|
113
113
|
maxTokens: 65536,
|
|
114
114
|
},
|
|
115
|
+
// API: hf:zai-org/GLM-5.2 → ctx=524288, out=65536
|
|
116
|
+
// Reasoning: GLM-5.2 has only two effective levels — `max` (default, highest) and `high`
|
|
117
|
+
// (lower). Per the GLM-5.2 chat template: unset -> max; "high" -> high; every other value
|
|
118
|
+
// ("low", "medium", ...) falls through to max. So `max > high`.
|
|
119
|
+
// (https://docs.sglang.io/cookbook/autoregressive/GLM/GLM-5.2#hw=h200&variant=default&quant=fp8&strategy=low-latency&nodes=single)
|
|
120
|
+
//
|
|
121
|
+
// The Synthetic OpenAI shim validates `reasoning_effort` to the OpenAI enum and rejects
|
|
122
|
+
// literal `max` (and `xhigh` errors). To expose both tiers through Pi we map:
|
|
123
|
+
// off -> "none" (disable thinking)
|
|
124
|
+
// high -> "high" (High, lower)
|
|
125
|
+
// xhigh -> "medium" (falls through to Max, highest)
|
|
126
|
+
// minimal/low/medium are hidden (null) so Pi's named levels aren't remapped unexpectedly.
|
|
127
|
+
{
|
|
128
|
+
id: "hf:zai-org/GLM-5.2",
|
|
129
|
+
name: "zai-org/GLM-5.2",
|
|
130
|
+
provider: "synthetic",
|
|
131
|
+
reasoning: true,
|
|
132
|
+
thinkingLevelMap: {
|
|
133
|
+
off: "none",
|
|
134
|
+
minimal: null,
|
|
135
|
+
low: null,
|
|
136
|
+
medium: null,
|
|
137
|
+
high: "high",
|
|
138
|
+
xhigh: "medium",
|
|
139
|
+
},
|
|
140
|
+
compat: {
|
|
141
|
+
supportsReasoningEffort: true,
|
|
142
|
+
},
|
|
143
|
+
input: ["text"],
|
|
144
|
+
cost: {
|
|
145
|
+
input: 1.4,
|
|
146
|
+
output: 4.4,
|
|
147
|
+
cacheRead: 1.4,
|
|
148
|
+
cacheWrite: 0,
|
|
149
|
+
},
|
|
150
|
+
contextWindow: 524288,
|
|
151
|
+
maxTokens: 65536,
|
|
152
|
+
},
|
|
115
153
|
// API: hf:zai-org/GLM-4.7-Flash → ctx=196608
|
|
116
154
|
{
|
|
117
155
|
id: "hf:zai-org/GLM-4.7-Flash",
|