@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 CHANGED
@@ -1023,9 +1023,11 @@ var SupportedAiModels = {
1023
1023
  // knob exists) both models emitted ~8 reasoning tokens per answer token in prod
1024
1024
  // (requestStats 30d: flash p50 8.9s / p90 36s, pro p50 18.9s / p90 56s) and a 15-bot story
1025
1025
  // took 68-105s. Latency tracks reasoning length ~linearly, so effort is the only lever.
1026
+ // Flash moved to V4.1 2026-09-12: the API id is now the version-free alias `deepseek-flash`
1027
+ // (the retired `deepseek-v4-flash` still resolves to V4.1 server-side at the Flash price).
1026
1028
  [LLM_CONSTANTS.DEEPSEEK_FLASH]: {
1027
- displayName: "DeepSeek V4 Flash",
1028
- modelApiName: "deepseek-v4-flash",
1029
+ displayName: "DeepSeek V4.1 Flash",
1030
+ modelApiName: "deepseek-flash",
1029
1031
  apiKeyName: API_KEY_CONSTANTS.DEEPSEEK,
1030
1032
  hasThinking: true,
1031
1033
  reasoningEffort: "low",
@@ -1396,10 +1398,12 @@ var MODEL_PRICING = {
1396
1398
  // (api-docs.deepseek.com/quick_start/pricing, fetched 2026-08-13; rates re-confirmed
1397
1399
  // 2026-08-30). Since 2026-08-23 00:00 Beijing (UTC+8) the surcharge is weekdays-only:
1398
1400
  // Saturday and Sunday Beijing time bill at the off-peak rate all day (DeepSeek notice email).
1401
+ // 2026-09-12: Flash is V4.1 at lower rates ($0.15 / $0.60, cache hit $0.003 off-peak);
1402
+ // Pro rates unchanged and DeepSeek confirmed Pro stays available past 2026-09-14.
1399
1403
  [SupportedAiModels[LLM_CONSTANTS.DEEPSEEK_FLASH].modelApiName]: {
1400
- inputPrice: 0.22,
1401
- outputPrice: 0.66,
1402
- cacheHitPrice: 7e-3,
1404
+ inputPrice: 0.15,
1405
+ outputPrice: 0.6,
1406
+ cacheHitPrice: 3e-3,
1403
1407
  peakPricing: DEEPSEEK_PEAK_SCHEDULE
1404
1408
  },
1405
1409
  [SupportedAiModels[LLM_CONSTANTS.DEEPSEEK_PRO].modelApiName]: {
@@ -3302,7 +3306,7 @@ var GoogleAgent = class extends AbstractAgent {
3302
3306
 
3303
3307
  // src/agents/mistral-agent.ts
3304
3308
  var import_mistralai = require("@mistralai/mistralai");
3305
- var import_http = require("@mistralai/mistralai/lib/http");
3309
+ var import_http = require("@mistralai/mistralai/lib/http.js");
3306
3310
  var MistralAgent = class extends AbstractAgent {
3307
3311
  client;
3308
3312
  // A getter, not a field: `maxOutputTokens` can be raised after construction, and a field