feat(quota): add NanoGPT quota provider support (#424)

* feat: add NanoGPT quota provider and usage fetch

Detect NanoGPT as a configured quota provider.
Expose daily and monthly usage windows with reset times.
Return configured and ok state based on API key presence.

* feat: fetch NanoGPT quota and detect config

Detect NanoGPT in configured providers from auth.
Fetch and expose daily and monthly usage windows for NanoGPT.

* feat: add NanoGPT quota provider option
This commit is contained in:
Nelson Pires
2026-02-14 23:56:42 +02:00
committed by GitHub
parent 08f6bef405
commit e3deaeb314
4 changed files with 226 additions and 0 deletions
@@ -11,6 +11,7 @@ export const QUOTA_PROVIDERS: QuotaProviderMeta[] = [
{ id: 'github-copilot', name: 'GitHub Copilot' },
{ id: 'google', name: 'Google' },
{ id: 'kimi-for-coding', name: 'Kimi for Coding' },
{ id: 'nano-gpt', name: 'NanoGPT' },
{ id: 'openrouter', name: 'OpenRouter' },
{ id: 'zai-coding-plan', name: 'z.ai' },
];
+1
View File
@@ -6,6 +6,7 @@ export type QuotaProviderId =
| 'github-copilot-addon'
| 'google'
| 'kimi-for-coding'
| 'nano-gpt'
| 'openrouter'
| 'zai-coding-plan';