mirror of
https://github.com/fawney19/Aether.git
synced 2026-10-08 02:17:46 +08:00
feat(image): 接入 ChatGPT Web 生图反代
This commit is contained in:
@@ -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',
|
||||
|
||||
Reference in New Issue
Block a user