feat(image): 接入 ChatGPT Web 生图反代

This commit is contained in:
Entropy.Xu
2026-05-06 11:52:33 +08:00
parent beee7a76d2
commit 4baee436ba
47 changed files with 3872 additions and 141 deletions
@@ -0,0 +1,11 @@
import { describe, expect, it } from 'vitest'
import { isKeyManagedProviderType, isOAuthAccountProviderType } from '../providerTypeUtils'
describe('providerTypeUtils', () => {
it('treats ChatGPT-Web as an OAuth account provider', () => {
expect(isOAuthAccountProviderType('chatgpt_web')).toBe(true)
expect(isOAuthAccountProviderType('ChatGPT_Web')).toBe(true)
expect(isKeyManagedProviderType('chatgpt_web')).toBe(false)
})
})
@@ -7,6 +7,7 @@
const oauthAccountProviderTypes = new Set([
'claude_code',
'codex',
'chatgpt_web',
'gemini_cli',
'antigravity',
'kiro',