@aliou/pi-synthetic 0.13.3 → 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
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@aliou/pi-synthetic",
3
- "version": "0.13.3",
3
+ "version": "0.13.5",
4
4
  "license": "MIT",
5
5
  "type": "module",
6
6
  "private": false,
@@ -104,7 +104,7 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
104
104
  id: "hf:meta-llama/Llama-3.3-70B-Instruct",
105
105
  name: "meta-llama/Llama-3.3-70B-Instruct",
106
106
  provider: "together",
107
- reasoning: false,
107
+ reasoning: true,
108
108
  input: ["text"],
109
109
  cost: {
110
110
  input: 0.88,
@@ -140,7 +140,7 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
140
140
  id: "hf:deepseek-ai/DeepSeek-V3.2",
141
141
  name: "deepseek-ai/DeepSeek-V3.2",
142
142
  provider: "fireworks",
143
- reasoning: false,
143
+ reasoning: true,
144
144
  input: ["text"],
145
145
  cost: {
146
146
  input: 0.56,
@@ -156,7 +156,7 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
156
156
  id: "hf:openai/gpt-oss-120b",
157
157
  name: "openai/gpt-oss-120b",
158
158
  provider: "fireworks",
159
- reasoning: false,
159
+ reasoning: true,
160
160
  input: ["text"],
161
161
  cost: {
162
162
  input: 0.1,
@@ -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.5 → ctx=262144, out=65536
190
+ // API: hf:moonshotai/Kimi-K2.6 → ctx=262144, out=65536
191
191
  {
192
- id: "hf:moonshotai/Kimi-K2.5",
193
- name: "moonshotai/Kimi-K2.5",
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.45,
203
- output: 3.4,
204
- cacheRead: 0.45,
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, out=65536 (NVFP4 quantized)
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: "synthetic",
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.45,
223
- output: 3.4,
224
- cacheRead: 0.45,
222
+ input: 0.5,
223
+ output: 2.8,
224
+ cacheRead: 0.5,
225
225
  cacheWrite: 0,
226
226
  },
227
227
  contextWindow: 262144,
@@ -232,7 +232,7 @@ export const SYNTHETIC_MODELS: SyntheticModelConfig[] = [
232
232
  id: "hf:deepseek-ai/DeepSeek-V3",
233
233
  name: "deepseek-ai/DeepSeek-V3",
234
234
  provider: "together",
235
- reasoning: false,
235
+ reasoning: true,
236
236
  input: ["text"],
237
237
  cost: {
238
238
  input: 1.25,
@@ -1,4 +1,12 @@
1
- import { assert, describe, expect, it } from "vitest";
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,