feat(provider): test-all endpoint, rate-limit overrides, visibility f… (#3267)

Integrated into release/v3.8.13 — provider test-all endpoint, rate-limit overrides, model visibility
This commit is contained in:
Vinayrnani
2026-06-07 02:28:22 +05:30
committed by GitHub
parent e273514350
commit 2688f3cd74
21 changed files with 1710 additions and 402 deletions

View File

@@ -169,7 +169,15 @@ export function bootstrapEnv({ dataDirOverride, quiet = false } = {}) {
// ── Layer 2: Load the same preferred .env that the CLI wrapper uses ───────
// This keeps run-next / run-standalone consistent with `bin/omniroute.mjs`.
const merged = { ...persisted, ...preferredEnv, ...process.env };
//
// We strip empty values from preferredEnv so an empty placeholder
// (e.g. `STORAGE_ENCRYPTION_KEY=` in the project .env template) does not
// override the real value persisted in server.env. Only the .env entries
// that the operator actually set should win.
const preferredEnvFiltered = Object.fromEntries(
Object.entries(preferredEnv).filter(([, v]) => typeof v === "string" && v.length > 0)
);
const merged = { ...persisted, ...preferredEnvFiltered, ...process.env };
// ── Auto-generate required secrets ────────────────────────────────────────
let needsPersist = false;