feat(grok): add admin oauth and quota support

This commit is contained in:
mayrain
2026-05-16 21:15:38 +08:00
parent cbfe1d378f
commit 936e1ae37b
61 changed files with 4748 additions and 287 deletions
@@ -8,4 +8,10 @@ describe('providerTypeUtils', () => {
expect(isOAuthAccountProviderType('ChatGPT_Web')).toBe(true)
expect(isKeyManagedProviderType('chatgpt_web')).toBe(false)
})
it('treats Grok as an OAuth account provider', () => {
expect(isOAuthAccountProviderType('grok')).toBe(true)
expect(isOAuthAccountProviderType('GROK')).toBe(true)
expect(isKeyManagedProviderType('grok')).toBe(false)
})
})
@@ -11,6 +11,7 @@ const oauthAccountProviderTypes = new Set([
'gemini_cli',
'antigravity',
'kiro',
'grok',
])
export const isOAuthAccountProviderType = (providerType?: string | null): boolean =>