@hiper2d/ai-agents 0.4.1 → 0.4.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/dist/index.js +10 -6
- package/dist/index.js.map +1 -1
- package/dist/index.mjs +10 -6
- package/dist/index.mjs.map +1 -1
- package/package.json +1 -1
package/dist/index.mjs
CHANGED
|
@@ -855,9 +855,11 @@ var SupportedAiModels = {
|
|
|
855
855
|
// knob exists) both models emitted ~8 reasoning tokens per answer token in prod
|
|
856
856
|
// (requestStats 30d: flash p50 8.9s / p90 36s, pro p50 18.9s / p90 56s) and a 15-bot story
|
|
857
857
|
// took 68-105s. Latency tracks reasoning length ~linearly, so effort is the only lever.
|
|
858
|
+
// Flash moved to V4.1 2026-09-12: the API id is now the version-free alias `deepseek-flash`
|
|
859
|
+
// (the retired `deepseek-v4-flash` still resolves to V4.1 server-side at the Flash price).
|
|
858
860
|
[LLM_CONSTANTS.DEEPSEEK_FLASH]: {
|
|
859
|
-
displayName: "DeepSeek V4 Flash",
|
|
860
|
-
modelApiName: "deepseek-
|
|
861
|
+
displayName: "DeepSeek V4.1 Flash",
|
|
862
|
+
modelApiName: "deepseek-flash",
|
|
861
863
|
apiKeyName: API_KEY_CONSTANTS.DEEPSEEK,
|
|
862
864
|
hasThinking: true,
|
|
863
865
|
reasoningEffort: "low",
|
|
@@ -1228,10 +1230,12 @@ var MODEL_PRICING = {
|
|
|
1228
1230
|
// (api-docs.deepseek.com/quick_start/pricing, fetched 2026-08-13; rates re-confirmed
|
|
1229
1231
|
// 2026-08-30). Since 2026-08-23 00:00 Beijing (UTC+8) the surcharge is weekdays-only:
|
|
1230
1232
|
// Saturday and Sunday Beijing time bill at the off-peak rate all day (DeepSeek notice email).
|
|
1233
|
+
// 2026-09-12: Flash is V4.1 at lower rates ($0.15 / $0.60, cache hit $0.003 off-peak);
|
|
1234
|
+
// Pro rates unchanged and DeepSeek confirmed Pro stays available past 2026-09-14.
|
|
1231
1235
|
[SupportedAiModels[LLM_CONSTANTS.DEEPSEEK_FLASH].modelApiName]: {
|
|
1232
|
-
inputPrice: 0.
|
|
1233
|
-
outputPrice: 0.
|
|
1234
|
-
cacheHitPrice:
|
|
1236
|
+
inputPrice: 0.15,
|
|
1237
|
+
outputPrice: 0.6,
|
|
1238
|
+
cacheHitPrice: 3e-3,
|
|
1235
1239
|
peakPricing: DEEPSEEK_PEAK_SCHEDULE
|
|
1236
1240
|
},
|
|
1237
1241
|
[SupportedAiModels[LLM_CONSTANTS.DEEPSEEK_PRO].modelApiName]: {
|
|
@@ -3134,7 +3138,7 @@ var GoogleAgent = class extends AbstractAgent {
|
|
|
3134
3138
|
|
|
3135
3139
|
// src/agents/mistral-agent.ts
|
|
3136
3140
|
import { Mistral } from "@mistralai/mistralai";
|
|
3137
|
-
import { HTTPClient } from "@mistralai/mistralai/lib/http";
|
|
3141
|
+
import { HTTPClient } from "@mistralai/mistralai/lib/http.js";
|
|
3138
3142
|
var MistralAgent = class extends AbstractAgent {
|
|
3139
3143
|
client;
|
|
3140
3144
|
// A getter, not a field: `maxOutputTokens` can be raised after construction, and a field
|