mirror of
https://github.com/diegosouzapw/OmniRoute.git
synced 2026-08-26 09:02:11 +03:00
Retargetado para release/v3.8.51 (release/v3.8.50 está congelada — freeze issue #11439). Validado em lote combinado (batch-0824h2, junto de #11435/#11436/#11437) contra o tip de release/v3.8.51: typecheck:core limpo, gates estáticos OK, 127/127 testes focados passando. Investigação sólida com repro real via container isolado, três causas independentes identificadas e corrigidas com testes de regressão dedicados para cada uma. Obrigado pela contribuição!
17 lines
846 B
TypeScript
17 lines
846 B
TypeScript
// Regression: stealth/ox-alpha (Stealth Ox Alpha, free 0/0 pricing, 1M context) must
|
|
// stay in the openrouter free roster — the /v1/models synced-row filter drops
|
|
// pricing metadata, so roster presence is what keeps this model visible under
|
|
// hidePaidModels (see #6328).
|
|
import { test } from "node:test";
|
|
import assert from "node:assert/strict";
|
|
import { FREE_MODEL_BUDGETS } from "../../open-sse/config/freeModelCatalog.data.ts";
|
|
|
|
test("openrouter free roster includes stealth/ox-alpha", () => {
|
|
const entry = FREE_MODEL_BUDGETS.find(
|
|
(m) => m.provider === "openrouter" && m.modelId === "stealth/ox-alpha"
|
|
);
|
|
assert.ok(entry, "stealth/ox-alpha must be in the openrouter free roster");
|
|
assert.equal(entry!.poolKey, "openrouter-free");
|
|
assert.equal(entry!.monthlyTokens, 0, "must not inflate the shared free-pool budget");
|
|
});
|