openvibers/openvibe.exchange Commits

SDK 0.168.0: openvibe-sdk/compare replaces openvibe-sdk/bench (#270)

OP OpenVibers committed 7 h ago · 58b014675d · 7 files, +10 −11

Bench's whole API is mounted inside OpenVibe.Compare since the 11-13 cutover, so the
SDK entry that speaks to it is renamed in one clean cut: openvibe-sdk/compare with
createCompareClient, the same calls the bench client had, default base
https://openvibe.compare. openvibe-sdk/bench is gone in this release — no alias, no
second name for the same thing (the plan's no-compat rule), so every consumer moves in
its own pull request.

Exchange writes to Bench (an Arena round, a vote), so the origin moves too: OV_BENCH_URL
now defaults to https://openvibe.compare. The API's own audience does not move: the
service inside Compare still verifies tokens for openvibe.bench.

Changes

ddiff --git a/README.md b/README.md
iindex 519ec39..c789fb7 100644
---- a/README.md
++++ b/README.md
@@@ -93,7 +93,7 @@ AGPL-3.0-only. See [LICENSE](LICENSE).
<!-- versions:start -->
- openvibe-contracts: v0.419.0
--- openvibe-sdk: v0.167.0
++- openvibe-sdk: v0.168.0
- openvibe-shared: v4.247.0
- openvibe-publishing: v1.7.0
<!-- versions:end -->
ddiff --git a/STATUS.json b/STATUS.json
iindex a18f90c..66a5316 100644
---- a/STATUS.json
++++ b/STATUS.json
@@@ -9,11 +9,11 @@
"port": "5150",
"domain": "openvibe.exchange",
"contracts": "openvibe-contracts v0.419.0",
-- "sdk": "openvibe-sdk v0.167.0",
++ "sdk": "openvibe-sdk v0.168.0",
"shared": "openvibe-shared v4.247.0",
"packages": [
"openvibe-contracts v0.419.0",
-- "openvibe-sdk v0.167.0",
++ "openvibe-sdk v0.168.0",
"openvibe-shared v4.247.0"
],
"summary": "OpenVibe.Exchange is the network's AI front. It reads OpenVibe.AI's public catalog and aggregate usage and renders: the home (popular now, cheapest per million, uncensored, community machines, live numbers), /models and /m/<org>/<model> (every offer with price in/out, measured p50/p95, uptime and data policy, a Try it box, curl and the SDK), /chat (one to three models side by side, system prompt, temperature, history in the account, on openvibe-shared/thread), /api, /sell (Link's offer to the network; what is not sold, said plainly), /uncensored (an 18+ confirmation on the account and the hard floor) and /ai (which products run which models, and the daily cost). Chat and Try it are ai.complete runs on the person's behalf (on_behalf_of) with the service's ai.run.create token. Exchange v1 (free/swap listings, passports, sandboxes, installs, offers) is retired: every v1 page answers 410 with a pointer, its JSON API answers 410 exchange.retired, and its tables stay read-only; its tests live in test/retired/.",
ddiff --git a/package-lock.json b/package-lock.json
iindex 6ecf150..01d9ef1 100644
---- a/package-lock.json
++++ b/package-lock.json
@@@ -18,7 +18,7 @@
"multer": "^2.5.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.419.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.7.0",
-- "openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.167.0",
++ "openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.168.0",
"openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.247.0",
"pg": "^8.23.0"
},
@@@ -1302,9 +1302,8 @@
}
},
"node_modules/openvibe-sdk": {
-- "version": "0.167.0",
-- "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.167.0",
-- "integrity": "sha512-+oMgyRfLrditJXIJmS2NP2NW7hTIb77UoNEK+jjF+6+ZQKCDd8enq5lC+RiHWmdG6dFSbgCNDf6OCLbgeJrx7g==",
++ "version": "0.168.0",
++ "resolved": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.168.0",
"license": "MIT",
"bin": {
"openvibe-download": "bin/openvibe-download.js"
ddiff --git a/package.json b/package.json
iindex 326217d..1ca0726 100644
---- a/package.json
++++ b/package.json
@@@ -27,7 +27,7 @@
"multer": "^2.5.0",
"openvibe-contracts": "https://codeload.github.com/OpenVibers/OpenVibe.Contracts/tar.gz/refs/tags/v0.419.0",
"openvibe-publishing": "https://codeload.github.com/OpenVibers/OpenVibe.Publishing/tar.gz/refs/tags/v1.7.0",
-- "openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.167.0",
++ "openvibe-sdk": "https://codeload.github.com/OpenVibers/OpenVibe.SDK/tar.gz/refs/tags/v0.168.0",
"openvibe-shared": "https://codeload.github.com/OpenVibers/OpenVibe.Shared/tar.gz/refs/tags/v4.247.0",
"pg": "^8.23.0"
},
ddiff --git a/server/bench.js b/server/bench.js
iindex c726875..925c972 100644
---- a/server/bench.js
++++ b/server/bench.js
@@@ -21,7 +21,7 @@ async function jsonOf(res) {
}
function createBench({ config, fetchImpl = globalThis.fetch, log = console, now = () => Date.now() }) {
-- const shared = require('openvibe-sdk/bench').createBenchClient(require('openvibe-sdk/core').createClient({ fetch: fetchImpl, retries: 0 }), { baseUrl: config.bench.url });
++ const shared = require('openvibe-sdk/compare').createCompareClient(require('openvibe-sdk/core').createClient({ fetch: fetchImpl, retries: 0 }), { baseUrl: config.bench.url });
const tokens = config.oauth.clientSecret ? createServiceTokenClient({
tokenUrl: `${config.networkInternalUrl}/oauth/token`,
clientId: config.oauth.clientId, clientSecret: config.oauth.clientSecret,
ddiff --git a/server/compare.js b/server/compare.js
iindex 3706531..f06dda4 100644
---- a/server/compare.js
++++ b/server/compare.js
@@@ -528,7 +528,7 @@ function createCompare({ s, ai, bench, config = {}, now = () => Date.now(), log
fields: ['price', 'speed', 'uptime', 'requests', 'privacy', 'tier', 'context'],
},
{
-- name: 'OpenVibe.Bench boards', service: 'OpenVibe.Bench', url: `${config.bench && config.bench.url ? config.bench.url : 'https://bench.openvibe.services'}/api/v1/boards`,
++ name: 'OpenVibe.Bench boards', service: 'OpenVibe.Bench', url: `${config.bench && config.bench.url ? config.bench.url : 'https://openvibe.compare'}/api/v1/boards`,
read_at: q.at, fields: ['quality (Elo)', 'games', 'intervals'],
unavailable: Boolean(q.unavailable),
},
ddiff --git a/server/config.js b/server/config.js
iindex 3e15038..951c53e 100644
---- a/server/config.js
++++ b/server/config.js
@@@ -112,7 +112,7 @@ function load(env = process.env) {
// human_pairwise judgement, and the rankings read the board by task category. The token is this
// service's own client-credentials grant (bench.round.create, bench.judgement.cast, bench.board.read).
bench: {
-- url: trim(env.OV_BENCH_URL || 'https://bench.openvibe.services'),
++ url: trim(env.OV_BENCH_URL || 'https://openvibe.compare'),
audience: env.OV_BENCH_AUDIENCE || 'openvibe.bench',
scope: env.OV_BENCH_SCOPE || 'bench.round.create bench.judgement.cast bench.board.read',
timeoutMs: Math.max(2000, int(env.EXCHANGE_BENCH_TIMEOUT_MS, 15_000)),