pi-ollama-cloud 0.12.1 → 0.12.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/CHANGELOG.md +4 -0
- package/models.generated.ts +2 -116
- package/package.json +1 -1
- package/pricing.generated.ts +2 -5
package/CHANGELOG.md
CHANGED
|
@@ -2,6 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
|
|
5
|
+
## [0.12.2] - 2026-09-27
|
|
6
|
+
|
|
7
|
+
- Refresh the model catalog for the September 25, 2026 retirements (`deepseek-v4-flash:0731`, `glm-5.1`, `qwen3.5:397b`): dropped from the generated catalog and pricing, 20 -> 17 models. Recommended replacements per Ollama: `deepseek-v4.1-flash`, `glm-5.3`, and `glm-5.3-flash` / `deepseek-v4.1-flash`.
|
|
8
|
+
|
|
5
9
|
## [0.12.1] - 2026-09-14
|
|
6
10
|
|
|
7
11
|
- Omit empty `openRouterRouting` / `vercelGatewayRouting` from `buildCompat` (set to `undefined`, not `{}`): pi-ai reads the raw `model.compat` and treats `{}` as truthy, sending a stray `provider: {}` on every Ollama chat completion. Fixes #60. Thanks @0xbentang (#61).
|
package/models.generated.ts
CHANGED
|
@@ -1,49 +1,11 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-models.ts
|
|
2
2
|
// Do not edit manually.
|
|
3
|
-
// Generated: 2026-09-
|
|
4
|
-
// Model count:
|
|
3
|
+
// Generated: 2026-09-27T00:52:07.773Z
|
|
4
|
+
// Model count: 17
|
|
5
5
|
|
|
6
6
|
import type { ProviderModelConfig } from "@earendil-works/pi-coding-agent";
|
|
7
7
|
|
|
8
8
|
export const GENERATED_MODELS: ProviderModelConfig[] = [
|
|
9
|
-
{
|
|
10
|
-
id: "deepseek-v4-flash:0731",
|
|
11
|
-
name: "deepseek-v4-flash:0731",
|
|
12
|
-
compat: {
|
|
13
|
-
maxTokensField: "max_tokens",
|
|
14
|
-
requiresAssistantAfterToolResult: false,
|
|
15
|
-
requiresReasoningContentOnAssistantMessages: false,
|
|
16
|
-
requiresThinkingAsText: false,
|
|
17
|
-
requiresToolResultName: false,
|
|
18
|
-
sendSessionAffinityHeaders: false,
|
|
19
|
-
supportsDeveloperRole: false,
|
|
20
|
-
supportsLongCacheRetention: false,
|
|
21
|
-
supportsReasoningEffort: true,
|
|
22
|
-
supportsStore: false,
|
|
23
|
-
supportsStrictMode: false,
|
|
24
|
-
supportsUsageInStreaming: true,
|
|
25
|
-
thinkingFormat: "openai",
|
|
26
|
-
zaiToolStream: false,
|
|
27
|
-
},
|
|
28
|
-
contextWindow: 1048576,
|
|
29
|
-
cost: {
|
|
30
|
-
cacheRead: 0.014,
|
|
31
|
-
cacheWrite: 0,
|
|
32
|
-
input: 0.44,
|
|
33
|
-
output: 1.32,
|
|
34
|
-
},
|
|
35
|
-
input: ["text"],
|
|
36
|
-
maxTokens: 65536,
|
|
37
|
-
reasoning: true,
|
|
38
|
-
thinkingLevelMap: {
|
|
39
|
-
high: "high",
|
|
40
|
-
low: null,
|
|
41
|
-
medium: null,
|
|
42
|
-
minimal: null,
|
|
43
|
-
off: "none",
|
|
44
|
-
xhigh: "max",
|
|
45
|
-
},
|
|
46
|
-
},
|
|
47
9
|
{
|
|
48
10
|
id: "deepseek-v4-pro:0813",
|
|
49
11
|
name: "deepseek-v4-pro:0813",
|
|
@@ -158,44 +120,6 @@ export const GENERATED_MODELS: ProviderModelConfig[] = [
|
|
|
158
120
|
xhigh: null,
|
|
159
121
|
},
|
|
160
122
|
},
|
|
161
|
-
{
|
|
162
|
-
id: "glm-5.1",
|
|
163
|
-
name: "glm-5.1",
|
|
164
|
-
compat: {
|
|
165
|
-
maxTokensField: "max_tokens",
|
|
166
|
-
requiresAssistantAfterToolResult: false,
|
|
167
|
-
requiresReasoningContentOnAssistantMessages: false,
|
|
168
|
-
requiresThinkingAsText: false,
|
|
169
|
-
requiresToolResultName: false,
|
|
170
|
-
sendSessionAffinityHeaders: false,
|
|
171
|
-
supportsDeveloperRole: false,
|
|
172
|
-
supportsLongCacheRetention: false,
|
|
173
|
-
supportsReasoningEffort: true,
|
|
174
|
-
supportsStore: false,
|
|
175
|
-
supportsStrictMode: false,
|
|
176
|
-
supportsUsageInStreaming: true,
|
|
177
|
-
thinkingFormat: "openai",
|
|
178
|
-
zaiToolStream: false,
|
|
179
|
-
},
|
|
180
|
-
contextWindow: 202752,
|
|
181
|
-
cost: {
|
|
182
|
-
cacheRead: 0.2,
|
|
183
|
-
cacheWrite: 0,
|
|
184
|
-
input: 1,
|
|
185
|
-
output: 3.2,
|
|
186
|
-
},
|
|
187
|
-
input: ["text"],
|
|
188
|
-
maxTokens: 131072,
|
|
189
|
-
reasoning: true,
|
|
190
|
-
thinkingLevelMap: {
|
|
191
|
-
high: null,
|
|
192
|
-
low: null,
|
|
193
|
-
medium: "medium",
|
|
194
|
-
minimal: null,
|
|
195
|
-
off: "none",
|
|
196
|
-
xhigh: null,
|
|
197
|
-
},
|
|
198
|
-
},
|
|
199
123
|
{
|
|
200
124
|
id: "glm-5.2",
|
|
201
125
|
name: "glm-5.2",
|
|
@@ -720,42 +644,4 @@ export const GENERATED_MODELS: ProviderModelConfig[] = [
|
|
|
720
644
|
xhigh: null,
|
|
721
645
|
},
|
|
722
646
|
},
|
|
723
|
-
{
|
|
724
|
-
id: "qwen3.5:397b",
|
|
725
|
-
name: "qwen3.5:397b",
|
|
726
|
-
compat: {
|
|
727
|
-
maxTokensField: "max_tokens",
|
|
728
|
-
requiresAssistantAfterToolResult: false,
|
|
729
|
-
requiresReasoningContentOnAssistantMessages: false,
|
|
730
|
-
requiresThinkingAsText: false,
|
|
731
|
-
requiresToolResultName: false,
|
|
732
|
-
sendSessionAffinityHeaders: false,
|
|
733
|
-
supportsDeveloperRole: false,
|
|
734
|
-
supportsLongCacheRetention: false,
|
|
735
|
-
supportsReasoningEffort: true,
|
|
736
|
-
supportsStore: false,
|
|
737
|
-
supportsStrictMode: false,
|
|
738
|
-
supportsUsageInStreaming: true,
|
|
739
|
-
thinkingFormat: "openai",
|
|
740
|
-
zaiToolStream: false,
|
|
741
|
-
},
|
|
742
|
-
contextWindow: 262144,
|
|
743
|
-
cost: {
|
|
744
|
-
cacheRead: 0.6,
|
|
745
|
-
cacheWrite: 0,
|
|
746
|
-
input: 0.6,
|
|
747
|
-
output: 3.6,
|
|
748
|
-
},
|
|
749
|
-
input: ["text", "image"],
|
|
750
|
-
maxTokens: 65536,
|
|
751
|
-
reasoning: true,
|
|
752
|
-
thinkingLevelMap: {
|
|
753
|
-
high: null,
|
|
754
|
-
low: null,
|
|
755
|
-
medium: "medium",
|
|
756
|
-
minimal: null,
|
|
757
|
-
off: "none",
|
|
758
|
-
xhigh: null,
|
|
759
|
-
},
|
|
760
|
-
},
|
|
761
647
|
];
|
package/package.json
CHANGED
package/pricing.generated.ts
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
// Auto-generated by scripts/generate-pricing.ts
|
|
2
2
|
// Do not edit manually.
|
|
3
|
-
// Generated: 2026-09-
|
|
4
|
-
// Model count:
|
|
3
|
+
// Generated: 2026-09-27T00:52:06.074Z
|
|
4
|
+
// Model count: 17
|
|
5
5
|
|
|
6
6
|
export interface ModelPrice {
|
|
7
7
|
input: number;
|
|
@@ -11,11 +11,9 @@ export interface ModelPrice {
|
|
|
11
11
|
}
|
|
12
12
|
|
|
13
13
|
export const MODEL_PRICING: Record<string, ModelPrice> = {
|
|
14
|
-
"deepseek-v4-flash:0731": { input: 0.44, output: 1.32, cacheRead: 0.014, cacheWrite: 0 },
|
|
15
14
|
"deepseek-v4-pro:0813": { input: 1.32, output: 3.96, cacheRead: 0.044, cacheWrite: 0 },
|
|
16
15
|
"deepseek-v4.1-flash": { input: 0.3, output: 1.2, cacheRead: 0.006, cacheWrite: 0 },
|
|
17
16
|
"gemma4:31b": { input: 0.14, output: 0.4, cacheRead: 0.05, cacheWrite: 0 },
|
|
18
|
-
"glm-5.1": { input: 1, output: 3.2, cacheRead: 0.2, cacheWrite: 0 },
|
|
19
17
|
"glm-5.2": { input: 1.4, output: 4.4, cacheRead: 0.26, cacheWrite: 0 },
|
|
20
18
|
"glm-5.3": { input: 1.4, output: 4.4, cacheRead: 0.26, cacheWrite: 0 },
|
|
21
19
|
"glm-5.3-flash": { input: 0.15, output: 0.5, cacheRead: 0.03, cacheWrite: 0 },
|
|
@@ -30,5 +28,4 @@ export const MODEL_PRICING: Record<string, ModelPrice> = {
|
|
|
30
28
|
"nemotron-3-nano:30b": { input: 0.06, output: 0.24, cacheRead: 0.06, cacheWrite: 0 },
|
|
31
29
|
"nemotron-3-super": { input: 0.015, output: 0.6, cacheRead: 0.015, cacheWrite: 0 },
|
|
32
30
|
"nemotron-3-ultra": { input: 0.1, output: 3, cacheRead: 0.1, cacheWrite: 0 },
|
|
33
|
-
"qwen3.5:397b": { input: 0.6, output: 3.6, cacheRead: 0.6, cacheWrite: 0 },
|
|
34
31
|
};
|