citydirector/deepinfra-fusion-proxy ↗★ 1
deepinfra-fusion-proxy
Local reverse proxy for the DeepInfra API (injects service_tier/fail_fast, falls back between Standard and Flex with per-session cooldown locks), shipped as a DSH profile bundle with a per-session composer toggle, a status-first configuration page.
インストール
$
npx -p @deepseek-ai/dsh dsh plugin --profile web add deepinfra-fusion-proxyドキュメント
README 全文を読む ↗Configuration
State lives in config.json (auto-created with defaults on first boot):
{
"defaultMode": "standard", // "standard" | "flex"
"coolLockRounds": 4, // 0-99: cooldown length after a 429 fallback
"sessions": { "": "flex" }, // per-session mode override
"fallbackAction": "stay", // "stay" | "cooldown"
"defaultWait": "failfast", // "failfast" | "wait"
"waitModes": { "": "wait" } // per-session wait override
}
- Mode resolution: a cooldown lock for the session (→
standard) >sessions[id]>defaultMode. - Wait resolution:
waitModes[id]>defaultWait. standardnever injects anything.flexinjectsservice_tier: "flex"andfail_fastper the wait policy (failfast→true,wait→false).- Unknown modes normalize to
standard(forward-compatible).