@aliou/pi-synthetic 0.13.4 → 0.13.5
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
|
@@ -187,10 +187,10 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
|
|
|
187
187
|
contextWindow: 262144,
|
|
188
188
|
maxTokens: 65536,
|
|
189
189
|
},
|
|
190
|
-
// API: hf:moonshotai/Kimi-K2.
|
|
190
|
+
// API: hf:moonshotai/Kimi-K2.6 → ctx=262144, out=65536
|
|
191
191
|
{
|
|
192
|
-
id: "hf:moonshotai/Kimi-K2.
|
|
193
|
-
name: "moonshotai/Kimi-K2.
|
|
192
|
+
id: "hf:moonshotai/Kimi-K2.6",
|
|
193
|
+
name: "moonshotai/Kimi-K2.6",
|
|
194
194
|
provider: "synthetic",
|
|
195
195
|
reasoning: true,
|
|
196
196
|
compat: {
|
|
@@ -199,19 +199,19 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
|
|
|
199
199
|
},
|
|
200
200
|
input: ["text", "image"],
|
|
201
201
|
cost: {
|
|
202
|
-
input: 0.
|
|
203
|
-
output:
|
|
204
|
-
cacheRead: 0.
|
|
202
|
+
input: 0.95,
|
|
203
|
+
output: 4,
|
|
204
|
+
cacheRead: 0.95,
|
|
205
205
|
cacheWrite: 0,
|
|
206
206
|
},
|
|
207
207
|
contextWindow: 262144,
|
|
208
208
|
maxTokens: 65536,
|
|
209
209
|
},
|
|
210
|
-
// API: hf:nvidia/Kimi-K2.5-NVFP4 → ctx=262144
|
|
210
|
+
// API: hf:nvidia/Kimi-K2.5-NVFP4 → ctx=262144; models.dev: out=65536 (NVFP4 quantized)
|
|
211
211
|
{
|
|
212
212
|
id: "hf:nvidia/Kimi-K2.5-NVFP4",
|
|
213
213
|
name: "nvidia/Kimi-K2.5-NVFP4",
|
|
214
|
-
provider: "
|
|
214
|
+
provider: "together",
|
|
215
215
|
reasoning: true,
|
|
216
216
|
compat: {
|
|
217
217
|
supportsReasoningEffort: true,
|
|
@@ -219,9 +219,9 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
|
|
|
219
219
|
},
|
|
220
220
|
input: ["text", "image"],
|
|
221
221
|
cost: {
|
|
222
|
-
input: 0.
|
|
223
|
-
output:
|
|
224
|
-
cacheRead: 0.
|
|
222
|
+
input: 0.5,
|
|
223
|
+
output: 2.8,
|
|
224
|
+
cacheRead: 0.5,
|
|
225
225
|
cacheWrite: 0,
|
|
226
226
|
},
|
|
227
227
|
contextWindow: 262144,
|
|
@@ -1,4 +1,12 @@
|
|
|
1
|
-
import {
|
|
1
|
+
import {
|
|
2
|
+
afterEach,
|
|
3
|
+
assert,
|
|
4
|
+
beforeEach,
|
|
5
|
+
describe,
|
|
6
|
+
expect,
|
|
7
|
+
it,
|
|
8
|
+
vi,
|
|
9
|
+
} from "vitest";
|
|
2
10
|
import {
|
|
3
11
|
assessWindow,
|
|
4
12
|
getPacePercent,
|
|
@@ -132,6 +140,15 @@ describe("assessWindow", () => {
|
|
|
132
140
|
});
|
|
133
141
|
|
|
134
142
|
describe("with pace (showPace: true)", () => {
|
|
143
|
+
beforeEach(() => {
|
|
144
|
+
vi.useFakeTimers();
|
|
145
|
+
vi.setSystemTime(new Date("2026-01-01T00:00:00Z"));
|
|
146
|
+
});
|
|
147
|
+
|
|
148
|
+
afterEach(() => {
|
|
149
|
+
vi.useRealTimers();
|
|
150
|
+
});
|
|
151
|
+
|
|
135
152
|
it("returns none when usage is low and pace is normal", () => {
|
|
136
153
|
const w = makeWindow({
|
|
137
154
|
usedPercent: 20,
|