9router/open-sse/services
B1nh M1nh f260a1817b feat: Ollama Cloud quota tracker + proactive background OAuth refresh
Ollama: replace informational stub with real quota tracker hitting ollama.com/api/usage (session 5h + weekly 7d, 0..1 ratio) and /api/me plan label; bind handler to apiKey + add features.usageApikey so apikey connections work.

Token refresh: add backgroundTokenRefresh scheduler that refreshes OAuth connections within max(provider lead, 30min) of expiry, independent of inbound traffic (10s after boot, then every 5min, unref'd timers, DISABLE_BACKGROUND_TOKEN_REFRESH kill-switch, fail-open per tick/connection). Registered from custom-server.js (listening) and initializeApp.js. checkAndRefreshToken gains opt-in {force} for the scheduler; request path unchanged.
2026-08-02 09:34:27 +07:00
..
tokenRefresh feat(oauth): zed/trae/windsurf providers + harden callback proxies 2026-07-25 17:25:19 +07:00
usage feat: Ollama Cloud quota tracker + proactive background OAuth refresh 2026-08-02 09:34:27 +07:00
accountFallback.js fix: update backoff configuration and improve CLI detection messages 2026-04-17 12:54:50 +07:00
clinepassModels.js feat(clinepass): add ClinePass provider support 2026-07-03 10:53:41 +07:00
combo.js fix(combo/fusion): flatten Anthropic-style tool messages in panel calls 2026-06-20 15:19:31 +07:00
compact.js Feat : Auto restart after crash 2026-03-14 09:37:29 +07:00
copilotModels.js feat(github): resolve Copilot model catalog from upstream 2026-06-26 10:38:09 +07:00
cursorModels.js fix(cursor): HTTP/2 AgentService support + version bump to 3.12.17 2026-07-20 15:39:55 +07:00
grokCliModels.js fix(grok-cli): align Grok Build with current subscription protocol (#2590) 2026-07-16 15:33:19 +07:00
kimchiModels.js fix(kimchi): bump User-Agent to kimchi/0.1.40 (#2256) 2026-07-03 10:49:53 +07:00
kiroModels.js https://github.com/decolua/9router/pull/1167 2026-05-16 11:20:08 +07:00
model.js fix(grok-cli): align Grok Build with current subscription protocol (#2590) 2026-07-16 15:33:19 +07:00
oauthCredentialManager.js refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00
projectId.js feat(gemini): add Gemini 3.6 Flash tier routing and 3.5 Flash Lite 2026-07-23 16:34:24 +07:00
provider.js fix(reasoning): preserve effort through Codex translations 2026-06-26 12:06:35 +07:00
qoderModels.js refactor(open-sse): registry consolidation + DRY media/oauth/adhoc cleanup 2026-06-14 13:15:48 +07:00
tokenRefresh.js feat(oauth): zed/trae/windsurf providers + harden callback proxies 2026-07-25 17:25:19 +07:00
usage.js feat: Ollama Cloud quota tracker + proactive background OAuth refresh 2026-08-02 09:34:27 +07:00