heyio 4.3.2 → 4.3.3
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/daemon/cli.js +3 -2
- package/dist/daemon/index.js +3 -2
- package/package.json +1 -1
package/dist/daemon/cli.js
CHANGED
|
@@ -80,7 +80,7 @@ var init_constants = __esm({
|
|
|
80
80
|
"packages/shared/dist/constants.js"() {
|
|
81
81
|
"use strict";
|
|
82
82
|
APP_NAME = "io";
|
|
83
|
-
APP_VERSION = "4.3.
|
|
83
|
+
APP_VERSION = "4.3.3";
|
|
84
84
|
API_PORT = 7777;
|
|
85
85
|
API_HOST = "0.0.0.0";
|
|
86
86
|
DEFAULT_MODEL = "gpt-4.1-mini";
|
|
@@ -68368,6 +68368,7 @@ async function refreshModelPricing(logger2) {
|
|
|
68368
68368
|
}
|
|
68369
68369
|
const db = await getDatabase();
|
|
68370
68370
|
const now = nowIso();
|
|
68371
|
+
await db.execute("DELETE FROM model_pricing WHERE id LIKE '%/%'");
|
|
68371
68372
|
for (const model of modelMap.values()) {
|
|
68372
68373
|
if (model.tokenInputMultiplier == null) {
|
|
68373
68374
|
continue;
|
|
@@ -68473,7 +68474,7 @@ async function upsertModel(db, model) {
|
|
|
68473
68474
|
}
|
|
68474
68475
|
function rowToModelPricing(row) {
|
|
68475
68476
|
return {
|
|
68476
|
-
id: asString(row.id),
|
|
68477
|
+
id: stripVendorPrefix(asString(row.id)),
|
|
68477
68478
|
displayName: asString(row.display_name),
|
|
68478
68479
|
premiumMultiplier: asNullableNumber(row.premium_multiplier),
|
|
68479
68480
|
tokenInputMultiplier: asNullableNumber(row.token_input_multiplier),
|
package/dist/daemon/index.js
CHANGED
|
@@ -79,7 +79,7 @@ var init_constants = __esm({
|
|
|
79
79
|
"packages/shared/dist/constants.js"() {
|
|
80
80
|
"use strict";
|
|
81
81
|
APP_NAME = "io";
|
|
82
|
-
APP_VERSION = "4.3.
|
|
82
|
+
APP_VERSION = "4.3.3";
|
|
83
83
|
API_PORT = 7777;
|
|
84
84
|
API_HOST = "0.0.0.0";
|
|
85
85
|
DEFAULT_MODEL = "gpt-4.1-mini";
|
|
@@ -62907,6 +62907,7 @@ async function refreshModelPricing(logger2) {
|
|
|
62907
62907
|
}
|
|
62908
62908
|
const db = await getDatabase();
|
|
62909
62909
|
const now = nowIso();
|
|
62910
|
+
await db.execute("DELETE FROM model_pricing WHERE id LIKE '%/%'");
|
|
62910
62911
|
for (const model of modelMap.values()) {
|
|
62911
62912
|
if (model.tokenInputMultiplier == null) {
|
|
62912
62913
|
continue;
|
|
@@ -63012,7 +63013,7 @@ async function upsertModel(db, model) {
|
|
|
63012
63013
|
}
|
|
63013
63014
|
function rowToModelPricing(row) {
|
|
63014
63015
|
return {
|
|
63015
|
-
id: asString(row.id),
|
|
63016
|
+
id: stripVendorPrefix(asString(row.id)),
|
|
63016
63017
|
displayName: asString(row.display_name),
|
|
63017
63018
|
premiumMultiplier: asNullableNumber(row.premium_multiplier),
|
|
63018
63019
|
tokenInputMultiplier: asNullableNumber(row.token_input_multiplier),
|