mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-11-22 04:19:40 +00:00
Compare commits
1 Commits
chore/deri
...
docs/agent
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
b470798f23 |
20
.env.example
20
.env.example
@@ -891,19 +891,6 @@ ALLOW_API_KEY_REVEAL=false
|
||||
# Default: https://api.getnadir.com
|
||||
# OMNIROUTE_NADIR_BASE_URL=https://api.getnadir.com
|
||||
|
||||
# Opt-in for the `decision` auto-combo router strategy (feature flag; a dashboard DB
|
||||
# override wins). While off, decision combos read no credential, make no call and route
|
||||
# with the rules strategy.
|
||||
# Used by: open-sse/services/autoCombo/decisionStrategy.ts
|
||||
# Default: false
|
||||
# COMBO_DECISION_ROUTER_ENABLED=false
|
||||
|
||||
# Key for the `decision` router's network deciders (systemone, http), used when the
|
||||
# combo's config.decision.connectionId is unset (and, for systemone, no typesafe
|
||||
# connection is in scope). A combo never stores a key. Sensitive.
|
||||
# Used by: open-sse/services/decision/credentials.ts
|
||||
# OMNIROUTE_DECISION_API_KEY=
|
||||
|
||||
# Weekly window for per-API-key USD usage limits.
|
||||
# Used by: src/lib/usage/apiKeyUsageLimits.ts (request enforcement, key usage-limit
|
||||
# status, @@om-usage). Values: provider | calendar | Default: provider
|
||||
@@ -2626,13 +2613,6 @@ APP_LOG_TO_FILE=true
|
||||
# Used by: src/lib/healthzLag.ts (event-loop stall sampler). Disabled by default;
|
||||
# logs sizes and inflight count only, never bodies or heap snapshots.
|
||||
# OMNIROUTE_EVENT_LOOP_STALL_THRESHOLD_MS=0 stops that sampler, and this diagnostic with it.
|
||||
# Optional response header for troubleshooting Codex OAuth plan eligibility.
|
||||
# OFF by default: when enabled, API callers can see the recognized subscription tier
|
||||
# of the selected Codex connection in X-OmniRoute-Selected-Connection-Plan.
|
||||
# Do not enable on public/multi-tenant gateways if this account metadata is private.
|
||||
# Arbitrary/unrecognized plan values and non-Codex requests never get this header.
|
||||
# OMNIROUTE_CODEX_PLAN_RESPONSE_HEADER=0
|
||||
|
||||
# OMNIROUTE_HEAP_DIAGNOSTICS_ENABLED=0
|
||||
# Heap-use threshold in MiB for the opt-in diagnostic (default: 900).
|
||||
# A high-heap log is rate-limited to once per 60 seconds.
|
||||
|
||||
13
.github/workflows/release-acceptance.yml
vendored
13
.github/workflows/release-acceptance.yml
vendored
@@ -20,7 +20,6 @@ jobs:
|
||||
steps:
|
||||
- uses: actions/checkout@fbc6f3992d24b796d5a048ff273f7fcc4a7b6c09 # v5
|
||||
with:
|
||||
ref: ${{ github.sha }}
|
||||
persist-credentials: false
|
||||
- uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7
|
||||
with:
|
||||
@@ -29,13 +28,17 @@ jobs:
|
||||
- uses: ./.github/actions/npm-ci-retry
|
||||
with:
|
||||
cache: "false"
|
||||
- name: Validate and retain the live gate inventory
|
||||
run: node scripts/quality/release-acceptance/run-shadow.mjs "$RUNNER_TEMP/release-acceptance-shadow"
|
||||
- name: Emit shadow acceptance report
|
||||
run: |
|
||||
node scripts/quality/validate-release-acceptance.mjs \
|
||||
--plan tests/fixtures/release-acceptance/plan-lint.json \
|
||||
--manifests tests/fixtures/release-acceptance/shadow-manifests \
|
||||
--out release-acceptance-report.json
|
||||
continue-on-error: true
|
||||
- uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
|
||||
if: always()
|
||||
with:
|
||||
name: release-acceptance-report
|
||||
path: ${{ runner.temp }}/release-acceptance-shadow/
|
||||
if-no-files-found: error
|
||||
path: release-acceptance-report.json
|
||||
if-no-files-found: ignore
|
||||
retention-days: 30
|
||||
|
||||
398
.i18n-state.json
generated
398
.i18n-state.json
generated
@@ -2694,11 +2694,11 @@
|
||||
}
|
||||
},
|
||||
"README.md": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"locales": {
|
||||
"ar": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "0cad4dc1aeb83f99fa07255e0772b3a2c56187ac05bd5e4e2ad9f2c61605f563",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "1e1b1504fc1385378d03769be30f8fc58e6ac39399e15692765aba39344b8f0c",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2728,11 +2728,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"az": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "122e67edff7d3df2cbf0e34d978d0587ce299d97294f225b175e9a7e2642724d",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "d7f245bdce8bf0e9b3d8fc29ef313ed47ef253c4dabb574607b8cd4539452c06",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2762,11 +2762,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"bg": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "46f5755150a82e01eb35ab219c6f12cf4efbd32755069f268a47e54a933c67a4",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "21322a0d4d4415c22f3ff1d66c6dcd57d5fae200f70fee1886e11ed088718079",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2796,11 +2796,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"bn": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "d7f570d485eec82880e10002c73fe71ae236b58db3b5187a5815b0bd38bbd813",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "38e095a36755004af9200b354ebc806f87fd386d9c1af6bdbfe51b0702de0a62",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2830,11 +2830,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"cs": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "99717edbf7f6d5bcc72a56cffd523206ba77beffb774d3209f54854668042a5f",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "6eb929245959c9720f594b36c6a8ce76bb2d8eb7cd337e261534c2c9fd18f892",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2864,11 +2864,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"da": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "37a9bf4f306ce5b9a41a128e4efa1b7e8c30744b53045aba1f5f04852cb3c176",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "560ce8a457b7b1067e5518870cb2a070efc5dc6124ec0543649d67ba481c7de5",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2898,11 +2898,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"de": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "07d78d0cf24d390bf42f4e55da1d7dfa5b466b49feb3e27dec03de61ca96e8f6",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "5b248e94c2cbc55e2f4e74e12010698915ab37431690eca3cebf0d706f5ae6bb",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2932,11 +2932,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"es": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "30a25553f7859bf14263fcdfc53d2164bba472db0e6e951ea3144b584efadff7",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "a7ea49b28355cdf0d0a7b67e7c2bacee791fe34652a309670790d2b5a738959f",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -2966,11 +2966,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"fa": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "7e5e5f2795046ffa90cd0a8cdadab211c510797c63d72bd6ba34286c8c04a28b",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "e3a304e098ef7933b2b0d01703fa93153b2394d192a637c97b75ca17285fc8a2",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3000,11 +3000,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"fi": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "8e38057231f4fb466f7b007378efe1a340bf718c139f38740222e3e20bb76566",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "a7484d0b13813761d6c3809cc6dc7131853cbb3cadef634299f884e1baa8a178",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3034,11 +3034,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"fr": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "2e7005529f0b0b80ad6a344203fcddf19902ca5a296eda7eee9059310d8334cd",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "941c284de02c4359baaa835b65e77efa12d238cc5b363ea389bbe20d4b52e4fe",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3068,11 +3068,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"gu": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "fa203ac3d987c94bfc7d1053f45706a002d2ea41b1c93d0b7cdf367614282527",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "93e512a3172b409fd322fd030be74f21ef70ebe8482ae3f84d31ede48d51a4c6",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3102,11 +3102,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"he": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "912a01ffff2a340b4ec79b15d8be111c64ce75d96af4534065b2e6ccfc0631a7",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "91ed5acad5559c9c4e6217460b29a73e644a7d263554e55c23bbe4a5a62cdba2",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3136,11 +3136,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"hi": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "8c488d7d2ddabe7bc3999d22b4d1f9456e42e6b91b81ad7145b3524007325e2e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "b7939754829c3bb7240b91fab9ee4d4ff57734cd851087cd549789f499fb17aa",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3170,11 +3170,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"hu": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "a61ab5004813ccd26783741f53246844486bdf373434e7a0e91dccbad464d23a",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "fcb9a768ee73057104af3a3ac8263dd6de6d8d9ddc6f630e711fc1a1cd83025e",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3204,11 +3204,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"id": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "e8bb2787ce5950f6301f2cf83266d649b0177bf6acb9284eea588afed5ea516a",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "1a98522ea9a1332d472754eefec372d13b9d49a7b58d2b15d69e8bf3cc097479",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3238,11 +3238,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"it": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "6fa583e88ebc263415411e62076288f59900ae763fc6cf14c6f8805191ee1efc",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "aacb9655839a90f5db356c629f5e0323425c2cc6712f47fb6ce74c9e5c069dd8",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3272,11 +3272,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ja": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "26723ee4d94d4da30c3f5a0663386ebaddabbcf2442a85607241e97a192d1706",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "6f9b812aa15a7460e24264036d8ace535e29b64cf5ff045e8eb9e2de05035220",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3306,11 +3306,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ko": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "6b02bcff9a765f0fc0835cd93fd13a683badfe5e1cdabafca86622013c607984",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "bbbe0d440c2102b2f327594c9d791d8fcb759ae5e24b074ec5a2d911e3d93d7f",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3340,11 +3340,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"mr": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "7f1b10d110b9bbfe062f759546e2a55f0abc9bd44eeb2da895cc5063accde145",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "eb89d64880bd890eb6e48988487b89911973099ad739eb3acc023bab80189afe",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3374,11 +3374,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ms": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "dada785eed9aa04f3e0c54d654b324fe0f8a52cbfda760979dc2dc109e311136",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "ceb9468e94631c9e5b61fc791ba11f8773d6873239dda55298e5cf9baa86e430",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3408,11 +3408,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"nl": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "a03dfd033544fcf83a8600c40664cb81f34d1fca94461bef5faa468e890ad617",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "9786393af0ba8bee101fb868c8e21c8887aaa41cab9905de5277464ac6696045",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3442,11 +3442,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"no": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "618bbf32578745b794e99bbf734d1f24343394b15eba945af71828b29aac7b23",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "4e5b15e57ebeff6ee231b96889044131df68be0ee2232e5606aa58536bd7f029",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3476,11 +3476,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"phi": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "640c4d844ee5bfb3071721575a304eda0e7a028323d735578613a17ed1873378",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "f2ff5f185c5ee8e592ed10cae0565156affa808e18cc675a434c5d691e84b6c3",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3510,11 +3510,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"pl": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "d3fe18da59cb7a70255b14ada701247d53cf30411b033d87b56fc16ac9eae164",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "e4ddf1df71a67e2c62cc084242a23a05e5d3a7699d41eff67110c4b3c1695c3c",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3544,11 +3544,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"pt": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "f24a8da40b368fb390e41681970d87e82a89fc4861dfa256bc58b90df4fd93d6",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "bcfec9d631e3d0a56c7e44c3c85360f58798898911e44bfade158b85ffcb8bdf",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3578,11 +3578,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"pt-BR": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "9cf9ec2ef26a4f1aaaba147a963af9e267fc68b062e708463b591c7c707c3917",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "a6de0da3bd47d3c96807b5cf23563127b73d1b22eef02ac937a046218f095089",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3612,11 +3612,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ro": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "affe5162bad097148aff659451753578c3c9fb16994d1392c457ed0e3f73f5fe",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "e24c3f3b67e841dad78e023db499433e6643c8350f35ad2fdadeb8b622254c17",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3646,11 +3646,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ru": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "ed46b85a7a9b2f1e7da5a8e5579eb4d0bd1501d288b2d449a73d2a72ccdcbfb9",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "f0896383ce85563bdc8db3a889b5ecf3f0b25d3221fe80befa42233a428c15e2",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3680,11 +3680,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"sk": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "91005aa3654f1ac96e02a8e15f8f680a6329a30ecc68c1fa3a6a99ee9ca71135",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "946989861b27db68013d5f6a49d0ce889b01fd11ae23f12a29a1d0fc085fbc9f",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3714,11 +3714,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"sv": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "82c83bccbabf7871e1938170f75d9de4a0052982de0cd14f2b7129c691790dd2",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "e004bbcb30dc804952a832eddc181df3d7b6849a454899ba9d5915b2f95bb5b6",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3748,11 +3748,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"sw": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "4f74ef8bc45ddf05da9cba194dce0218144230d0d485f5439365ca0bd9c21094",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "4dd416a06035261aee8dd0628c6335a23dc399d49b708668779750950ac99af1",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3782,11 +3782,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ta": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "4421cdaeefff8e58d76ebd1e9b9786fe7310f5de7a1e9c973427c84b2846799b",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "e798b0b8fc49d237cdff82169c7752c7919f294c2df8be563f719e840b5af118",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3816,11 +3816,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"te": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "b5d09d8f2c15d78ddb9cb9fe927afafa035feca3bcc787899f8289d92639604e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "88239908f6578caeaaf315bb55f47671b51bfb3856a17af0d61f0eb8970d95c2",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3850,11 +3850,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"th": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "e231acea958bf90153615d270b1380466aa7ac25fa412f87eaee09bbe7bb3c76",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "ede091650e8197857233e1bd92f6260eb4340155ec0033626fac0a4e36d9ea00",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3884,11 +3884,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"tr": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "6f1cddfa5baf550c33389f8a30616ea39fab0cedff4699fa9899470d468d3672",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "25999ec82b42a79f6419899087c77233dfde35716d9b0eb50d3d90c14b3f24fd",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3918,11 +3918,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"uk-UA": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "d2079e0526ad7de22070c079af8cb6fae40f19305f2c0ead69179f3b9b545574",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "2d27523436f2332db90907b76229cef017948944e83b470723d9d733fc9c75c4",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3952,11 +3952,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ur": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "0138538acd381f0c05b5823ebb276cdfc59c0fa17d17bdc52e19746e7712b7ca",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "8c06414fd02376d9939b498beed55c75bb13125cde015fce2375fc4afe1dceb0",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -3986,11 +3986,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"vi": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "b8930d93156ec7303328e674d7824b67c80ba13eba6606cfafeed9022ba5049e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "b381c6a98e69070ff6b4b48ff070dd31f8548bb8bb9f8b09ece060056f122214",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4020,11 +4020,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"zh-CN": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "6ec0c5c569d06ed1297213c4468f1aebda26dfab1125b03e78c14199bafffd1e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "cc2254c10a9ceef6d98b70693e9729c0a7eba3265bc8b93866418d81dbb828e8",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4054,11 +4054,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"zh-TW": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "5998bdc915f58ce4581c6837fac7adc9506b79372b33447ae44462b3bc27427e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "45dd10a16412b524fe927619546d97e2e419a13707a153e4e8bca00289c92923",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4088,11 +4088,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"el": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "42d80caa74fd1c0fa1e3e587440ef7aa7ab42c392f777dab5dce35bc9caf81e0",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "4ceae959fa6690d07b3a604ce38db39747eacfc1edfd92797e73214f92f383ad",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4122,11 +4122,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"hr": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "287aeb7a7849f05aae43e413f8b680398053b34ff83134f733c30fecfd93a1ec",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "947e8922d5a51e75162786ae20665034ccafb0d6f63756ebad3bc640f24cca6a",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4156,11 +4156,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"sr": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "e497ec26f8780892222c37ef81941cd1fdd68c40ecb1ce9b1ea887fa65b6ecc8",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "e6604646739f11cae1544d257aa5ae25c4d04197dea10cdfb8f8cfaa2b2b0c51",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4190,11 +4190,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"lt": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "15df964b536b66f16ce4429c465ad9d76ab52a13b74946a0b8562f0740ea6e13",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "880ff6d527e422fbb61d7e046c71417da66553f1f24b4686cfe4c28d15db3342",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4224,11 +4224,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"et": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "548b922cebe4446b910dea1496bcd6749c662d66f020372db9fd9f61374b7aaa",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "3928294da1eef23ba34b0df490f55f99eaec8715b53759a11c2503e3d4304626",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4258,11 +4258,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"lv": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "aab26e8d1a5cc6c8c62adf671f789091f58ffdc3cbf226c9e755a521fe1b43a8",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "4d19fe72606ed2ebaf0d4f221cdeb7f0a4b90377bbb5227fba65aaaecb585520",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4292,11 +4292,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"sl": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "2e45bc58abd8c53c9d7b60fcd772c045f8e110e81b392e22ebd575d5423013f8",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "0f9a17c1f02b58f315e90566fdf427a71fc5d43e0d0338acf719cb9d5b4adb63",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4326,11 +4326,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"mt": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "7f94dae0e6d2c5c6edf503b69cbf1a9897acb76f35c9186fa3d627be44f20592",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "ecaaae4b9c699e4790008ab875ff83d004b1746879d7c784a0034ba2cedeb947",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4360,11 +4360,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ga": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "55ab5c8042cc9a94a7d0ff0bffa5aa1d73e0f970cf4a9cd7f428820c9c8ea54e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "d03a8b593397ba888f8dbf99122246efa92c9e346ff9e9acbafd06c7c22c1b9b",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4394,11 +4394,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"kn": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "f784b69a2e76eeaa79b27975728b8f0aae01591d6b34fa4c9a7575cf8c40511a",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "a3813b3a5602330b644748533abbeb67d41424949a81aa70167efd02b85c6536",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4428,11 +4428,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ml": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "b6230b14fc29f063cc8dce2dcaa2d192302cb031a310f7df78ce46e3463ea38a",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "12e984a75abe318e3b9bdba0e577c986507a26dfe35d9322c2d51e9c24327f36",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4462,11 +4462,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"or": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "ea4789cfd6fa167dc67cdbfe88440b39081b599c5513e3e6ee9db656a1be8816",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "c1341b011e7f76759497fe2831423c519a81df43f578eaff4f9fd2555275d9ce",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4496,11 +4496,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"pa": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "0dbbefbf23ed022826adfa4d32e68c3c8f6f8cf6d9889830ef962708968049bb",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "2c7f1b6b14df27d3d975e905bff19861a492198551d99a05dd7046b254681448",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4530,11 +4530,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ne": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "64afcf34ab37a79f5c5ac3549cd22aa5ee70acbc5e85c7ac7e95240f176b9d56",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "a4f36dcc0fb86c1e4467cefdc94b4d0c9a640f9dbad665767c7241974f39951b",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4564,11 +4564,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"si": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "d3ccafe8ef27cbe890e898c5e6dd4c95f45e1ea7e8cd4abc3d21aec882d665d1",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "45124933eae7298365047e87d1d8bb1b5df36b67a84e6ab89aa8e2d3ea148ee9",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4598,11 +4598,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"my": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "1d2a57a809eb4c0e725d0743ff2b7e097f23ebdd4c2ce38453177b49429500cd",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "44f5ff31a35786f9cc7154cdcb47c9e78245314b31227750961c2a67ea429e57",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4632,11 +4632,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"km": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "d3cce4e22b8ff869443f60ac29c893bd79e0d5a01c565ee259384acdf33f59cc",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "ddf89f94b639b43b32b8029a27f2dcaa75605b3592b4d5ec7603c007b9bcba9e",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4666,11 +4666,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ha": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "1572a975e73d26c5c5070401b8cb5b24c40fefa19e282dd305c3810e149814a2",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "d0799bf2d979d609065ebae6ba051b1c7e925b939f15e1172c2c302c674d2341",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4700,11 +4700,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"yo": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "744d10c82a890dda54c074e8887a812ae0dfb95b552a8bda173d79fa2740ffb8",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "afc784d52c277e8476ce5cc458d7272a4ccf6c801c826f5fea21827b019e85e5",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4734,11 +4734,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ig": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "81ca670cee5310ac4d06a56d1d247669cd5eec9bb9f417bd1771ffb2c4746b33",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "52bb6c85899f666c5fbc469a7b42194915250ccc403befb36e051a5aef673718",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4768,11 +4768,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"am": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "9291e0126dbf76f250852ea1d7eba0fa1292f881c5edb3eb6e6de0f99019f459",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "cc3869be181277282ebd6a4494ba0ebd2e57f2fcb019a0bd45ce7914d00bc779",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4802,11 +4802,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"uz": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "a4ecef54fe9f722fc4c999eeee9040ff4b08a23ef9e05463d76ec565961b7b87",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "948ce9287ee8ca6ac9747003916d101278f470154a11b8d7523280170dbea2f7",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4836,11 +4836,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"ka": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "5022efa846824f5b5c24f4849b3b64b2da772147fe2da8f1163c1b95f08e50f2",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "0bcca4322e4f28c6efe93b7229c849c162a5c4b04eba0c962a2cf83817722369",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4870,11 +4870,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"hy": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "ef0405d775397b124be8509f5ed59565b447c360898d202c99414169f891568e",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "9391d673e8618c21f190d1e67b08d66fad81e71794f70f9fbe376b1bd926d146",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4904,11 +4904,11 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
},
|
||||
"bs": {
|
||||
"source_hash": "c3d1fd2e2122c00afd9683446f39519b9201742b76b762db326949ffe5076c48",
|
||||
"target_hash": "1dd3a50fd89f4ebb1dfd9e9b6bdf9456141cf82825871a7311301832de43efa9",
|
||||
"source_hash": "67985cdef9b3782f10af45dd8d956ce8e5a39e23c256165a2b2944ed658dea6b",
|
||||
"target_hash": "a0f636034a0d4b84cc5fe86255c0733e51c967dbc74adc09d0d4b3010c19f023",
|
||||
"section_hashes": [
|
||||
"c46fc6936dba",
|
||||
"7f2c394e6ad6",
|
||||
@@ -4938,7 +4938,7 @@
|
||||
"fea6772f6209",
|
||||
"c168cf5c8ae7"
|
||||
],
|
||||
"updated_at": "2026-11-22T01:43:24.003Z"
|
||||
"updated_at": "2026-11-19T19:42:22.251Z"
|
||||
}
|
||||
}
|
||||
},
|
||||
|
||||
@@ -101,37 +101,35 @@ server reads it, not only in the shell that runs `opencode models`.
|
||||
|
||||
## Options
|
||||
|
||||
| Key | Default | Notes |
|
||||
| --------------------------------------- | ---------------------------------------------------------- | -------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `providerId` | `"omniroute"` | Provider id and integration id; models publish under `<providerId>/...` |
|
||||
| `baseURL` | required | OmniRoute gateway root (no `/v1` suffix needed) |
|
||||
| `apiKey` | connected credential, then `OMNIROUTE_API_KEY` | Chat key for `/v1/*` — see [Credentials](#credentials) |
|
||||
| `managementReadToken` | option, then `OMNIROUTE_MANAGEMENT_API_KEY`, then `apiKey` | Management key for `/api/*` (combos, providers, enrichment) — usually **not** the same key |
|
||||
| `displayName` | `"OmniRoute"` | Provider display name |
|
||||
| `timeoutMs` | `10000` | Per-endpoint fetch timeout |
|
||||
| `modelCacheTtlMs` | `300000` | Catalog cache TTL and background refresh period (minimum 60000 ms): the served catalog follows the gateway within this window, with no service restart; disk snapshot warms cold starts |
|
||||
| `timeouts` | per-endpoint override | `{ models, combos, enrichment }` in ms; falls back to `timeoutMs` (`autoCombos` still parses but is ignored — the virtual-entries route is no longer requested) |
|
||||
| `enrichment` | `true` | Fetch names + pricing (`/api/pricing*`, `/api/free-tier/summary`) |
|
||||
| `providerTag` | `true` | Toggle the trailing editor parenthesis: `Provider - Model (Editor)`. The provider (the route that serves the model: Openrouter, Opencode-go, Nvidia for `nvidia/...` ids) is always shown; the editor (who made the model: MoonshotAI, Meta, DeepSeek) appears only in the parenthesis. Example: `Openrouter - MoonshotAI: Kimi K 3.1 Pro` -> `Openrouter - Kimi K 3.1 Pro (MoonshotAI)`. The parenthesis is omitted when the editor shares the provider's name. Set `false` to drop it. |
|
||||
| `geminiSanitization` | `true` | Strip `$schema`/`additionalProperties` from tool schemas sent to Gemini models (`$ref` tools are forwarded untouched) |
|
||||
| `usableOnly` | `false` | Filter to healthy provisioned providers (`/api/providers`) |
|
||||
| `combosSource` | `"api"` | Combo source. `"api"` reads `/api/combos` and publishes a combo only when every member passes the filters; `"models"` skips that request and publishes the combo rows `/v1/models` serves. Any preset, `usableOnly`, `providersAllow` or visible/hidden list keeps `"api"` |
|
||||
| `freeOnly` / `toolsOnly` / `visionOnly` | `false` / `false` / `false` | Filter to free-tier / tool-calling / image-input models; combos with a filtered member are dropped, never partial. Presets filter the pool before the default view ranks it, and a combo publishes only when every resolved member passes (dropped when a member fails or none resolves) |
|
||||
| `freeSignals` | `["declared"]` | Extra signals that admit a model under `freeOnly`: `priced`, `named`, `provider-named` (see below) |
|
||||
| `freeProviders` | none | Provider prefixes counted as free by `provider-named` |
|
||||
| `showcasePerOwner` | `10` | Default-view entries kept per provider |
|
||||
| `freshPerOwner` | `10` | Default-view fresh entries kept per provider |
|
||||
| `freshWindowDays` | `90` | Freshness window in days for the fresh branch |
|
||||
| `usageMemory` | `true` | Restore statically dropped entries named by 30-day usage analytics (needs a management token; inert without one) |
|
||||
| `visibleModels` / `hiddenModels` | `[]` | Exact (`cc/keep-me`), suffix (`keep-me`), or branch (`prefix/*`) entries ; deny wins ; `"*"` publishes the full catalog and skips narrowing |
|
||||
| `providersAllow` | `[]` | Provider allowlist by flat name, or branch claim (`prefix/*`) for exhaustive mode ; a branch claim names a branch, a flat entry names a provider prefix |
|
||||
| `combos` | `true` | Set to `false` to hide every combo (no `/api/combos` request, no combo rows from `/v1/models`) ; models are unchanged |
|
||||
| `apiFormat.allowAnthropic` | `false` | Route allowlisted ids to the Anthropic API block |
|
||||
| `apiFormat.anthropicModels` | `[]` | Full model ids routed to Anthropic |
|
||||
| `apiFormat.anthropicPrefixes` | v1 defaults | Deprecated, warns once — prefer `anthropicModels` |
|
||||
| `modelOrder` | `provider → name → recency → id` | Ordered list of `{ key, direction }` pairs that sorts the published catalog; each entry is `{ key, direction?: "asc" \| "desc" }`. Keys: `provider` (upstream owner), `name` (display name), `recency` (release date), `free` (zero-cost first), `price` (input, then output cost), `context` (window size). Omitted `direction` uses the key's default — `asc` for `provider`, `name`, `free`, `price`; `desc` for `recency`, `context`. A missing release date or context window sorts last in either direction; an entry whose cost is all zero counts as free; `id` always breaks the final tie. Unknown key or direction fails the plugin load, naming the value and the supported set. **Default changed:** without this option the catalog used to publish in raw API arrival order and now publishes as `provider → name → recency → id`. An explicit `[]` equals the default. |
|
||||
| `telemetry` | `false` | Opt-in; marks inference requests through the host SDK hook when enabled |
|
||||
| `logLevel` / `startupDebug` | `warn` / `false` | Logger verbosity |
|
||||
| Key | Default | Notes |
|
||||
| --------------------------------------- | ---------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------- |
|
||||
| `providerId` | `"omniroute"` | Provider id and integration id; models publish under `<providerId>/...` |
|
||||
| `baseURL` | required | OmniRoute gateway root (no `/v1` suffix needed) |
|
||||
| `apiKey` | connected credential, then `OMNIROUTE_API_KEY` | Chat key for `/v1/*` — see [Credentials](#credentials) |
|
||||
| `managementReadToken` | option, then `OMNIROUTE_MANAGEMENT_API_KEY`, then `apiKey` | Management key for `/api/*` (combos, providers, enrichment) — usually **not** the same key |
|
||||
| `displayName` | `"OmniRoute"` | Provider display name |
|
||||
| `timeoutMs` | `10000` | Per-endpoint fetch timeout |
|
||||
| `modelCacheTtlMs` | `300000` | Catalog cache TTL and background refresh period (minimum 60000 ms): the served catalog follows the gateway within this window, with no service restart; disk snapshot warms cold starts |
|
||||
| `timeouts` | per-endpoint override | `{ models, combos, enrichment }` in ms; falls back to `timeoutMs` (`autoCombos` still parses but is ignored — the virtual-entries route is no longer requested) |
|
||||
| `enrichment` | `true` | Fetch names + pricing (`/api/pricing*`, `/api/free-tier/summary`) |
|
||||
| `providerTag` | `true` | Toggle the trailing editor parenthesis: `Provider - Model (Editor)`. The provider (the route that serves the model: Openrouter, Opencode-go, Nvidia for `nvidia/...` ids) is always shown; the editor (who made the model: MoonshotAI, Meta, DeepSeek) appears only in the parenthesis. Example: `Openrouter - MoonshotAI: Kimi K 3.1 Pro` -> `Openrouter - Kimi K 3.1 Pro (MoonshotAI)`. The parenthesis is omitted when the editor shares the provider's name. Set `false` to drop it. |
|
||||
| `geminiSanitization` | `true` | Strip `$schema`/`additionalProperties` from tool schemas sent to Gemini models (`$ref` tools are forwarded untouched) |
|
||||
| `usableOnly` | `false` | Filter to healthy provisioned providers (`/api/providers`) |
|
||||
| `combosSource` | `"api"` | Combo source. `"api"` reads `/api/combos` and publishes a combo only when every member passes the filters; `"models"` skips that request and publishes the combo rows `/v1/models` serves. Any preset, `usableOnly`, `providersAllow` or visible/hidden list keeps `"api"` |
|
||||
| `freeOnly` / `toolsOnly` / `visionOnly` | `false` / `false` / `false` | Filter to free-tier / tool-calling / image-input models; combos with a filtered member are dropped, never partial. Presets filter the pool before the default view ranks it, and a combo publishes only when every resolved member passes (dropped when a member fails or none resolves) |
|
||||
| `freeSignals` | `["declared"]` | Extra signals that admit a model under `freeOnly`: `priced`, `named`, `provider-named` (see below) |
|
||||
| `freeProviders` | none | Provider prefixes counted as free by `provider-named` |
|
||||
| `showcasePerOwner` | `10` | Default-view entries kept per provider |
|
||||
| `freshPerOwner` | `10` | Default-view fresh entries kept per provider |
|
||||
| `freshWindowDays` | `90` | Freshness window in days for the fresh branch |
|
||||
| `usageMemory` | `true` | Restore statically dropped entries named by 30-day usage analytics (needs a management token; inert without one) |
|
||||
| `visibleModels` / `hiddenModels` | `[]` | Exact (`cc/keep-me`), suffix (`keep-me`), or branch (`prefix/*`) entries ; deny wins ; `"*"` publishes the full catalog and skips narrowing |
|
||||
| `providersAllow` | `[]` | Provider allowlist by flat name, or branch claim (`prefix/*`) for exhaustive mode ; a branch claim names a branch, a flat entry names a provider prefix |
|
||||
| `combos` | `true` | Set to `false` to hide every combo (no `/api/combos` request, no combo rows from `/v1/models`) ; models are unchanged |
|
||||
| `apiFormat.allowAnthropic` | `false` | Route allowlisted ids to the Anthropic API block |
|
||||
| `apiFormat.anthropicModels` | `[]` | Full model ids routed to Anthropic |
|
||||
| `apiFormat.anthropicPrefixes` | v1 defaults | Deprecated, warns once — prefer `anthropicModels` |
|
||||
| `logLevel` / `startupDebug` | `warn` / `false` | Logger verbosity |
|
||||
|
||||
`toolsOnly` is off by default, so the full catalog is published. Set
|
||||
`toolsOnly: true` to hide models without tool calling from the host picker —
|
||||
|
||||
@@ -1,198 +0,0 @@
|
||||
/**
|
||||
* Configurable catalog ordering.
|
||||
*
|
||||
* `buildProviderPayload` historically published models in raw `Map` insertion
|
||||
* order (arrival order from the API), which the host surfaced as-is. This
|
||||
* module gives the operator an ordered list of criteria — each with a
|
||||
* direction — to apply to the published catalog. Without a setting the default
|
||||
* chain is `provider → name → recency → id`.
|
||||
*
|
||||
* It reproduces the `ownerKeyOf` (owner group) and `compareByRecency`
|
||||
* (release date, newest first, unknown = oldest) semantics from
|
||||
* `catalog-freshness.ts`; they are re-implemented here (not imported) because
|
||||
* that file is shared with the stacked freshness work and speaks the raw entry
|
||||
* shape, whereas the sort runs over the legacy shape held in the `collected`
|
||||
* map. An equivalence test pins the shared sample against `compareByRecency`.
|
||||
*/
|
||||
import type { LegacyModel } from "./legacy-model.js";
|
||||
|
||||
/** Sortable criteria, in the closed set the options schema accepts. */
|
||||
export const CATALOG_ORDER_KEYS = [
|
||||
"provider",
|
||||
"name",
|
||||
"recency",
|
||||
"free",
|
||||
"price",
|
||||
"context",
|
||||
] as const;
|
||||
|
||||
export type CatalogOrderKey = (typeof CATALOG_ORDER_KEYS)[number];
|
||||
|
||||
/** Direction values; `asc` = ascending, `desc` = descending. */
|
||||
export const CATALOG_ORDER_DIRECTIONS = ["asc", "desc"] as const;
|
||||
export type CatalogOrderDirection = (typeof CATALOG_ORDER_DIRECTIONS)[number];
|
||||
|
||||
/** One criterion in the ordered list. `direction` may be omitted. */
|
||||
export interface CatalogOrderSpec {
|
||||
key: CatalogOrderKey;
|
||||
direction?: CatalogOrderDirection;
|
||||
}
|
||||
|
||||
/**
|
||||
* Default chain applied when no `modelOrder` is set. `id` is the final tie
|
||||
* breaker and is never a user-selectable key.
|
||||
*/
|
||||
export const DEFAULT_CATALOG_ORDER: readonly CatalogOrderSpec[] = [
|
||||
{ key: "provider" },
|
||||
{ key: "name" },
|
||||
{ key: "recency" },
|
||||
];
|
||||
|
||||
/** Default direction per key when `direction` is omitted. */
|
||||
export function defaultDirectionFor(key: CatalogOrderKey): CatalogOrderDirection {
|
||||
switch (key) {
|
||||
case "name":
|
||||
case "provider":
|
||||
case "free":
|
||||
case "price":
|
||||
return "asc";
|
||||
case "recency":
|
||||
case "context":
|
||||
return "desc";
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* The sortable projection of one collected entry. Every field that can be
|
||||
* missing in the raw data is a sentinel (`NaN` / false) so the comparator can
|
||||
* rank "absent" last in either direction without crashing.
|
||||
*/
|
||||
export interface CatalogOrderEntry {
|
||||
/** Full collected key, `X/<provider>/<model>…`; final tie breaker (asc). */
|
||||
id: string;
|
||||
/**
|
||||
* Upstream owner = the prefix of the host-visible id (before the first
|
||||
* `/`), i.e. the same extraction as `ownerKeyOf`. NOT the plugin prefix
|
||||
* (`X`), which is identical for every entry and would leave the criterion
|
||||
* inert.
|
||||
*/
|
||||
provider: string;
|
||||
name: string;
|
||||
/** `Date.parse(release_date)`; absent/unparseable → `NaN` (= oldest). */
|
||||
releaseDateMs: number;
|
||||
/** True when every cost component is present and zero. */
|
||||
free: boolean;
|
||||
/** `cost.input`; absent/non-finite → `NaN`. */
|
||||
priceInput: number;
|
||||
/** `cost.output`; absent/non-finite → `NaN`. */
|
||||
priceOutput: number;
|
||||
/** `limit.context`; absent/non-finite → `NaN`. */
|
||||
context: number;
|
||||
}
|
||||
|
||||
function num(value: unknown): number {
|
||||
return typeof value === "number" && Number.isFinite(value) ? value : NaN;
|
||||
}
|
||||
|
||||
/**
|
||||
* Project a collected `(key, legacy)` pair into a sortable entry. The `key`
|
||||
* is `X/<provider>/<model>…`; the host-visible id is everything after the
|
||||
* first `/`, and its owner prefix is the `provider` criterion.
|
||||
*/
|
||||
export function toOrderEntry(key: string, legacy: LegacyModel): CatalogOrderEntry {
|
||||
const slash = key.indexOf("/");
|
||||
const bareId = slash > 0 ? key.slice(slash + 1) : legacy.id;
|
||||
const ownerSlash = bareId.indexOf("/");
|
||||
const provider = ownerSlash > 0 ? bareId.slice(0, ownerSlash) : bareId;
|
||||
|
||||
const cost = legacy.cost ?? ({} as LegacyModel["cost"]);
|
||||
const priceInput = num(cost.input);
|
||||
const priceOutput = num(cost.output);
|
||||
const cacheRead = num(cost.cache?.read);
|
||||
const cacheWrite = num(cost.cache?.write);
|
||||
const free = priceInput === 0 && priceOutput === 0 && cacheRead === 0 && cacheWrite === 0;
|
||||
|
||||
// The upstream map projects an absent context window to 0; only a finite,
|
||||
// strictly positive value is a real window. Anything else is absent, so the
|
||||
// entry ranks last on the `context` criterion in both directions.
|
||||
const rawContext = num(legacy.limit?.context);
|
||||
const context = rawContext > 0 ? rawContext : NaN;
|
||||
|
||||
return {
|
||||
id: key,
|
||||
provider,
|
||||
name: legacy.name ?? "",
|
||||
releaseDateMs: typeof legacy.release_date === "string" ? Date.parse(legacy.release_date) : NaN,
|
||||
free,
|
||||
priceInput,
|
||||
priceOutput,
|
||||
context,
|
||||
};
|
||||
}
|
||||
|
||||
/** Normalized text compare, case/punctuation-insensitive, natural numeric. */
|
||||
function compareText(a: string, b: string): number {
|
||||
const na = a.normalize("NFC").toLowerCase();
|
||||
const nb = b.normalize("NFC").toLowerCase();
|
||||
return na.localeCompare(nb, "en", { sensitivity: "base", numeric: true });
|
||||
}
|
||||
|
||||
/**
|
||||
* Compare two values for one criterion with a given direction. An absent
|
||||
* value (NaN) always ranks last regardless of direction; two absent values are
|
||||
* equal so the next criterion breaks the tie.
|
||||
*/
|
||||
function compareValue(a: number, b: number, direction: CatalogOrderDirection): number {
|
||||
const aAbs = Number.isNaN(a);
|
||||
const bAbs = Number.isNaN(b);
|
||||
if (aAbs && bAbs) return 0;
|
||||
if (aAbs) return 1; // absent always last
|
||||
if (bAbs) return -1;
|
||||
const diff = a - b;
|
||||
if (diff === 0) return 0;
|
||||
return direction === "asc" ? (diff < 0 ? -1 : 1) : diff < 0 ? 1 : -1;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build a comparator for the ordered criterion list. Criteria are applied in
|
||||
* written order; on equality it falls through to the next, and the final tie
|
||||
* is broken by `id` ascending (normalized).
|
||||
*/
|
||||
export function catalogOrderComparator(
|
||||
specs: readonly CatalogOrderSpec[]
|
||||
): (a: CatalogOrderEntry, b: CatalogOrderEntry) => number {
|
||||
const resolved: Array<{ key: CatalogOrderKey; dir: CatalogOrderDirection }> = specs.map(
|
||||
(spec) => ({ key: spec.key, dir: spec.direction ?? defaultDirectionFor(spec.key) })
|
||||
);
|
||||
|
||||
return (a, b) => {
|
||||
for (const { key, dir } of resolved) {
|
||||
let cmp: number;
|
||||
switch (key) {
|
||||
case "provider":
|
||||
cmp = compareText(a.provider, b.provider);
|
||||
break;
|
||||
case "name":
|
||||
cmp = compareText(a.name, b.name);
|
||||
break;
|
||||
case "recency":
|
||||
cmp = compareValue(a.releaseDateMs, b.releaseDateMs, dir);
|
||||
break;
|
||||
case "free":
|
||||
// free (0) vs paid (1): asc = free first, desc = paid first.
|
||||
cmp = compareValue(a.free ? 0 : 1, b.free ? 0 : 1, dir);
|
||||
break;
|
||||
case "price":
|
||||
cmp =
|
||||
compareValue(a.priceInput, b.priceInput, dir) ||
|
||||
compareValue(a.priceOutput, b.priceOutput, dir);
|
||||
break;
|
||||
case "context":
|
||||
cmp = compareValue(a.context, b.context, dir);
|
||||
break;
|
||||
}
|
||||
if (cmp !== 0) return cmp;
|
||||
}
|
||||
return compareText(a.id, b.id);
|
||||
};
|
||||
}
|
||||
@@ -8,13 +8,6 @@ import {
|
||||
type ProviderResolve,
|
||||
} from "./provider-filter.js";
|
||||
import type { LegacyModel } from "./legacy-model.js";
|
||||
import {
|
||||
catalogOrderComparator,
|
||||
DEFAULT_CATALOG_ORDER,
|
||||
toOrderEntry,
|
||||
type CatalogOrderEntry,
|
||||
type CatalogOrderSpec,
|
||||
} from "./catalog-order.js";
|
||||
import { isUserComboRow, usesModelsComboSource, type CombosSource } from "./combos-source.js";
|
||||
import {
|
||||
comboLookupName,
|
||||
@@ -57,7 +50,6 @@ import {
|
||||
mapComboToModelV2,
|
||||
mapRawModelToModelV2,
|
||||
usableProviderAliasSet,
|
||||
withInferredFreeLabel,
|
||||
} from "./shared/index.js";
|
||||
import {
|
||||
compileModelListFilter,
|
||||
@@ -136,11 +128,6 @@ export interface ResolvedOptions extends FreeOptions {
|
||||
toolsOnly?: boolean;
|
||||
visionOnly?: boolean;
|
||||
enrichment?: OmniRouteEnrichmentMap | boolean;
|
||||
/**
|
||||
* Ordered catalog sort criteria; each with an optional direction. Absent or
|
||||
* empty applies the default chain `provider → name → recency → id`.
|
||||
*/
|
||||
modelOrder?: readonly CatalogOrderSpec[];
|
||||
/**
|
||||
* Per-provider showcase size. Absent means the catalog default
|
||||
* (`SHOWCASE_PER_OWNER`); direct callers keep working without it.
|
||||
@@ -747,7 +734,7 @@ async function publishCombos(
|
||||
} satisfies CapabilityPresetFlags)
|
||||
)
|
||||
continue;
|
||||
if (comboInferred) mapped.name = withInferredFreeLabel(mapped.name, INFERRED_FREE_LABEL);
|
||||
if (comboInferred) mapped.name += INFERRED_FREE_LABEL;
|
||||
const mid = mapped.id.startsWith(X + "/") ? mapped.id.slice(X.length + 1) : mapped.id;
|
||||
const key = X + "/" + mid;
|
||||
if (publishedKeys.has(key)) {
|
||||
@@ -1001,7 +988,7 @@ export async function collectCatalog(
|
||||
)
|
||||
continue;
|
||||
afterPresets += 1;
|
||||
if (inferred) mapped.name = withInferredFreeLabel(mapped.name, INFERRED_FREE_LABEL);
|
||||
if (inferred) mapped.name += INFERRED_FREE_LABEL;
|
||||
const mid = mapped.id.startsWith(X + "/") ? mapped.id.slice(X.length + 1) : mapped.id;
|
||||
const key = X + "/" + mid;
|
||||
collected.set(key, mapped);
|
||||
@@ -1054,7 +1041,7 @@ export async function collectCatalog(
|
||||
} satisfies CapabilityPresetFlags)
|
||||
)
|
||||
continue;
|
||||
if (restoreInferred) mapped.name = withInferredFreeLabel(mapped.name, INFERRED_FREE_LABEL);
|
||||
if (restoreInferred) mapped.name += INFERRED_FREE_LABEL;
|
||||
const mid = mapped.id.startsWith(X + "/") ? mapped.id.slice(X.length + 1) : mapped.id;
|
||||
const key = X + "/" + mid;
|
||||
collected.set(key, mapped);
|
||||
@@ -1158,14 +1145,7 @@ export function buildProviderPayload(
|
||||
integrationID: X,
|
||||
} as unknown as StableProviderInfo;
|
||||
const models: StableModelInfo[] = [];
|
||||
const specs =
|
||||
opts.modelOrder && opts.modelOrder.length > 0 ? opts.modelOrder : DEFAULT_CATALOG_ORDER;
|
||||
const ordered: Array<{ key: string; legacy: LegacyModel; entry: CatalogOrderEntry }> = [
|
||||
...collected.entries,
|
||||
].map(([key, legacy]) => ({ key, legacy, entry: toOrderEntry(key, legacy) }));
|
||||
const compare = catalogOrderComparator(specs);
|
||||
ordered.sort((a, b) => compare(a.entry, b.entry));
|
||||
for (const { key, legacy } of ordered) {
|
||||
for (const [key, legacy] of collected.entries) {
|
||||
const slash = key.indexOf("/");
|
||||
const bareId = slash > 0 ? key.slice(slash + 1) : legacy.id;
|
||||
models.push(legacyToStable(X, bareId, legacy, opts.apiKey, opts.baseURL));
|
||||
|
||||
@@ -35,7 +35,6 @@ import {
|
||||
parsePluginOptions,
|
||||
resolveTimeouts,
|
||||
toResolvedOptions,
|
||||
warnOnIgnoredFreeSignals,
|
||||
} from "./options.js";
|
||||
|
||||
/**
|
||||
@@ -103,7 +102,6 @@ export default Plugin.define({
|
||||
`[omniroute-plugin] [WARN] host log probe failed, keeping console output: ${err instanceof Error ? err.message : String(err)}`
|
||||
);
|
||||
}
|
||||
warnOnIgnoredFreeSignals(ctx.options, parsed, (message) => log.warn(message));
|
||||
log.info(`[omniroute-v2] init providerId=${X}`);
|
||||
// The inference key stands in below when no management token is set, and
|
||||
// gateways usually reject that stand-in with 401/403. Say so once here,
|
||||
|
||||
@@ -60,7 +60,7 @@ export interface LegacyModel {
|
||||
limit: {
|
||||
context: number;
|
||||
input?: number;
|
||||
output?: number;
|
||||
output: number;
|
||||
};
|
||||
status: "alpha" | "beta" | "deprecated" | "active";
|
||||
options: {
|
||||
|
||||
@@ -2,29 +2,9 @@ import { z } from "zod";
|
||||
|
||||
import { DEFAULT_MODEL_CACHE_TTL_MS } from "./cache.js";
|
||||
import type { ResolvedOptions } from "./catalog.js";
|
||||
import {
|
||||
CATALOG_ORDER_DIRECTIONS,
|
||||
CATALOG_ORDER_KEYS,
|
||||
type CatalogOrderSpec,
|
||||
} from "./catalog-order.js";
|
||||
import { DEFAULT_FREE_SIGNALS, FREE_SIGNALS } from "./shared/free-signals.js";
|
||||
import { isHttpUrl } from "./shared/models-map.js";
|
||||
|
||||
const catalogOrderSpecSchema = z
|
||||
.object({
|
||||
key: z.enum(CATALOG_ORDER_KEYS, {
|
||||
error: (issue) =>
|
||||
`invalid modelOrder key ${JSON.stringify(issue.input)}: expected one of ${CATALOG_ORDER_KEYS.join(" | ")}`,
|
||||
}),
|
||||
direction: z
|
||||
.enum(CATALOG_ORDER_DIRECTIONS, {
|
||||
error: (issue) =>
|
||||
`invalid modelOrder direction ${JSON.stringify(issue.input)}: expected one of ${CATALOG_ORDER_DIRECTIONS.join(" | ")}`,
|
||||
})
|
||||
.optional(),
|
||||
})
|
||||
.strict();
|
||||
|
||||
const apiFormatSchema = z
|
||||
.object({
|
||||
allowAnthropic: z.boolean().optional(),
|
||||
@@ -102,11 +82,6 @@ const pluginOptionsSchema = z
|
||||
// declarations bound for a Gemini model. On by default — leaving them in
|
||||
// fails the whole request with 400 INVALID_ARGUMENT.
|
||||
geminiSanitization: z.boolean().default(true),
|
||||
// Ordered list of catalog sort criteria; each carries an optional
|
||||
// direction. Absent applies the default chain (provider, name, recency);
|
||||
// an empty list means the same. An unknown key or direction is rejected
|
||||
// at load, naming the offending value and the supported set.
|
||||
modelOrder: z.array(catalogOrderSpecSchema).optional(),
|
||||
// Toggle for the trailing editor parenthesis. The provider (the route that
|
||||
// serves the model: Openrouter, Opencode-go, Nvidia for `nvidia/...` ids)
|
||||
// is always shown; the editor (who made the model: MoonshotAI, Meta,
|
||||
@@ -219,30 +194,9 @@ export function toResolvedOptions(parsed: PluginOptions): ResolvedOptions {
|
||||
freshWindowDays: parsed.freshWindowDays,
|
||||
usageMemory: parsed.usageMemory,
|
||||
enrichment: parsed.enrichment,
|
||||
modelOrder: parsed.modelOrder,
|
||||
};
|
||||
}
|
||||
|
||||
/**
|
||||
* Warn at startup when `freeSignals` is supplied without `freeOnly`. The extra
|
||||
* signals only matter under `freeOnly`, so with it off they are accepted by the
|
||||
* schema but ignored: tell the operator instead of failing silently. Pure —
|
||||
* the caller owns the sink, so tests can observe the message without booting
|
||||
* the plugin. The published catalog is never changed by this notice.
|
||||
*/
|
||||
export function warnOnIgnoredFreeSignals(
|
||||
raw: unknown,
|
||||
parsed: PluginOptions,
|
||||
warn: (message: string) => void
|
||||
): void {
|
||||
if (raw === null || typeof raw !== "object") return;
|
||||
if (!("freeSignals" in raw)) return;
|
||||
if (parsed.freeOnly === true) return;
|
||||
warn(
|
||||
"freeSignals is set but freeOnly is false; the extra signals are ignored and the published catalog is unchanged."
|
||||
);
|
||||
}
|
||||
|
||||
/**
|
||||
* The host reads the plugin id from the module, before any option is known, so
|
||||
* it cannot carry the configured provider id. Publishing two gateways from one
|
||||
|
||||
@@ -125,7 +125,7 @@ export function inferFreeSignal(id: string, ctx: FreeSignalContext): boolean {
|
||||
return false;
|
||||
}
|
||||
|
||||
export const INFERRED_FREE_LABEL = "🆓? ";
|
||||
export const INFERRED_FREE_LABEL = " (free, inferred)";
|
||||
|
||||
export interface FreeOptions {
|
||||
freeOnly?: boolean;
|
||||
|
||||
@@ -328,7 +328,7 @@ export function mapRawModelToModelV2(
|
||||
limit: {
|
||||
context: typeof raw.context_length === "number" ? raw.context_length : 0,
|
||||
...(typeof raw.max_input_tokens === "number" ? { input: raw.max_input_tokens } : {}),
|
||||
...(typeof raw.max_output_tokens === "number" ? { output: raw.max_output_tokens } : {}),
|
||||
output: typeof raw.max_output_tokens === "number" ? raw.max_output_tokens : 0,
|
||||
},
|
||||
...(variants ? { variants } : {}),
|
||||
status: "active",
|
||||
|
||||
@@ -167,13 +167,12 @@ export function formatFreeBudget(params: {
|
||||
creditTokens?: number;
|
||||
}): string {
|
||||
const { freeType, monthlyTokens = 0, creditTokens = 0 } = params;
|
||||
const quota = "(usage-based quota)";
|
||||
|
||||
switch (freeType) {
|
||||
case "recurring-daily":
|
||||
return monthlyTokens > 0 ? `${fmtTokens(monthlyTokens)} tokens/day` : quota;
|
||||
return `${fmtTokens(monthlyTokens)} tokens/day`;
|
||||
case "recurring-monthly":
|
||||
return monthlyTokens > 0 ? `${fmtTokens(monthlyTokens)} tokens/month` : quota;
|
||||
return `${fmtTokens(monthlyTokens)} tokens/month`;
|
||||
case "recurring-credit":
|
||||
return `${fmtTokens(creditTokens)} credits`;
|
||||
case "recurring-uncapped":
|
||||
@@ -254,14 +253,6 @@ export interface ModelDisplayNameParams {
|
||||
function stripFreeMarkers(text: string): { text: string; wasFree: boolean } {
|
||||
let cleaned = text.trim();
|
||||
let wasFree = false;
|
||||
// An upstream free glyph may sit anywhere in the model name — parenthesised
|
||||
// at the end (`QwQ 32B (🆓)`) or inside a variant tag (`FP8 Fast 🆓 ~150`).
|
||||
// Remove it wherever it appears so the plugin prefix stays the only one.
|
||||
const withoutGlyph = cleaned.replace(/\s{0,8}\(🆓\)\s{0,8}|\s{0,8}🆓\s{0,8}/g, " ");
|
||||
if (withoutGlyph.length !== cleaned.length) {
|
||||
wasFree = true;
|
||||
cleaned = withoutGlyph.trim();
|
||||
}
|
||||
const withoutPrefix = cleaned.replace(/^\[free\]\s{0,8}/i, "");
|
||||
if (withoutPrefix.length !== cleaned.length) {
|
||||
wasFree = true;
|
||||
@@ -281,21 +272,6 @@ function stripFreeMarkers(text: string): { text: string; wasFree: boolean } {
|
||||
return { text: cleaned.length > 0 ? cleaned : text.trim(), wasFree };
|
||||
}
|
||||
|
||||
/**
|
||||
* Apply the inferred-free marker as a single leading label. An upstream `Free`
|
||||
* in the name can leave a full `🆓 ` prefix on the built name, and older rows
|
||||
* carried a trailing ` (free, inferred)` suffix; both are removed so exactly
|
||||
* one marker remains, at the head. `label` is passed in by the caller (never
|
||||
* imported here) to keep the free-signals -> naming dependency acyclic.
|
||||
*/
|
||||
export function withInferredFreeLabel(name: string, label: string): string {
|
||||
let cleaned = name.trim();
|
||||
cleaned = cleaned.replace(/^🆓\??\s{0,8}/, "");
|
||||
cleaned = cleaned.replace(/\s{0,8}\(free,\s*inferred\)\s{0,8}$/i, "").trim();
|
||||
if (cleaned.startsWith(label)) return cleaned;
|
||||
return `${label}${cleaned}`;
|
||||
}
|
||||
|
||||
/**
|
||||
* Build the display name for one entry.
|
||||
*
|
||||
|
||||
@@ -1,356 +0,0 @@
|
||||
import { describe, it } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import { buildProviderPayload, collectCatalog, type CollectedCatalog } from "../src/catalog.js";
|
||||
import { parsePluginOptions } from "../src/options.js";
|
||||
import { compareByRecency } from "../src/catalog-freshness.js";
|
||||
import {
|
||||
catalogOrderComparator,
|
||||
DEFAULT_CATALOG_ORDER,
|
||||
toOrderEntry,
|
||||
type CatalogOrderEntry,
|
||||
type CatalogOrderSpec,
|
||||
} from "../src/catalog-order.js";
|
||||
import type { LegacyModel } from "../src/legacy-model.js";
|
||||
import type { OmniRouteRawModelEntry } from "../src/shared/models-map.js";
|
||||
|
||||
const baseOpts = {
|
||||
providerId: "omniroute",
|
||||
baseURL: "https://gw.example.com",
|
||||
apiKey: "k",
|
||||
timeoutMs: 1000,
|
||||
modelCacheTtlMs: 300000,
|
||||
usableOnly: false,
|
||||
};
|
||||
|
||||
type Raw = OmniRouteRawModelEntry;
|
||||
|
||||
/** Publish through the production reader (collectCatalog) and return the payload. */
|
||||
async function publish(
|
||||
rawModels: Raw[],
|
||||
opts: Record<string, unknown> = {},
|
||||
enrichment: Map<string, unknown> = new Map()
|
||||
): Promise<{ collected: CollectedCatalog; payload: { info: unknown; models: unknown[] } }> {
|
||||
const all = { ...baseOpts, ...opts };
|
||||
const collected = await collectCatalog(all as never, {
|
||||
fetcher: async () => rawModels,
|
||||
combosFetcher: async () => [],
|
||||
enrichmentFetcher: async () => enrichment,
|
||||
});
|
||||
const payload = buildProviderPayload(collected, all as never);
|
||||
return { collected, payload };
|
||||
}
|
||||
|
||||
function ids(payload: { models: unknown[] }): string[] {
|
||||
return payload.models.map((m) => String((m as { id: string }).id));
|
||||
}
|
||||
|
||||
describe("published catalog order", () => {
|
||||
it("defaults to provider, then name, then newest release date, then id — and is deterministic", async () => {
|
||||
const raw: Raw[] = [
|
||||
{ id: "zz/zeta-9", release_date: "2026-01-05T00:00:00Z" },
|
||||
{ id: "ac/alpha-2", release_date: "2026-01-09T00:00:00Z" },
|
||||
{ id: "ac/alpha-1", release_date: "2026-01-02T00:00:00Z" },
|
||||
];
|
||||
const { collected, payload } = await publish(raw);
|
||||
assert.deepEqual(ids(payload), ["ac/alpha-1", "ac/alpha-2", "zz/zeta-9"]);
|
||||
// Two projections of the same collected map agree, including on a
|
||||
// same-name tie resolved by recency (newest first).
|
||||
const again = buildProviderPayload(collected, { ...baseOpts } as never);
|
||||
assert.deepEqual(ids(again), ids(payload));
|
||||
|
||||
const tied = await publish(
|
||||
[
|
||||
{ id: "ac/b1", release_date: "2026-01-02T00:00:00Z" },
|
||||
{ id: "ac/b2", release_date: "2026-01-09T00:00:00Z" },
|
||||
],
|
||||
{},
|
||||
new Map([
|
||||
["ac/b1", { name: "Same" }],
|
||||
["ac/b2", { name: "Same" }],
|
||||
])
|
||||
);
|
||||
// The published set never keeps two equal display names: the catalog
|
||||
// disambiguates the collision with a route suffix ("… (ac/b1)",
|
||||
// "… (ac/b2)"), so the pair is ordered by those names.
|
||||
assert.deepEqual(ids(tied.payload), ["ac/b1", "ac/b2"]);
|
||||
// On an equal display name the default chain resolves recency-descending
|
||||
// before the id: "ac/b2" is newer, so it leads despite the larger id.
|
||||
const older = {
|
||||
...toOrderEntry("omniroute/ac/b1", noCostLegacy()),
|
||||
name: "Same",
|
||||
releaseDateMs: Date.parse("2026-01-02T00:00:00Z"),
|
||||
};
|
||||
const newer = {
|
||||
...toOrderEntry("omniroute/ac/b2", noCostLegacy()),
|
||||
name: "Same",
|
||||
releaseDateMs: Date.parse("2026-01-09T00:00:00Z"),
|
||||
};
|
||||
const byDefault = catalogOrderComparator(DEFAULT_CATALOG_ORDER);
|
||||
assert.equal(byDefault(newer, older) < 0, true);
|
||||
assert.equal(byDefault(older, newer) > 0, true);
|
||||
});
|
||||
|
||||
it("sorts by name with a fixed, case- and number-aware collation", async () => {
|
||||
const raw: Raw[] = [
|
||||
{ id: "ac/model-10" },
|
||||
{ id: "ac/MODEL-C" },
|
||||
{ id: "ac/model-2" },
|
||||
{ id: "ac/model-1" },
|
||||
];
|
||||
const { payload } = await publish(raw, { modelOrder: [{ key: "name" } as CatalogOrderSpec] });
|
||||
assert.deepEqual(ids(payload), ["ac/model-1", "ac/model-2", "ac/model-10", "ac/MODEL-C"]);
|
||||
});
|
||||
|
||||
it("sorts by recency, newest first by default, oldest first on asc — matching the freshness recency order", async () => {
|
||||
const raw: Raw[] = [
|
||||
{ id: "ac/mar", release_date: "2026-03-01T00:00:00Z" },
|
||||
{ id: "ac/jan", release_date: "2026-01-15T00:00:00Z" },
|
||||
{ id: "ac/dec", release_date: "2025-12-01T00:00:00Z" },
|
||||
];
|
||||
const desc = await publish(raw, { modelOrder: [{ key: "recency" }] });
|
||||
assert.deepEqual(ids(desc.payload), ["ac/mar", "ac/jan", "ac/dec"]);
|
||||
const asc = await publish(raw, { modelOrder: [{ key: "recency", direction: "asc" }] });
|
||||
assert.deepEqual(ids(asc.payload), ["ac/dec", "ac/jan", "ac/mar"]);
|
||||
// Same dates, same newest-first order as the shared freshness comparator.
|
||||
const expected = [...raw].sort(compareByRecency).map((m) => m.id);
|
||||
assert.deepEqual(ids(desc.payload), expected);
|
||||
});
|
||||
|
||||
it("sorts by free: zero-cost models first on asc, paid first on desc", async () => {
|
||||
const raw: Raw[] = [{ id: "ac/paid" }, { id: "ac/free" }];
|
||||
const enrichment = new Map([["ac/paid", { pricing: { input: 1, output: 2 } }]]);
|
||||
const asc = await publish(raw, { modelOrder: [{ key: "free" }] }, enrichment);
|
||||
assert.deepEqual(ids(asc.payload), ["ac/free", "ac/paid"]);
|
||||
const desc = await publish(
|
||||
raw,
|
||||
{ modelOrder: [{ key: "free", direction: "desc" }] },
|
||||
enrichment
|
||||
);
|
||||
assert.deepEqual(ids(desc.payload), ["ac/paid", "ac/free"]);
|
||||
});
|
||||
|
||||
it("sorts by price: cheaper first on input, then output; absent cost never counts as zero", async () => {
|
||||
const raw: Raw[] = [{ id: "ac/pricy" }, { id: "ac/mid" }, { id: "ac/cheap" }];
|
||||
const enrichment = new Map([
|
||||
["ac/cheap", { pricing: { input: 0.1, output: 0.2 } }],
|
||||
["ac/mid", { pricing: { input: 0.1, output: 0.5 } }],
|
||||
["ac/pricy", { pricing: { input: 0.9, output: 0.2 } }],
|
||||
]);
|
||||
const asc = await publish(raw, { modelOrder: [{ key: "price" }] }, enrichment);
|
||||
assert.deepEqual(ids(asc.payload), ["ac/cheap", "ac/mid", "ac/pricy"]);
|
||||
const desc = await publish(
|
||||
raw,
|
||||
{ modelOrder: [{ key: "price", direction: "desc" }] },
|
||||
enrichment
|
||||
);
|
||||
assert.deepEqual(ids(desc.payload), ["ac/pricy", "ac/mid", "ac/cheap"]);
|
||||
|
||||
// A legacy entry with no cost block at all: absent prices rank last in
|
||||
// both directions, they are never compared as zero.
|
||||
const noCost = {
|
||||
id: "ac/no-cost",
|
||||
name: "no cost",
|
||||
capabilities: {
|
||||
temperature: true,
|
||||
reasoning: false,
|
||||
attachment: false,
|
||||
toolcall: false,
|
||||
input: { text: true, audio: false, image: false, video: false, pdf: false },
|
||||
output: { text: true, audio: false, image: false, video: false, pdf: false },
|
||||
interleaved: false,
|
||||
},
|
||||
limit: { context: 8192, output: 1024 },
|
||||
status: "active" as const,
|
||||
options: {},
|
||||
headers: {},
|
||||
release_date: "2026-01-01T00:00:00Z",
|
||||
providerID: "ac",
|
||||
api: { id: "ac/no-cost", url: "https://gw.example.com/v1", npm: "@ai-sdk/openai-compatible" },
|
||||
} as unknown as LegacyModel;
|
||||
const priced = {
|
||||
...noCost,
|
||||
cost: { input: 0.1, output: 0.2, cache: { read: 0, write: 0 } },
|
||||
} as LegacyModel;
|
||||
const absent = toOrderEntry("omniroute/ac/no-cost", noCost);
|
||||
const present = toOrderEntry("omniroute/ac/priced", priced);
|
||||
assert.ok(Number.isNaN(absent.priceInput));
|
||||
assert.ok(absent.free === false, "an entry without a cost block is not free");
|
||||
const cmpAsc = catalogOrderComparator([{ key: "price" }]);
|
||||
assert.ok(cmpAsc(absent, present) > 0, "absent price ranks last on asc");
|
||||
const cmpDesc = catalogOrderComparator([{ key: "price", direction: "desc" }]);
|
||||
assert.ok(cmpDesc(absent, present) > 0, "absent price ranks last on desc");
|
||||
});
|
||||
|
||||
it("sorts by context window: largest first by default, smallest first on asc", async () => {
|
||||
const raw: Raw[] = [
|
||||
{ id: "ac/small", context_length: 8192 },
|
||||
{ id: "ac/big", context_length: 131072 },
|
||||
{ id: "ac/mid", context_length: 32768 },
|
||||
];
|
||||
const desc = await publish(raw, { modelOrder: [{ key: "context" }] });
|
||||
assert.deepEqual(ids(desc.payload), ["ac/big", "ac/mid", "ac/small"]);
|
||||
const asc = await publish(raw, { modelOrder: [{ key: "context", direction: "asc" }] });
|
||||
assert.deepEqual(ids(asc.payload), ["ac/small", "ac/mid", "ac/big"]);
|
||||
// An entry without a window ranks last in both directions.
|
||||
const withNone = await publish([{ id: "ac/none" }, { id: "ac/small", context_length: 8192 }], {
|
||||
modelOrder: [{ key: "context" }],
|
||||
});
|
||||
assert.deepEqual(ids(withNone.payload), ["ac/small", "ac/none"]);
|
||||
const withNoneAsc = await publish(
|
||||
[{ id: "ac/none" }, { id: "ac/small", context_length: 8192 }],
|
||||
{
|
||||
modelOrder: [{ key: "context", direction: "asc" }],
|
||||
}
|
||||
);
|
||||
assert.deepEqual(ids(withNoneAsc.payload), ["ac/small", "ac/none"]);
|
||||
});
|
||||
|
||||
it("applies a chained list: free, then provider, then name", async () => {
|
||||
const raw: Raw[] = [{ id: "zz/paid" }, { id: "ac/free" }, { id: "ac/paid" }, { id: "zz/free" }];
|
||||
const enrichment = new Map([
|
||||
["ac/paid", { pricing: { input: 3, output: 1 } }],
|
||||
["zz/paid", { pricing: { input: 0.01, output: 0.01 } }],
|
||||
]);
|
||||
const { payload } = await publish(
|
||||
raw,
|
||||
{ modelOrder: [{ key: "free" }, { key: "provider" }, { key: "name" }] },
|
||||
enrichment
|
||||
);
|
||||
assert.deepEqual(ids(payload), ["ac/free", "zz/free", "ac/paid", "zz/paid"]);
|
||||
});
|
||||
|
||||
it("rejects an unknown key or direction at load, naming the value and the supported set", () => {
|
||||
assert.throws(
|
||||
() =>
|
||||
parsePluginOptions({ baseURL: "https://gw.example.com", modelOrder: [{ key: "zorg" }] }),
|
||||
(err: Error) =>
|
||||
err.message.includes("zorg") &&
|
||||
err.message.includes("provider | name | recency | free | price | context")
|
||||
);
|
||||
assert.throws(
|
||||
() =>
|
||||
parsePluginOptions({
|
||||
baseURL: "https://gw.example.com",
|
||||
modelOrder: [{ key: "name", direction: "up" }],
|
||||
}),
|
||||
(err: Error) => err.message.includes('"up"') && err.message.includes("asc | desc")
|
||||
);
|
||||
// A valid list parses and carries through.
|
||||
const parsed = parsePluginOptions({
|
||||
baseURL: "https://gw.example.com",
|
||||
modelOrder: [{ key: "free" }, { key: "name", direction: "desc" }],
|
||||
});
|
||||
assert.deepEqual(parsed.modelOrder, [{ key: "free" }, { key: "name", direction: "desc" }]);
|
||||
});
|
||||
|
||||
it("ranks absent data last without throwing, and id breaks the final tie", async () => {
|
||||
const raw: Raw[] = [
|
||||
{ id: "ac/undated" },
|
||||
{ id: "ac/dated", release_date: "2026-01-01T00:00:00Z" },
|
||||
];
|
||||
// An absent date ranks last in BOTH directions (never treated as zero),
|
||||
// so the dated model leads either way.
|
||||
const desc = await publish(raw, { modelOrder: [{ key: "recency" }] });
|
||||
assert.deepEqual(ids(desc.payload), ["ac/dated", "ac/undated"]);
|
||||
const asc = await publish(raw, { modelOrder: [{ key: "recency", direction: "asc" }] });
|
||||
assert.deepEqual(ids(asc.payload), ["ac/dated", "ac/undated"]);
|
||||
|
||||
// Two entries both absent on every criterion: the id decides, ascending.
|
||||
const a = { ...toOrderEntry("omniroute/ac/a", noCostLegacy()), releaseDateMs: NaN };
|
||||
const b = { ...toOrderEntry("omniroute/ac/b", noCostLegacy()), releaseDateMs: NaN };
|
||||
assert.equal(catalogOrderComparator([])(a, b) < 0, true);
|
||||
assert.equal(catalogOrderComparator([])(b, a) > 0, true);
|
||||
});
|
||||
|
||||
function noCostLegacy(): LegacyModel {
|
||||
return {
|
||||
id: "ac/x",
|
||||
name: "x",
|
||||
capabilities: {
|
||||
temperature: true,
|
||||
reasoning: false,
|
||||
attachment: false,
|
||||
toolcall: false,
|
||||
input: { text: true, audio: false, image: false, video: false, pdf: false },
|
||||
output: { text: true, audio: false, image: false, video: false, pdf: false },
|
||||
interleaved: false,
|
||||
},
|
||||
limit: { context: 0, output: 0 },
|
||||
status: "active" as const,
|
||||
options: {},
|
||||
headers: {},
|
||||
release_date: "",
|
||||
providerID: "ac",
|
||||
api: { id: "ac/x", url: "https://gw.example.com/v1", npm: "@ai-sdk/openai-compatible" },
|
||||
} as LegacyModel;
|
||||
}
|
||||
|
||||
it("ignores insertion order: permuted arrival gives the same published list", async () => {
|
||||
const base: Raw[] = [
|
||||
{ id: "ac/a1", release_date: "2026-01-01T00:00:00Z", context_length: 1000 },
|
||||
{ id: "ac/a2", release_date: "2026-02-01T00:00:00Z", context_length: 2000 },
|
||||
{ id: "zz/z1", release_date: "2026-03-01T00:00:00Z", context_length: 3000 },
|
||||
{ id: "zz/z2", release_date: "2026-04-01T00:00:00Z", context_length: 4000 },
|
||||
];
|
||||
const opts = { modelOrder: [{ key: "name" }] };
|
||||
const first = await publish(base, opts);
|
||||
const second = await publish(
|
||||
[...base].reverse().sort(() => 0.5 - Math.random()),
|
||||
opts
|
||||
);
|
||||
assert.deepEqual(ids(first.payload), ids(second.payload));
|
||||
});
|
||||
|
||||
it("keeps every field: a permuted arrival publishes identical models per id", async () => {
|
||||
const base: Raw[] = [
|
||||
{ id: "ac/a1", release_date: "2026-01-01T00:00:00Z", context_length: 1000 },
|
||||
{ id: "zz/z1", release_date: "2026-02-01T00:00:00Z", context_length: 2000 },
|
||||
];
|
||||
const enrichment = new Map([
|
||||
["ac/a1", { name: "A One", pricing: { input: 1, output: 2 } }],
|
||||
["zz/z1", { name: "Z One", pricing: { input: 3, output: 4 } }],
|
||||
]);
|
||||
const opts = { modelOrder: [{ key: "name" }] };
|
||||
const first = await publish(base, opts, enrichment);
|
||||
const second = await publish([...base].reverse(), opts, enrichment);
|
||||
const byId = (p: { models: unknown[] }) =>
|
||||
Object.fromEntries(p.models.map((m) => [String((m as { id: string }).id), m]));
|
||||
assert.deepEqual(byId(second.payload), byId(first.payload));
|
||||
assert.equal(Object.keys(byId(second.payload)).length, 2);
|
||||
});
|
||||
|
||||
it("documents modelOrder in the README: every key, its default, and the default chain", () => {
|
||||
const readme = readFileSync(new URL("../README.md", import.meta.url), "utf8");
|
||||
const line = readme.split("\n").find((l) => l.includes("`modelOrder`"));
|
||||
assert.ok(line, "README options table has a modelOrder row");
|
||||
for (const key of ["provider", "name", "recency", "free", "price", "context"]) {
|
||||
assert.ok(line!.includes(key), `README row names the "${key}" key`);
|
||||
}
|
||||
assert.ok(line!.includes("provider → name → recency → id"), "README names the default chain");
|
||||
});
|
||||
|
||||
it("builds stateless comparators: repeated and interleaved calls agree", () => {
|
||||
const entry = (id: string, extra: Partial<CatalogOrderEntry> = {}): CatalogOrderEntry => ({
|
||||
id,
|
||||
provider: "ac",
|
||||
name: "x",
|
||||
releaseDateMs: NaN,
|
||||
free: false,
|
||||
priceInput: 1,
|
||||
priceOutput: 1,
|
||||
context: 100,
|
||||
...extra,
|
||||
});
|
||||
const low = catalogOrderComparator([{ key: "name" }]);
|
||||
const high = catalogOrderComparator([{ key: "name" }]);
|
||||
const a = entry("omniroute/ac/a", { name: "z" });
|
||||
const b = entry("omniroute/ac/b", { name: "a" });
|
||||
const c = entry("omniroute/ac/c", { name: "b" });
|
||||
const d = entry("omniroute/ac/d", { name: "m" });
|
||||
const first = low(a, b);
|
||||
assert.equal(low(c, d) < 0, true, "second pair sorts on its own values");
|
||||
assert.equal(low(a, b), first, "same pair, same result, no retained state");
|
||||
assert.equal(Math.sign(low(a, b)), Math.sign(high(b, a) * -1), "two comparators agree");
|
||||
});
|
||||
});
|
||||
@@ -102,7 +102,7 @@ describe("freeSignals", () => {
|
||||
}
|
||||
);
|
||||
assert.deepEqual([...m.keys()], ["omniroute/nv/a"]);
|
||||
assert.match(String(m.get("omniroute/nv/a")?.name), /^🆓\? /);
|
||||
assert.match(String(m.get("omniroute/nv/a")?.name), /\(free, inferred\)$/);
|
||||
});
|
||||
|
||||
it("priced skips router segments whose zero is a placeholder", async () => {
|
||||
@@ -284,7 +284,7 @@ describe("freeSignals", () => {
|
||||
});
|
||||
const names = [...draft.models.values()].map((m) => String(m.name));
|
||||
assert.ok(
|
||||
names.every((n) => /^🆓\? /.test(n)),
|
||||
names.every((n) => /\(free, inferred\)$/.test(n)),
|
||||
names.join("|")
|
||||
);
|
||||
});
|
||||
@@ -295,7 +295,7 @@ describe("freeSignals", () => {
|
||||
visibleModels: ["*"],
|
||||
});
|
||||
assert.deepEqual([...m.keys()], ["omniroute/nv/a"]);
|
||||
assert.match(String(m.get("omniroute/nv/a")?.name), /^🆓\? /);
|
||||
assert.match(String(m.get("omniroute/nv/a")?.name), /\(free, inferred\)$/);
|
||||
});
|
||||
|
||||
it("a restored entry named by usage follows the same signals and label", async () => {
|
||||
@@ -318,7 +318,7 @@ describe("freeSignals", () => {
|
||||
}
|
||||
);
|
||||
assert.ok(draft.models.has("omniroute/nv/target"));
|
||||
assert.match(String(draft.models.get("omniroute/nv/target")?.name), /^🆓\? /);
|
||||
assert.match(String(draft.models.get("omniroute/nv/target")?.name), /\(free, inferred\)$/);
|
||||
});
|
||||
|
||||
it("provider-named with a non-empty overlay warns the declared ratio", async () => {
|
||||
@@ -363,35 +363,6 @@ describe("freeSignals gate cases", () => {
|
||||
});
|
||||
assert.equal(m.size, 0);
|
||||
});
|
||||
|
||||
it("an inferred model named in Free shows one leading marker and keeps its disambiguation id", async () => {
|
||||
const named = (): Entry => ({
|
||||
name: "Nemotron 3.5 Lightning Free",
|
||||
providerAlias: "bzl",
|
||||
providerCanonical: "bzl",
|
||||
providerDisplayName: "Bazaarlink",
|
||||
pricing: zero,
|
||||
});
|
||||
const m = await run(
|
||||
["bzl/nemotron-3.5-lightning-free", "bzl/nvidia"],
|
||||
new Map<string, Entry>([
|
||||
["bzl/nemotron-3.5-lightning-free", named()],
|
||||
["bzl/nvidia", named()],
|
||||
]),
|
||||
{ freeSignals: ["priced"] }
|
||||
);
|
||||
const first = String(m.get("omniroute/bzl/nemotron-3.5-lightning-free")?.name);
|
||||
const second = String(m.get("omniroute/bzl/nvidia")?.name);
|
||||
assert.equal(
|
||||
first,
|
||||
"🆓? Bazaarlink - Nemotron 3.5 Lightning (bzl/nemotron-3.5-lightning-free)"
|
||||
);
|
||||
assert.equal(second, "🆓? Bazaarlink - Nemotron 3.5 Lightning (bzl/nvidia)");
|
||||
assert.equal((first.match(/🆓/g) ?? []).length, 1);
|
||||
assert.equal((second.match(/🆓/g) ?? []).length, 1);
|
||||
assert.ok(!first.includes("(free, inferred)") && !second.includes("(free, inferred)"));
|
||||
assert.notEqual(first, second);
|
||||
});
|
||||
});
|
||||
|
||||
describe("freeSignals options", () => {
|
||||
|
||||
@@ -71,27 +71,6 @@ describe("compact model names", () => {
|
||||
assert.equal(name, "🆓 opencode-go - beam");
|
||||
});
|
||||
|
||||
it("strips an upstream free glyph wherever it sits, keeping one leading marker", () => {
|
||||
const trailing = buildModelDisplayName({
|
||||
rawId: "cloudflare-ai/@cf/qwen/qwq-32b",
|
||||
enrichmentName: "QwQ 32B (🆓)",
|
||||
providerDisplayName: "Cloudflare-ai",
|
||||
isFree: true,
|
||||
});
|
||||
assert.equal(trailing, "🆓 Cloudflare-ai - QwQ 32B");
|
||||
assert.equal((trailing.match(/🆓/g) ?? []).length, 1);
|
||||
|
||||
const inline = buildModelDisplayName({
|
||||
rawId: "cloudflare-ai/@cf/meta/llama-3.3-70b",
|
||||
enrichmentName: "Llama 3.3 70B (FP8 Fast 🆓 ~150 resp/day)",
|
||||
providerDisplayName: "Cloudflare-ai",
|
||||
isFree: true,
|
||||
});
|
||||
assert.ok(inline.startsWith("🆓 Cloudflare-ai - Llama 3.3 70B"), inline);
|
||||
assert.equal((inline.match(/🆓/g) ?? []).length, 1);
|
||||
assert.ok(!inline.includes("(FP8 Fast 🆓"), inline);
|
||||
});
|
||||
|
||||
it("keeps colliding entries distinct with a route suffix", async () => {
|
||||
const raw = await entriesThroughReader([
|
||||
{ id: "opencode-go/claude-haiku-5-5", owned_by: "opencode-go", context_length: 1000 },
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
import { describe, it } from "node:test";
|
||||
import assert from "node:assert/strict";
|
||||
import { readFileSync } from "node:fs";
|
||||
import {
|
||||
integrationIdFor,
|
||||
parsePluginOptions,
|
||||
@@ -8,7 +7,6 @@ import {
|
||||
providerIdFor,
|
||||
resolveTimeouts,
|
||||
toResolvedOptions,
|
||||
warnOnIgnoredFreeSignals,
|
||||
} from "../src/options.js";
|
||||
import { buildModelDisplayName } from "../src/shared/naming.js";
|
||||
|
||||
@@ -317,43 +315,3 @@ describe("resolved relay defaults", () => {
|
||||
assert.equal(resolved.freeProviders, undefined);
|
||||
});
|
||||
});
|
||||
|
||||
describe("README options table", () => {
|
||||
it("documents telemetry as opt-in and keeps autoCombos marked as ignored", () => {
|
||||
const readme = readFileSync(new URL("../README.md", import.meta.url), "utf8");
|
||||
const telemetryRow = readme.split("\n").find((line) => line.includes("`telemetry`"));
|
||||
assert.ok(telemetryRow, "README must document the telemetry option");
|
||||
assert.match(telemetryRow, /`false`/);
|
||||
assert.match(
|
||||
telemetryRow,
|
||||
/opt-in; marks inference requests through the host SDK hook when enabled/i
|
||||
);
|
||||
assert.match(readme, /still parses but is ignored/);
|
||||
});
|
||||
});
|
||||
|
||||
describe("warnOnIgnoredFreeSignals", () => {
|
||||
const MESSAGE =
|
||||
"freeSignals is set but freeOnly is false; the extra signals are ignored and the published catalog is unchanged.";
|
||||
|
||||
it("warns exactly once when freeSignals is set without freeOnly", () => {
|
||||
const raw = { baseURL: "https://gw.example.com", freeSignals: ["priced"] };
|
||||
const warns: string[] = [];
|
||||
warnOnIgnoredFreeSignals(raw, parsePluginOptions(raw), (msg) => void warns.push(msg));
|
||||
assert.deepEqual(warns, [MESSAGE]);
|
||||
});
|
||||
|
||||
it("stays silent when freeSignals is absent", () => {
|
||||
const raw = { baseURL: "https://gw.example.com" };
|
||||
const warns: string[] = [];
|
||||
warnOnIgnoredFreeSignals(raw, parsePluginOptions(raw), (msg) => void warns.push(msg));
|
||||
assert.deepEqual(warns, []);
|
||||
});
|
||||
|
||||
it("stays silent when freeOnly is true", () => {
|
||||
const raw = { baseURL: "https://gw.example.com", freeSignals: ["priced"], freeOnly: true };
|
||||
const warns: string[] = [];
|
||||
warnOnIgnoredFreeSignals(raw, parsePluginOptions(raw), (msg) => void warns.push(msg));
|
||||
assert.deepEqual(warns, []);
|
||||
});
|
||||
});
|
||||
|
||||
@@ -226,25 +226,12 @@ describe("v1-vs-v2 catalog parity", () => {
|
||||
providerId: "omniroute",
|
||||
baseURL: TEST_OPTS.baseURL,
|
||||
});
|
||||
const expectedPayload = JSON.parse(
|
||||
JSON.stringify({ ...(expected as object), providerID: undefined, name: undefined })
|
||||
);
|
||||
// Documented exclusion: v1 filled a missing gateway `max_output_tokens`
|
||||
// with `limit.output: 0`; v2 leaves `limit.output` out instead of
|
||||
// publishing a zero output limit the gateway never stated.
|
||||
if (typeof entry.max_output_tokens !== "number") {
|
||||
assert.equal(expectedPayload.limit.output, 0, `v1 recorded a zero output for ${entry.id}`);
|
||||
assert.equal(
|
||||
"output" in viaShared.limit,
|
||||
false,
|
||||
`v2 omits limit.output for ${entry.id} when the gateway does not state it`
|
||||
);
|
||||
delete expectedPayload.limit.output;
|
||||
}
|
||||
|
||||
assert.deepEqual(
|
||||
JSON.parse(JSON.stringify({ ...viaShared, providerID: undefined, name: undefined })),
|
||||
expectedPayload,
|
||||
JSON.parse(
|
||||
JSON.stringify({ ...(expected as object), providerID: undefined, name: undefined })
|
||||
),
|
||||
`model mapper parity for ${entry.id}`
|
||||
);
|
||||
}
|
||||
|
||||
@@ -91,12 +91,4 @@ describe("mapRawModelToModelV2", () => {
|
||||
);
|
||||
assert.ok(!("variants" in without));
|
||||
});
|
||||
it("omits limit.output when the gateway does not publish max_output_tokens", () => {
|
||||
const m = mapRawModelToModelV2(
|
||||
{ id: "ovh-free/gpt-oss-120b", context_length: 128000 },
|
||||
{ providerId: "omniroute", baseURL: "https://gw.example.com" }
|
||||
);
|
||||
assert.equal(m.limit.context, 128000);
|
||||
assert.ok(!("output" in m.limit));
|
||||
});
|
||||
});
|
||||
|
||||
@@ -49,15 +49,8 @@ test("formatFreeBudget: discontinued has no token/credit args", () => {
|
||||
assert.equal(formatFreeBudget({ freeType: "discontinued" }), "(discontinued)");
|
||||
});
|
||||
|
||||
test("formatFreeBudget: a daily quota not stated in tokens is labelled explicitly", () => {
|
||||
assert.equal(formatFreeBudget({ freeType: "recurring-daily" }), "(usage-based quota)");
|
||||
});
|
||||
|
||||
test("formatFreeBudget: a monthly quota of zero is labelled explicitly too", () => {
|
||||
assert.equal(
|
||||
formatFreeBudget({ freeType: "recurring-monthly", monthlyTokens: 0 }),
|
||||
"(usage-based quota)"
|
||||
);
|
||||
test("formatFreeBudget: missing token/credit counts default to 0", () => {
|
||||
assert.equal(formatFreeBudget({ freeType: "recurring-daily" }), "0 tokens/day");
|
||||
});
|
||||
|
||||
test("formatFreeBudget: unknown future value renders its own name, never empty", () => {
|
||||
|
||||
31
AGENTS.md
31
AGENTS.md
@@ -326,12 +326,33 @@ If red: never treat or "fix" the inherited failures in your branch (a base-red f
|
||||
freeze-gated `fix/release-vX.Y.Z-basereds` PR); a PR opened anyway carries
|
||||
`⚠️ base-red inherited: #<issue>` in its body. Full procedure: `docs/ops/WORKTREE_ISOLATION.md`.
|
||||
|
||||
### Sync-back landings are fast-forward, never squash
|
||||
### Landing on a release branch: omni-queue
|
||||
|
||||
A `main → release/vX+1` sync-back lands as the merge commit it already is
|
||||
(`git push origin <head>:refs/heads/release/vX+1`), never squashed — a squash drops `main` from
|
||||
the release ancestry and the next sync-back re-conflicts on every file (551 on v3.8.50 → v3.8.51).
|
||||
After landing, `git merge-base --is-ancestor origin/main origin/release/vX+1` must be true.
|
||||
`release/vX.Y.Z` branches are served by the project's merge queue (runbook:
|
||||
[`docs/ops/OMNI_QUEUE.md`](docs/ops/OMNI_QUEUE.md)). Read its `mode` in
|
||||
`config/merge-queue/config.json` on the default branch before landing anything:
|
||||
|
||||
- **`shadow`** — the queue tests but lands nothing; merges are manual. Green checks on a PR head
|
||||
prove the PR against the base they ran on, not against today's base, so before a manual merge
|
||||
apply the `omni-queue` label at the PR's final head and wait for the queue's verdict on that
|
||||
head (`npm run queue -- why <PR>`, `npm run queue -- history --base <branch>`): `would-land` →
|
||||
merge; `culprit-found` / `would-dequeue` → do not merge, fix first. A merge train whose full CI
|
||||
is green on the current base tip, or a head that already contains the base tip, needs no
|
||||
separate verdict.
|
||||
- **`live`** — the `omni-queue` label is the landing. Never run a merge command or push against
|
||||
the branch: its ruleset refuses both.
|
||||
|
||||
Apply the label only to a PR the owner authorized you to land; a PR that touches a protected path
|
||||
also needs `protected-approved`, which is the owner's decision per PR. Never push to
|
||||
`omni-queue-state` or `omni-queue/**`.
|
||||
|
||||
### Sync-back landings are merge commits, never squash
|
||||
|
||||
A `main → release/vX+1` sync-back lands through a pull request merged with a merge commit
|
||||
(`scripts/release/sync-next-cycle.mjs` opens it; the default branch refuses a direct push), never
|
||||
squashed — a squash drops `main` from the release ancestry and the next sync-back re-conflicts on
|
||||
every file (551 on v3.8.50 → v3.8.51). After landing,
|
||||
`git merge-base --is-ancestor origin/main origin/release/vX+1` must be true.
|
||||
Steps + baseline-freeze check: `docs/ops/WORKTREE_ISOLATION.md` → "Sync-back landings".
|
||||
|
||||
---
|
||||
|
||||
@@ -1325,7 +1325,7 @@ Métricas canônicas em 2026-10-18: **1.976 vídeos únicos** · **20.220.289 vi
|
||||
<tr><td nowrap><b>Runtime</b></td><td>Node.js 22.x / 24.x LTS — <code>>=22.22.2 <23 || >=24.0.0 <27</code></td></tr>
|
||||
<tr><td nowrap><b>Language</b></td><td>TypeScript 6.0 — <b>100% TypeScript</b> across <code>src/</code> and <code>open-sse/</code> (zero <code>any</code> in core since v2.0)</td></tr>
|
||||
<tr><td nowrap><b>Framework</b></td><td>Next.js 16 + React 19 + Tailwind CSS 4</td></tr>
|
||||
<tr><td nowrap><b>Database</b></td><td>better-sqlite3 (SQLite, WAL journaling) + LowDB (JSON legacy) — 147 domain modules, 246 migrations</td></tr>
|
||||
<tr><td nowrap><b>Database</b></td><td>better-sqlite3 (SQLite, WAL journaling) + LowDB (JSON legacy) — 147 domain modules, 244 migrations</td></tr>
|
||||
<tr><td nowrap><b>Memory</b></td><td>SQLite FTS5 full-text + int8-quantized vector embeddings, typed decay</td></tr>
|
||||
<tr><td nowrap><b>Schemas</b></td><td>Zod 4 — MCP tool I/O validation + API contracts</td></tr>
|
||||
<tr><td nowrap><b>Protocols</b></td><td>MCP (stdio / HTTP / SSE) + A2A v0.3 (JSON-RPC 2.0 + SSE)</td></tr>
|
||||
|
||||
@@ -11,7 +11,7 @@ import {
|
||||
writeFileSync,
|
||||
} from "node:fs";
|
||||
import { createCipheriv, createDecipheriv, randomBytes, scryptSync } from "node:crypto";
|
||||
import { dirname, join, extname, basename, resolve } from "node:path";
|
||||
import { dirname, join, extname, basename } from "node:path";
|
||||
import { Readable } from "node:stream";
|
||||
import { pipeline } from "node:stream/promises";
|
||||
import { resolveDataDir } from "../data-dir.mjs";
|
||||
@@ -56,7 +56,6 @@ export function registerBackup(program) {
|
||||
.option("--cron <expr>", t("backup.auto.cronOpt"), "0 3 * * *")
|
||||
.option("--cloud", t("backup.cloudOpt"))
|
||||
.option("--encrypt", t("backup.encryptOpt"))
|
||||
.option("--key-file <path>", t("backup.keyFileOpt"))
|
||||
.option("--retention <n>", t("backup.retentionOpt"), parseInt)
|
||||
.action(async (opts) => {
|
||||
const exitCode = await runBackupAutoEnableCommand(opts);
|
||||
@@ -193,16 +192,7 @@ export async function runBackupCommand(opts = {}) {
|
||||
let passphrase = null;
|
||||
if (opts.encrypt) {
|
||||
if (opts.keyFile) {
|
||||
try {
|
||||
passphrase = readFileSync(opts.keyFile, "utf8").trim();
|
||||
} catch (err) {
|
||||
console.error(`Cannot read key file ${opts.keyFile}: ${err?.code || "read error"}`);
|
||||
return 1;
|
||||
}
|
||||
if (!passphrase) {
|
||||
console.error(t("backup.noPassphrase"));
|
||||
return 1;
|
||||
}
|
||||
passphrase = readFileSync(opts.keyFile, "utf8").trim();
|
||||
} else {
|
||||
passphrase = await promptPassphrase();
|
||||
if (!passphrase) {
|
||||
@@ -346,29 +336,11 @@ function getSchedulePath() {
|
||||
|
||||
export async function runBackupAutoEnableCommand(opts = {}) {
|
||||
const schedulePath = getSchedulePath();
|
||||
let keyFile;
|
||||
if (opts.encrypt) {
|
||||
// A scheduled run has no TTY, so an encrypted schedule needs a key file.
|
||||
// Persist the absolute PATH only (never the passphrase): the server cwd
|
||||
// differs from the CLI cwd.
|
||||
if (!opts.keyFile) {
|
||||
console.error("Encrypted automatic backups need --key-file <path> (no TTY on a schedule).");
|
||||
return 1;
|
||||
}
|
||||
keyFile = resolve(String(opts.keyFile));
|
||||
try {
|
||||
if (!readFileSync(keyFile, "utf8").trim()) throw new Error("empty");
|
||||
} catch {
|
||||
console.error(`Key file ${keyFile} is missing, unreadable or empty.`);
|
||||
return 1;
|
||||
}
|
||||
}
|
||||
const schedule = {
|
||||
enabled: true,
|
||||
cron: opts.cron || "0 3 * * *",
|
||||
cloud: !!opts.cloud,
|
||||
encrypt: !!opts.encrypt,
|
||||
...(keyFile ? { keyFile } : {}),
|
||||
retention: opts.retention || null,
|
||||
updatedAt: new Date().toISOString(),
|
||||
};
|
||||
@@ -403,10 +375,7 @@ export async function runBackupAutoStatusCommand() {
|
||||
console.log(` cron: ${schedule.cron}`);
|
||||
console.log(` cloud: ${schedule.cloud ? "yes" : "no"}`);
|
||||
console.log(` encrypt: ${schedule.encrypt ? "yes" : "no"}`);
|
||||
if (schedule.keyFile) console.log(` key-file: ${schedule.keyFile}`);
|
||||
console.log(` retention: ${schedule.retention ?? "unlimited"}`);
|
||||
if (schedule.lastRunAt) console.log(` last run: ${schedule.lastRunAt}`);
|
||||
if (schedule.lastError) console.log(` last error: ${schedule.lastError}`);
|
||||
return 0;
|
||||
}
|
||||
|
||||
|
||||
@@ -187,17 +187,8 @@ export function registerResilience(program) {
|
||||
.option("--threshold <n>", t("resilience.config.threshold"), parseInt)
|
||||
.option("--reset-timeout <ms>", t("resilience.config.resetTimeout"), parseInt)
|
||||
.option("--base-cooldown <ms>", t("resilience.config.baseCooldown"), parseInt)
|
||||
.option("--p2c-latency-weight <0-20>", t("resilience.config.p2cLatencyWeight"), parseInt)
|
||||
.action(async (opts, cmd) => {
|
||||
const body = {};
|
||||
if (opts.p2cLatencyWeight != null) {
|
||||
const w = opts.p2cLatencyWeight;
|
||||
if (!Number.isInteger(w) || w < 0 || w > 20) {
|
||||
process.stderr.write("Error: --p2c-latency-weight must be an integer from 0 to 20\n");
|
||||
process.exit(1);
|
||||
}
|
||||
body.p2cLatency = { weight: w };
|
||||
}
|
||||
if (opts.threshold != null) body.threshold = opts.threshold;
|
||||
if (opts.resetTimeout != null) body.resetTimeoutMs = opts.resetTimeout;
|
||||
if (opts.baseCooldown != null) body.baseCooldownMs = opts.baseCooldown;
|
||||
|
||||
@@ -31,25 +31,11 @@ import {
|
||||
profileNameFromModelId,
|
||||
} from "./setup-codex.mjs";
|
||||
|
||||
// Claude Code effortLevel values, lowest first. `minimal`/`none` are catalog tiers but not
|
||||
// Claude Code levels, so they are never a clamp target.
|
||||
const CLAUDE_EFFORT_LEVELS = ["low", "medium", "high", "xhigh", "max"];
|
||||
|
||||
/**
|
||||
* Map a Codex-style effort to a Claude Code settings.json effortLevel.
|
||||
* Codex categories use xhigh/high/low/undefined; Claude Code accepts the same names. Omitted
|
||||
* for the "simple" tier. When the catalog row lists the model's `effort_tiers`, a level it
|
||||
* does not offer is lowered to the highest listed level below it, and omitted when none fits.
|
||||
*/
|
||||
function effortLevelFor(cfg, effortTiers) {
|
||||
const wanted = cfg?.effort || undefined;
|
||||
const tiers = Array.isArray(effortTiers) ? effortTiers : [];
|
||||
if (!wanted || tiers.length === 0 || tiers.includes(wanted)) return wanted;
|
||||
const rank = CLAUDE_EFFORT_LEVELS.indexOf(wanted);
|
||||
if (rank < 0) return wanted;
|
||||
return CLAUDE_EFFORT_LEVELS.slice(0, rank)
|
||||
.reverse()
|
||||
.find((level) => tiers.includes(level));
|
||||
/** Map a Codex-style effort to a Claude Code settings.json effortLevel. */
|
||||
function effortLevelFor(cfg) {
|
||||
// Codex categories use xhigh/high/low/undefined; Claude Code accepts the same
|
||||
// names (low|medium|high|xhigh). Pass through, omit for the "simple" tier.
|
||||
return cfg.effort || undefined;
|
||||
}
|
||||
|
||||
/**
|
||||
@@ -121,10 +107,8 @@ export function inheritedAnthropicKeyWarning(env = process.env) {
|
||||
* `contextWindow` is the model's real window from the catalog; without it the profile table's
|
||||
* `cfg.ctx` is used. The window rule (compact at 85% below 200k, else 190000) is the one
|
||||
* `omniroute launch` applies; it lives in claudeWindowEnv, shared by both.
|
||||
* `effortTiers` is the catalog row's `capabilities.effort_tiers`; it keeps `effortLevel` within
|
||||
* the levels the model offers.
|
||||
*/
|
||||
export function buildProfileSettings(modelId, baseUrl, cfg, contextWindow, effortTiers) {
|
||||
export function buildProfileSettings(modelId, baseUrl, cfg, contextWindow) {
|
||||
const window = claudeWindowEnv(contextWindow ?? cfg?.ctx);
|
||||
const env = {
|
||||
ANTHROPIC_BASE_URL: baseUrl,
|
||||
@@ -142,7 +126,7 @@ export function buildProfileSettings(modelId, baseUrl, cfg, contextWindow, effor
|
||||
model: modelId,
|
||||
env,
|
||||
};
|
||||
const effort = effortLevelFor(cfg, effortTiers);
|
||||
const effort = effortLevelFor(cfg);
|
||||
if (effort) settings.effortLevel = effort;
|
||||
// NOTE: ANTHROPIC_AUTH_TOKEN is intentionally NOT written here — `omniroute
|
||||
// launch --profile` injects it from the active context, keeping the secret off
|
||||
@@ -248,8 +232,7 @@ export async function syncClaudeProfilesFromModels(models, opts = {}) {
|
||||
// Same order as `omniroute launch`: max_input_tokens, then context_length.
|
||||
const catalogWindow =
|
||||
typeof m === "string" ? undefined : (m.max_input_tokens ?? m.context_length);
|
||||
const effortTiers = typeof m === "string" ? undefined : m.capabilities?.effort_tiers;
|
||||
const content = buildProfileSettings(id, baseUrl, cfg, catalogWindow, effortTiers);
|
||||
const content = buildProfileSettings(id, baseUrl, cfg, catalogWindow);
|
||||
|
||||
if (dryRun) {
|
||||
log(`\n── [dry-run] ${filePath} ──`);
|
||||
|
||||
@@ -22,41 +22,29 @@ export function getLegacyDotDataDir(homeDir = safeHomeDir()) {
|
||||
return path.join(homeDir, `.${APP_NAME}`);
|
||||
}
|
||||
|
||||
function hasDatabase(dir) {
|
||||
try {
|
||||
return fs.statSync(path.join(dir, "storage.sqlite")).isFile();
|
||||
} catch {
|
||||
return false;
|
||||
}
|
||||
}
|
||||
|
||||
export function getDefaultDataDir() {
|
||||
const homeDir = safeHomeDir();
|
||||
const legacyDir = getLegacyDotDataDir(homeDir);
|
||||
|
||||
let legacyIsDir = false;
|
||||
try {
|
||||
legacyIsDir = fs.statSync(legacyDir).isDirectory();
|
||||
} catch {
|
||||
// Ignore stat errors and continue to the platform default.
|
||||
if (fs.existsSync(legacyDir)) {
|
||||
try {
|
||||
if (fs.statSync(legacyDir).isDirectory()) {
|
||||
return legacyDir;
|
||||
}
|
||||
} catch {
|
||||
// Ignore stat errors and continue to the platform default.
|
||||
}
|
||||
}
|
||||
|
||||
let platformDir = null;
|
||||
if (process.platform === "win32") {
|
||||
const appData = process.env.APPDATA || path.join(homeDir, "AppData", "Roaming");
|
||||
platformDir = path.join(appData, APP_NAME);
|
||||
} else {
|
||||
const xdgConfigHome = normalizeConfiguredPath(process.env.XDG_CONFIG_HOME);
|
||||
if (xdgConfigHome) platformDir = path.join(xdgConfigHome, APP_NAME);
|
||||
return path.join(appData, APP_NAME);
|
||||
}
|
||||
|
||||
// An existing legacy dir wins, unless the platform dir holds the database and the legacy dir
|
||||
// does not: other code creates ~/.omniroute/<sub> directly, and that alone must not move an
|
||||
// XDG/APPDATA install to an empty database.
|
||||
if (legacyIsDir && !(platformDir && !hasDatabase(legacyDir) && hasDatabase(platformDir))) {
|
||||
return legacyDir;
|
||||
}
|
||||
return platformDir ?? legacyDir;
|
||||
const xdgConfigHome = normalizeConfiguredPath(process.env.XDG_CONFIG_HOME);
|
||||
if (xdgConfigHome) return path.join(xdgConfigHome, APP_NAME);
|
||||
|
||||
return legacyDir;
|
||||
}
|
||||
|
||||
export function resolveDataDir() {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "የመቋቋም ውቅረትን ያስተዳድሩ",
|
||||
"threshold": "የውድቀት ገደብ",
|
||||
"resetTimeout": "የዳግም ማስጀመሪያ ጊዜ ገደብ በms",
|
||||
"baseCooldown": "መሠረታዊ የማቀዝቀዣ ጊዜ በms",
|
||||
"p2cLatencyWeight": "p2c የመዘግየት ክብደት፣ 0 (ጠፍቷል) እስከ 20"
|
||||
"baseCooldown": "መሠረታዊ የማቀዝቀዣ ጊዜ በms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "إدارة إعدادات المرونة",
|
||||
"threshold": "حد الإخفاقات",
|
||||
"resetTimeout": "مهلة إعادة التعيين بالمللي ثانية",
|
||||
"baseCooldown": "فترة الانتظار الأساسية بالمللي ثانية",
|
||||
"p2cLatencyWeight": "وزن زمن الوصول P2C، 0 (إيقاف) إلى 20"
|
||||
"baseCooldown": "فترة الانتظار الأساسية بالمللي ثانية"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Dayanıqlılıq konfiqurasiyasını idarə et",
|
||||
"threshold": "Uğursuzluq həddi",
|
||||
"resetTimeout": "Sıfırlama taymautu, ms",
|
||||
"baseCooldown": "Əsas gözləmə müddəti, ms",
|
||||
"p2cLatencyWeight": "p2c gecikmə çəkisi, 0-dan 20-yə qədər"
|
||||
"baseCooldown": "Əsas gözləmə müddəti, ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Управление на конфигурацията за устойчивост",
|
||||
"threshold": "Праг на неуспехите",
|
||||
"resetTimeout": "Време за нулиране в ms",
|
||||
"baseCooldown": "Основен период на изчакване в ms",
|
||||
"p2cLatencyWeight": "тегло на латентността на p2c, 0 (изключено) до 20"
|
||||
"baseCooldown": "Основен период на изчакване в ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "স্থিতিস্থাপকতা কনফিগ পরিচালনা করুন",
|
||||
"threshold": "ব্যর্থতার সীমা",
|
||||
"resetTimeout": "রিসেট টাইমআউট, ms-এ",
|
||||
"baseCooldown": "বেস কুলডাউন, ms-এ",
|
||||
"p2cLatencyWeight": "p2c লেটেন্সি ওজন, 0 (বন্ধ) থেকে 20"
|
||||
"baseCooldown": "বেস কুলডাউন, ms-এ"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Upravljaj konfiguracijom otpornosti",
|
||||
"threshold": "Prag neuspjeha",
|
||||
"resetTimeout": "Reset timeout u ms",
|
||||
"baseCooldown": "Osnovno vrijeme hlađenja u ms",
|
||||
"p2cLatencyWeight": "p2c težina kašnjenja, 0 (isključeno) do 20"
|
||||
"baseCooldown": "Osnovno vrijeme hlađenja u ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Spravovat konfiguraci odolnosti",
|
||||
"threshold": "Prahová hodnota selhání",
|
||||
"resetTimeout": "Časový limit resetování v ms",
|
||||
"baseCooldown": "Základní čekací doba v ms",
|
||||
"p2cLatencyWeight": "Váha latence p2c, 0 (vypnuto) až 20"
|
||||
"baseCooldown": "Základní čekací doba v ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Administrer robusthedskonfiguration",
|
||||
"threshold": "Fejltærskel",
|
||||
"resetTimeout": "Timeout for nulstilling i ms",
|
||||
"baseCooldown": "Grundlæggende nedkølingsperiode i ms",
|
||||
"p2cLatencyWeight": "p2c latensvægt, 0 (fra) til 20"
|
||||
"baseCooldown": "Grundlæggende nedkølingsperiode i ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Resilienzkonfiguration verwalten",
|
||||
"threshold": "Fehlerschwellenwert",
|
||||
"resetTimeout": "Zeitüberschreitung für Zurücksetzung in ms",
|
||||
"baseCooldown": "Basisabklingzeit in ms",
|
||||
"p2cLatencyWeight": "p2c-Latenzgewichtung, 0 (aus) bis 20"
|
||||
"baseCooldown": "Basisabklingzeit in ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Διαχείριση ρύθμισης ανθεκτικότητας",
|
||||
"threshold": "Όριο αποτυχιών",
|
||||
"resetTimeout": "Χρονικό όριο επαναφοράς σε ms",
|
||||
"baseCooldown": "Βασική περίοδος αναμονής σε ms",
|
||||
"p2cLatencyWeight": "Βάρος καθυστέρησης p2c, 0 (off) έως 20"
|
||||
"baseCooldown": "Βασική περίοδος αναμονής σε ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Manage resilience config",
|
||||
"threshold": "Failure threshold",
|
||||
"resetTimeout": "Reset timeout in ms",
|
||||
"baseCooldown": "Base cooldown in ms",
|
||||
"p2cLatencyWeight": "p2c latency weight, 0 (off) to 20"
|
||||
"baseCooldown": "Base cooldown in ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Gestionar la configuración de resiliencia",
|
||||
"threshold": "Umbral de fallos",
|
||||
"resetTimeout": "Tiempo de espera de restablecimiento en ms",
|
||||
"baseCooldown": "Tiempo de espera base en ms",
|
||||
"p2cLatencyWeight": "Peso de latencia p2c, 0 (apagado) a 20"
|
||||
"baseCooldown": "Tiempo de espera base en ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Halda vastupidavuse seadistust",
|
||||
"threshold": "Vea lävend",
|
||||
"resetTimeout": "Lähtestamise ajalõpp millisekundites",
|
||||
"baseCooldown": "Baasjahtumisaeg millisekundites",
|
||||
"p2cLatencyWeight": "p2c latentsuskaal, 0 (väljas) kuni 20"
|
||||
"baseCooldown": "Baasjahtumisaeg millisekundites"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "مدیریت پیکربندی تابآوری",
|
||||
"threshold": "آستانه خرابی",
|
||||
"resetTimeout": "مهلت بازنشانی بر حسب میلیثانیه",
|
||||
"baseCooldown": "دوره انتظار پایه بر حسب میلیثانیه",
|
||||
"p2cLatencyWeight": "وزن تأخیر p2c، 0 (خاموش) تا 20"
|
||||
"baseCooldown": "دوره انتظار پایه بر حسب میلیثانیه"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Hallitse vikasietoisuusmäärityksiä",
|
||||
"threshold": "Vikakynnys",
|
||||
"resetTimeout": "Nollauksen aikakatkaisu millisekunteina",
|
||||
"baseCooldown": "Perusjäähdytysaika millisekunteina",
|
||||
"p2cLatencyWeight": "p2c-viivepaino, 0 (pois) - 20"
|
||||
"baseCooldown": "Perusjäähdytysaika millisekunteina"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Gérer la configuration de résilience",
|
||||
"threshold": "Seuil d’échec",
|
||||
"resetTimeout": "Délai de réinitialisation en ms",
|
||||
"baseCooldown": "Période de temporisation de base en ms",
|
||||
"p2cLatencyWeight": "poids de latence p2c, 0 (off) à 20"
|
||||
"baseCooldown": "Période de temporisation de base en ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Bainistigh cumraíocht athléimneachta",
|
||||
"threshold": "Tairseach teipthe",
|
||||
"resetTimeout": "Athshocraigh am an tamaill i ms",
|
||||
"baseCooldown": "Bun-am fuaraithe i ms",
|
||||
"p2cLatencyWeight": "meáchan latency p2c, 0 (as) go 20"
|
||||
"baseCooldown": "Bun-am fuaraithe i ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "રેઝિલિયન્સ રૂપરેખાંકન મેનેજ કરો",
|
||||
"threshold": "નિષ્ફળતાની સીમા",
|
||||
"resetTimeout": "રીસેટ સમયસમાપ્તિ ms માં",
|
||||
"baseCooldown": "મૂળ કૂલડાઉન ms માં",
|
||||
"p2cLatencyWeight": "p2c લેટન્સી વેઇટ, 0 (બંધ) થી 20"
|
||||
"baseCooldown": "મૂળ કૂલડાઉન ms માં"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Sarrafa daidaitawar juriya",
|
||||
"threshold": "Iyakar gazawa",
|
||||
"resetTimeout": "Lokacin jira kafin sake saiti a ms",
|
||||
"baseCooldown": "Asalin lokacin hucewa a ms",
|
||||
"p2cLatencyWeight": "p2c nauyi latency, 0 (kashe) zuwa 20"
|
||||
"baseCooldown": "Asalin lokacin hucewa a ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "ניהול תצורת העמידות",
|
||||
"threshold": "סף כשלים",
|
||||
"resetTimeout": "זמן איפוס באלפיות השנייה",
|
||||
"baseCooldown": "זמן צינון בסיסי באלפיות השנייה",
|
||||
"p2cLatencyWeight": "משקל חביון p2c, 0 (כבוי) עד 20"
|
||||
"baseCooldown": "זמן צינון בסיסי באלפיות השנייה"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "रेज़िलिएंस कॉन्फ़िगरेशन प्रबंधित करें",
|
||||
"threshold": "विफलता सीमा",
|
||||
"resetTimeout": "रीसेट टाइमआउट (ms में)",
|
||||
"baseCooldown": "बेस कूलडाउन (ms में)",
|
||||
"p2cLatencyWeight": "पी2सी विलंबता भार, 0 (बंद) से 20"
|
||||
"baseCooldown": "बेस कूलडाउन (ms में)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Upravljanje konfiguracijom otpornosti",
|
||||
"threshold": "Prag neuspjeha",
|
||||
"resetTimeout": "Vrijeme resetiranja u ms",
|
||||
"baseCooldown": "Osnovno vrijeme hlađenja u ms",
|
||||
"p2cLatencyWeight": "p2c težina kašnjenja, 0 (isključeno) do 20"
|
||||
"baseCooldown": "Osnovno vrijeme hlađenja u ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Ellenálló képességi konfiguráció kezelése",
|
||||
"threshold": "Hibaküszöb",
|
||||
"resetTimeout": "Visszaállítási időtúllépés ezredmásodpercben",
|
||||
"baseCooldown": "Alap várakozási idő ezredmásodpercben",
|
||||
"p2cLatencyWeight": "p2c késleltetési súly, 0 (ki) és 20 között"
|
||||
"baseCooldown": "Alap várakozási idő ezredmásodpercben"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Կառավարել կայունության կազմաձևը",
|
||||
"threshold": "Խափանումների շեմը",
|
||||
"resetTimeout": "Վերակայման սպասման ժամանակը՝ ms-ով",
|
||||
"baseCooldown": "Բազային դադարի ժամանակը՝ ms-ով",
|
||||
"p2cLatencyWeight": "p2c latency քաշը, 0 (անջատված) մինչև 20"
|
||||
"baseCooldown": "Բազային դադարի ժամանակը՝ ms-ով"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Kelola konfigurasi ketahanan",
|
||||
"threshold": "Ambang batas kegagalan",
|
||||
"resetTimeout": "Batas waktu pengaturan ulang dalam ms",
|
||||
"baseCooldown": "Cooldown dasar dalam ms",
|
||||
"p2cLatencyWeight": "berat latensi p2c, 0 (mati) hingga 20"
|
||||
"baseCooldown": "Cooldown dasar dalam ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Jikwaa nhazi nkwụsi ike",
|
||||
"threshold": "Oke ọdịda",
|
||||
"resetTimeout": "Oge nchere tupu nrụgharị na ms",
|
||||
"baseCooldown": "Oge izu ike ndabere na ms",
|
||||
"p2cLatencyWeight": "Ibu p2c dị arọ, 0 (gbanyụọ) ruo 20"
|
||||
"baseCooldown": "Oge izu ike ndabere na ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Gestisci la configurazione di resilienza",
|
||||
"threshold": "Soglia di errore",
|
||||
"resetTimeout": "Timeout di reimpostazione in ms",
|
||||
"baseCooldown": "Cooldown di base in ms",
|
||||
"p2cLatencyWeight": "Peso della latenza p2c, da 0 (disattivato) a 20"
|
||||
"baseCooldown": "Cooldown di base in ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "レジリエンス設定を管理",
|
||||
"threshold": "失敗しきい値",
|
||||
"resetTimeout": "リセットタイムアウト(ms)",
|
||||
"baseCooldown": "基本クールダウン時間(ms)",
|
||||
"p2cLatencyWeight": "p2c レイテンシの重み、0 (オフ) ~ 20"
|
||||
"baseCooldown": "基本クールダウン時間(ms)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "მდგრადობის კონფიგურაციის მართვა",
|
||||
"threshold": "წარუმატებლობის ზღვარი",
|
||||
"resetTimeout": "ჩამოყრის მოლოდინის დრო, მწმ-ში",
|
||||
"baseCooldown": "საბაზისო დაყოვნების დრო, მწმ-ში",
|
||||
"p2cLatencyWeight": "p2c ლატენტური წონა, 0 (გამორთული) 20-მდე"
|
||||
"baseCooldown": "საბაზისო დაყოვნების დრო, მწმ-ში"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "គ្រប់គ្រងការកំណត់រចនាសម្ព័ន្ធភាពធន់",
|
||||
"threshold": "កម្រិតកំណត់នៃការបរាជ័យ",
|
||||
"resetTimeout": "រយៈពេលអស់ពេលសម្រាប់កំណត់ឡើងវិញ គិតជា ms",
|
||||
"baseCooldown": "រយៈពេលសម្រាកមូលដ្ឋាន គិតជា ms",
|
||||
"p2cLatencyWeight": "ទម្ងន់ភាពយឺតនៃ p2c, 0 (បិទ) ដល់ 20"
|
||||
"baseCooldown": "រយៈពេលសម្រាកមូលដ្ឋាន គិតជា ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "ಸ್ಥಿತಿಸ್ಥಾಪಕತ್ವದ ಕಾನ್ಫಿಗ್ ಅನ್ನು ನಿರ್ವಹಿಸಿ",
|
||||
"threshold": "ವೈಫಲ್ಯದ ಮಿತಿ",
|
||||
"resetTimeout": "ಮರುಹೊಂದಿಸುವ ಕಾಲಾವಧಿ ಮಿಲಿಸೆಕೆಂಡ್ಗಳಲ್ಲಿ",
|
||||
"baseCooldown": "ಮೂಲ ಕೂಲ್ಡೌನ್ ಮಿಲಿಸೆಕೆಂಡ್ಗಳಲ್ಲಿ",
|
||||
"p2cLatencyWeight": "p2c ಲೇಟೆನ್ಸಿ ತೂಕ, 0 (ಆಫ್) ನಿಂದ 20"
|
||||
"baseCooldown": "ಮೂಲ ಕೂಲ್ಡೌನ್ ಮಿಲಿಸೆಕೆಂಡ್ಗಳಲ್ಲಿ"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "복원력 구성 관리",
|
||||
"threshold": "실패 임계값",
|
||||
"resetTimeout": "초기화 제한 시간(ms)",
|
||||
"baseCooldown": "기본 쿨다운(ms)",
|
||||
"p2cLatencyWeight": "p2c 대기 시간 가중치, 0(해제) ~ 20"
|
||||
"baseCooldown": "기본 쿨다운(ms)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Tvarkyti atsparumo konfigūraciją",
|
||||
"threshold": "Gedimų slenkstis",
|
||||
"resetTimeout": "Nustatymo iš naujo skirtasis laikas, ms",
|
||||
"baseCooldown": "Bazinis atvėsimo laikotarpis, ms",
|
||||
"p2cLatencyWeight": "p2c delsos svoris, nuo 0 (išjungta) iki 20"
|
||||
"baseCooldown": "Bazinis atvėsimo laikotarpis, ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Pārvaldīt izturības konfigurāciju",
|
||||
"threshold": "Kļūdas slieksnis",
|
||||
"resetTimeout": "Atiestatīšanas taimauts milisekundēs",
|
||||
"baseCooldown": "Bāzes atdzišanas laiks milisekundēs",
|
||||
"p2cLatencyWeight": "p2c latentuma svars, no 0 (izslēgts) līdz 20"
|
||||
"baseCooldown": "Bāzes atdzišanas laiks milisekundēs"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "റെസിലിയൻസ് കോൺഫിഗറേഷൻ നിയന്ത്രിക്കുക",
|
||||
"threshold": "പരാജയ പരിധി",
|
||||
"resetTimeout": "റീസെറ്റ് ടൈംഔട്ട് (ms)",
|
||||
"baseCooldown": "അടിസ്ഥാന കൂൾഡൗൺ (ms)",
|
||||
"p2cLatencyWeight": "p2c ലേറ്റൻസി ഭാരം, 0 (ഓഫ്) മുതൽ 20 വരെ"
|
||||
"baseCooldown": "അടിസ്ഥാന കൂൾഡൗൺ (ms)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "लवचिकता कॉन्फिग व्यवस्थापित करा",
|
||||
"threshold": "अपयश मर्यादा",
|
||||
"resetTimeout": "रीसेट टाइमआउट (ms मध्ये)",
|
||||
"baseCooldown": "मूलभूत कूलडाउन (ms मध्ये)",
|
||||
"p2cLatencyWeight": "p2c लेटन्सी वेट, 0 (बंद) ते 20"
|
||||
"baseCooldown": "मूलभूत कूलडाउन (ms मध्ये)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Urus konfigurasi daya tahan",
|
||||
"threshold": "Ambang kegagalan",
|
||||
"resetTimeout": "Tamat masa penetapan semula dalam ms",
|
||||
"baseCooldown": "Tempoh bertenang asas dalam ms",
|
||||
"p2cLatencyWeight": "berat kependaman p2c, 0 (mati) hingga 20"
|
||||
"baseCooldown": "Tempoh bertenang asas dalam ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Immaniġġja l-konfigurazzjoni tar-reżiljenza",
|
||||
"threshold": "Limitu ta' falliment",
|
||||
"resetTimeout": "Timeout ta' reset f'ms",
|
||||
"baseCooldown": "Cooldown bażiku f'ms",
|
||||
"p2cLatencyWeight": "Piż tal-latency p2c, 0 (mitfi) sa 20"
|
||||
"baseCooldown": "Cooldown bażiku f'ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "ခံနိုင်ရည် စီစဉ်သတ်မှတ်ချက်ကို စီမံရန်",
|
||||
"threshold": "ချို့ယွင်းမှု သတ်မှတ်အဆင့်",
|
||||
"resetTimeout": "ပြန်လည်သတ်မှတ်ရန် အချိန်ကုန်ဆုံးမှု (ms)",
|
||||
"baseCooldown": "အခြေခံ ခေတ္တရပ်နားချိန် (ms)",
|
||||
"p2cLatencyWeight": "p2c latency weight, 0 (off) မှ 20"
|
||||
"baseCooldown": "အခြေခံ ခေတ္တရပ်နားချိန် (ms)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "रेजिलिएन्स कन्फिग व्यवस्थापन गर्नुहोस्",
|
||||
"threshold": "विफलता सीमा",
|
||||
"resetTimeout": "मिलिसेकेन्डमा रिसेट टाइमआउट",
|
||||
"baseCooldown": "मिलिसेकेन्डमा आधारभूत कूलडाउन",
|
||||
"p2cLatencyWeight": "p2c विलम्बता वजन, ० (बंद) देखि २० सम्म"
|
||||
"baseCooldown": "मिलिसेकेन्डमा आधारभूत कूलडाउन"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Veerkrachtconfiguratie beheren",
|
||||
"threshold": "Drempelwaarde voor fouten",
|
||||
"resetTimeout": "Resettime-out in ms",
|
||||
"baseCooldown": "Basiscooldown in ms",
|
||||
"p2cLatencyWeight": "p2c latentiegewicht, 0 (uit) tot 20"
|
||||
"baseCooldown": "Basiscooldown in ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Administrer robusthetskonfigurasjon",
|
||||
"threshold": "Feilgrense",
|
||||
"resetTimeout": "Tidsavbrudd for tilbakestilling i ms",
|
||||
"baseCooldown": "Grunnleggende nedkjølingsperiode i ms",
|
||||
"p2cLatencyWeight": "p2c latensvekt, 0 (av) til 20"
|
||||
"baseCooldown": "Grunnleggende nedkjølingsperiode i ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "ସହନଶୀଳତା ବିନ୍ୟାସ ପରିଚାଳନା କରନ୍ତୁ",
|
||||
"threshold": "ବିଫଳତା ସୀମା",
|
||||
"resetTimeout": "ମିଲିସେକେଣ୍ଡରେ ପୁନଃସେଟ୍ ସମୟସୀମା",
|
||||
"baseCooldown": "ମିଲିସେକେଣ୍ଡରେ ମୂଳ କୁଲ୍ଡାଉନ୍",
|
||||
"p2cLatencyWeight": "p2c ବିଳମ୍ବତା ଓଜନ, 0 (ବନ୍ଦ) ରୁ 20 \\|"
|
||||
"baseCooldown": "ମିଲିସେକେଣ୍ଡରେ ମୂଳ କୁଲ୍ଡାଉନ୍"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "ਰੈਜ਼ੀਲੀਅੰਸ ਸੰਰਚਨਾ ਦਾ ਪ੍ਰਬੰਧਨ ਕਰੋ",
|
||||
"threshold": "ਅਸਫਲਤਾ ਸੀਮਾ",
|
||||
"resetTimeout": "ਰੀਸੈੱਟ ਟਾਈਮਆਉਟ ms ਵਿੱਚ",
|
||||
"baseCooldown": "ਬੇਸ ਕੂਲਡਾਊਨ ms ਵਿੱਚ",
|
||||
"p2cLatencyWeight": "p2c ਲੇਟੈਂਸੀ ਵੇਟ, 0 (ਬੰਦ) ਤੋਂ 20"
|
||||
"baseCooldown": "ਬੇਸ ਕੂਲਡਾਊਨ ms ਵਿੱਚ"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Pamahalaan ang resilience config",
|
||||
"threshold": "Hangganan ng pagkabigo",
|
||||
"resetTimeout": "Timeout sa pag-reset sa ms",
|
||||
"baseCooldown": "Batayang cooldown sa ms",
|
||||
"p2cLatencyWeight": "p2c latency weight, 0 (off) hanggang 20"
|
||||
"baseCooldown": "Batayang cooldown sa ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Zarządzaj konfiguracją odporności",
|
||||
"threshold": "Próg błędów",
|
||||
"resetTimeout": "Limit czasu resetowania w ms",
|
||||
"baseCooldown": "Bazowy czas odczekania w ms",
|
||||
"p2cLatencyWeight": "waga opóźnienia p2c, 0 (wyłączone) do 20"
|
||||
"baseCooldown": "Bazowy czas odczekania w ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Gerenciar configuração de resiliência",
|
||||
"threshold": "Limiar de falhas",
|
||||
"resetTimeout": "Timeout de reset em ms",
|
||||
"baseCooldown": "Cooldown base em ms",
|
||||
"p2cLatencyWeight": "peso de latência p2c, 0 (desligado) a 20"
|
||||
"baseCooldown": "Cooldown base em ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Gerir configuração de resiliência",
|
||||
"threshold": "Limite de falhas",
|
||||
"resetTimeout": "Tempo limite de reposição em ms",
|
||||
"baseCooldown": "Período de espera base em ms",
|
||||
"p2cLatencyWeight": "peso de latência p2c, 0 (desligado) a 20"
|
||||
"baseCooldown": "Período de espera base em ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Gestionează configurația de reziliență",
|
||||
"threshold": "Pragul de eșecuri",
|
||||
"resetTimeout": "Timp de resetare în ms",
|
||||
"baseCooldown": "Perioada de așteptare de bază în ms",
|
||||
"p2cLatencyWeight": "Greutatea latenței p2c, de la 0 (dezactivat) la 20"
|
||||
"baseCooldown": "Perioada de așteptare de bază în ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Управление конфигурацией отказоустойчивости",
|
||||
"threshold": "Порог сбоев",
|
||||
"resetTimeout": "Время ожидания перед сбросом в мс",
|
||||
"baseCooldown": "Базовый период ожидания в мс",
|
||||
"p2cLatencyWeight": "Вес задержки p2c, от 0 (выкл.) до 20"
|
||||
"baseCooldown": "Базовый период ожидания в мс"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "ඔරොත්තු දීමේ වින්යාසය කළමනාකරණය කරන්න",
|
||||
"threshold": "අසාර්ථකත්ව සීමාව",
|
||||
"resetTimeout": "යළි පිහිටුවීමේ කල් ඉකුත්වීම ms වලින්",
|
||||
"baseCooldown": "මූලික සිසිලන කාලය ms වලින්",
|
||||
"p2cLatencyWeight": "p2c ප්රමාද බර, 0 (ඕෆ්) සිට 20 දක්වා"
|
||||
"baseCooldown": "මූලික සිසිලන කාලය ms වලින්"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Spravovať konfiguráciu odolnosti",
|
||||
"threshold": "Prah zlyhaní",
|
||||
"resetTimeout": "Časový limit resetovania v ms",
|
||||
"baseCooldown": "Základná čakacia lehota v ms",
|
||||
"p2cLatencyWeight": "Váha latencie p2c, 0 (vypnuté) až 20"
|
||||
"baseCooldown": "Základná čakacia lehota v ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Upravljaj konfiguracijo odpornosti",
|
||||
"threshold": "Prag napak",
|
||||
"resetTimeout": "Časovna omejitev ponastavitve v ms",
|
||||
"baseCooldown": "Osnovni čas mirovanja v ms",
|
||||
"p2cLatencyWeight": "utež zakasnitve p2c, 0 (izklopljeno) do 20"
|
||||
"baseCooldown": "Osnovni čas mirovanja v ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Управљање конфигурацијом отпорности",
|
||||
"threshold": "Праг неуспеха",
|
||||
"resetTimeout": "Време ресетовања у ms",
|
||||
"baseCooldown": "Основно хлађење у ms",
|
||||
"p2cLatencyWeight": "п2ц тежина кашњења, 0 (искључено) до 20"
|
||||
"baseCooldown": "Основно хлађење у ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Hantera resilienskonfiguration",
|
||||
"threshold": "Feltröskel",
|
||||
"resetTimeout": "Tidsgräns för återställning i ms",
|
||||
"baseCooldown": "Grundläggande nedkylningstid i ms",
|
||||
"p2cLatencyWeight": "p2c latensvikt, 0 (av) till 20"
|
||||
"baseCooldown": "Grundläggande nedkylningstid i ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Dhibiti usanidi wa ustahimilivu",
|
||||
"threshold": "Kikomo cha hitilafu",
|
||||
"resetTimeout": "Muda wa kuweka upya kwa ms",
|
||||
"baseCooldown": "Muda msingi wa kusubiri kwa ms",
|
||||
"p2cLatencyWeight": "p2c uzani wa kusubiri, 0 (imezimwa) hadi 20"
|
||||
"baseCooldown": "Muda msingi wa kusubiri kwa ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "மீள்திறன் உள்ளமைவை நிர்வகி",
|
||||
"threshold": "தோல்வி வரம்பு",
|
||||
"resetTimeout": "மீட்டமைப்பு காலாவதி நேரம் (ms)",
|
||||
"baseCooldown": "அடிப்படை கூல்டவுன் (ms)",
|
||||
"p2cLatencyWeight": "p2c தாமத எடை, 0 (ஆஃப்) முதல் 20 வரை"
|
||||
"baseCooldown": "அடிப்படை கூல்டவுன் (ms)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "స్థితిస్థాపకత కాన్ఫిగ్ను నిర్వహించండి",
|
||||
"threshold": "వైఫల్య పరిమితి",
|
||||
"resetTimeout": "రీసెట్ గడువు (msలో)",
|
||||
"baseCooldown": "ప్రాథమిక కూల్డౌన్ (msలో)",
|
||||
"p2cLatencyWeight": "p2c జాప్యం బరువు, 0 (ఆఫ్) నుండి 20"
|
||||
"baseCooldown": "ప్రాథమిక కూల్డౌన్ (msలో)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "จัดการการกำหนดค่าความยืดหยุ่น",
|
||||
"threshold": "เกณฑ์จำนวนครั้งที่ล้มเหลว",
|
||||
"resetTimeout": "ระยะหมดเวลาก่อนรีเซ็ต หน่วย ms",
|
||||
"baseCooldown": "ช่วงพักพื้นฐาน หน่วย ms",
|
||||
"p2cLatencyWeight": "น้ำหนักแฝง p2c, 0 (ปิด) ถึง 20"
|
||||
"baseCooldown": "ช่วงพักพื้นฐาน หน่วย ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Dayanıklılık yapılandırmasını yönet",
|
||||
"threshold": "Hata eşiği",
|
||||
"resetTimeout": "Sıfırlama zaman aşımı (ms)",
|
||||
"baseCooldown": "Temel bekleme süresi (ms)",
|
||||
"p2cLatencyWeight": "p2c gecikme ağırlığı, 0 (kapalı) ila 20"
|
||||
"baseCooldown": "Temel bekleme süresi (ms)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Керувати конфігурацією відмовостійкості",
|
||||
"threshold": "Порогове значення збоїв",
|
||||
"resetTimeout": "Час очікування до скидання в мс",
|
||||
"baseCooldown": "Базовий період очікування в мс",
|
||||
"p2cLatencyWeight": "вага затримки p2c, від 0 (вимкнено) до 20"
|
||||
"baseCooldown": "Базовий період очікування в мс"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "لچک پذیری کی کنفیگریشن کا نظم کریں",
|
||||
"threshold": "ناکامی کی حد",
|
||||
"resetTimeout": "ری سیٹ ٹائم آؤٹ، ms میں",
|
||||
"baseCooldown": "بنیادی کول ڈاؤن، ms میں",
|
||||
"p2cLatencyWeight": "p2c لیٹنسی وزن، 0 (آف) سے 20"
|
||||
"baseCooldown": "بنیادی کول ڈاؤن، ms میں"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Barqarorlik konfiguratsiyasini boshqarish",
|
||||
"threshold": "Nosozlik chegarasi",
|
||||
"resetTimeout": "Qayta tiklash kutish vaqti, ms",
|
||||
"baseCooldown": "Asosiy sovish vaqti, ms",
|
||||
"p2cLatencyWeight": "p2c kechikish og'irligi, 0 (o'chirilgan) dan 20 gacha"
|
||||
"baseCooldown": "Asosiy sovish vaqti, ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Quản lý cấu hình phục hồi",
|
||||
"threshold": "Ngưỡng lỗi",
|
||||
"resetTimeout": "Thời gian chờ đặt lại tính bằng ms",
|
||||
"baseCooldown": "Thời gian chờ cơ sở tính bằng ms",
|
||||
"p2cLatencyWeight": "trọng số độ trễ p2c, 0 (tắt) đến 20"
|
||||
"baseCooldown": "Thời gian chờ cơ sở tính bằng ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "Ṣàkóso àtòpọ̀ ìfaradà",
|
||||
"threshold": "Ààlà ìkùnà",
|
||||
"resetTimeout": "Àkókò ìdádúró àtúntò ní ms",
|
||||
"baseCooldown": "Àkókò ìsinmi ìpìlẹ̀ ní ms",
|
||||
"p2cLatencyWeight": "iwuwo airi p2c, 0 (pa) si 20"
|
||||
"baseCooldown": "Àkókò ìsinmi ìpìlẹ̀ ní ms"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "管理弹性配置",
|
||||
"threshold": "失败阈值",
|
||||
"resetTimeout": "重置超时(毫秒)",
|
||||
"baseCooldown": "基础冷却时间(毫秒)",
|
||||
"p2cLatencyWeight": "p2c 延迟权重,0(关闭)到 20"
|
||||
"baseCooldown": "基础冷却时间(毫秒)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -973,8 +973,7 @@
|
||||
"description": "管理彈性配置",
|
||||
"threshold": "失敗閾值",
|
||||
"resetTimeout": "重置超時(毫秒)",
|
||||
"baseCooldown": "基礎冷卻時間(毫秒)",
|
||||
"p2cLatencyWeight": ""
|
||||
"baseCooldown": "基礎冷卻時間(毫秒)"
|
||||
}
|
||||
},
|
||||
"nodes": {
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
- **feat(images):** `/v1/images/edits` supports Leonardo: the reference image is uploaded through Leonardo's init-image flow and the generation is guided by it (`init_image_id`, `init_strength` 0.3), instead of the edit being rejected as unsupported. Leonardo takes one reference image; more than one returns 400, and a combo moves on to its next provider rather than editing with the first image only ([#18674](https://github.com/cheaper-inference/OmniRoute/pull/18674), closes [#18671](https://github.com/cheaper-inference/OmniRoute/issues/18671))
|
||||
@@ -1 +0,0 @@
|
||||
- **feat(opencode-plugin-v2):** make the published catalog order configurable through `modelOrder` — an ordered list of `{ key, direction }` pairs over `provider`, `name`, `recency`, `free`, `price` and `context`, each with its direction — so the OpenCode plugin publishes models deterministically by default (`provider → name → recency → id`, replacing raw API arrival order) and the operator can reorder the picker ([#18804](https://github.com/cheaper-inference/OmniRoute/pull/18804)) — thanks @maxmad64bis
|
||||
@@ -1 +0,0 @@
|
||||
- **feat(providers):** `expiry-first` treats a lapsed weekly/monthly reset (stale quota read) as refilled instead of "expires now", and gains an opt-in `expiryFirstOrder: "deadline"` (per provider) that spends the account whose quota is lost first while it has quota ([#19583](https://github.com/diegosouzapw/OmniRoute/pull/19583)) — thanks @feci
|
||||
@@ -1 +0,0 @@
|
||||
- **feat(api):** add the per-request `x-omniroute-no-log` header to omit request/response payloads from call logs while keeping timestamp, model, status, duration and token counts ([#20096](https://github.com/cheaper-inference/OmniRoute/pull/20096))
|
||||
@@ -1 +0,0 @@
|
||||
- **feat(sse):** Mistral now counts as an automatic-prefix-caching provider (cache-aware compression guard, cache stats) and gets a stable `prompt_cache_key` on both Chat Completions and Responses bodies ([#20111](https://github.com/cheaper-inference/OmniRoute/pull/20111)) — thanks @RayJW
|
||||
@@ -1 +0,0 @@
|
||||
- Command Code short plan ids (go, goat, pro, ultra, teams-pro) now resolve to their plan names, and known plans show their fixed credit cap as the quota total. ([#20347](https://github.com/cheaper-inference/OmniRoute/pull/20347))
|
||||
@@ -1 +0,0 @@
|
||||
- Qoder's Sonus (smodel) and Cantus (cmodel) are now in the static model fallback, so the ids stay routable when the live catalog is unavailable. ([#20351](https://github.com/cheaper-inference/OmniRoute/pull/20351))
|
||||
@@ -1 +0,0 @@
|
||||
- **feat(plugins):** Opt-in `PLUGIN_PERMISSION_MODEL_ENABLED` feature flag (off by default) runs each plugin process under the Node.js permission model built from its manifest: reads confined to the plugin directory, writes only to its data directory with `file-write`, child processes only with `exec`; `network` stays declarative
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user