api9nin / src /shared /constants /providersDisplay.js
github-actions[bot]
deploy from github actions 2026-06-18
c8ae75d
Raw
History Blame Contribute Delete
690 Bytes
// UI display config — all providers derive from registry.display.
import REGISTRY from "open-sse/providers/registry/index.js";
export const RISK_NOTICE = "⚠️ Risk Notice: This provider uses a subscription/OAuth session not officially licensed for proxy/router use. Account may be restricted or banned. Use at your own risk.";
// Resolve "RISK_NOTICE" token → real notice text (registry stores token to avoid import cycle)
const resolveDisplay = (d) =>
d.deprecationNotice === "RISK_NOTICE" ? { ...d, deprecationNotice: RISK_NOTICE } : d;
export const PROVIDER_DISPLAY = Object.fromEntries(
REGISTRY.filter((r) => r.display).map((r) => [r.id, resolveDisplay(r.display)]),
);