openvibers/openvibe.ai Commits

Return the reviewed prices with the price book (#478)

OP OpenVibers committed 2 days ago · 1c69361e00 · 1 file, +4 −1

Changes

ddiff --git a/server/api/console-data.js b/server/api/console-data.js
iindex 6210948..9d252df 100644
---- a/server/api/console-data.js
++++ b/server/api/console-data.js
@@@ -112,7 +112,10 @@ function consoleDataRouter({ db, registry, pool, quotas, cache, runs, ops, auth,
}
if (section === 'gpus') return { state: gpus ? await gpus.state() : null, ...await marketPayload() };
if (section === 'pricebook') return { report: priceBook ? priceBook.last : null, state: priceBook ? await priceBook.state.read() : null,
-- pending: priceBook ? await priceBook.pending(50) : [], recent: priceBook ? await priceBook.changes({ status: 'applied', limit: 50 }) : [] };
++ pending: priceBook ? await priceBook.pending(50) : [], recent: priceBook ? await priceBook.changes({ status: 'applied', limit: 50 }) : [],
++ // The reviewed readings bundled with this release (scripts/pricebook-proposals-*.json), which the owner
++ // loads into the waiting list before deciding them. Nothing here writes a price or creates a model.
++ confirmed: await ownerConfig.confirmedPrices() };
if (section === 'exchange') return { credits: await q.settleQueue(db, clock.now()), routing: await q.routingEvidence(db) };
if (section === 'abuse') return { report: abuse ? await abuse.overview() : null };
if (section === 'glossary') return { providers: await registry.listProviders(), models: await registry.listModels() };