refactor: remove unused OpenAIOAuthOptions after Sora platform removal

The options parameter only served to switch between 'openai' and 'sora'
platforms. With Sora removed, the parameter is unnecessary.
This commit is contained in:
erio
2026-04-05 13:41:51 +08:00
parent fcee67e317
commit ff86154a03
5 changed files with 6 additions and 10 deletions

View File

@@ -20,7 +20,7 @@ import { useOpenAIOAuth } from '@/composables/useOpenAIOAuth'
describe('useOpenAIOAuth.buildCredentials', () => {
it('should keep client_id when token response contains it', () => {
const oauth = useOpenAIOAuth({ platform: 'openai' })
const oauth = useOpenAIOAuth()
const creds = oauth.buildCredentials({
access_token: 'at',
refresh_token: 'rt',
@@ -34,7 +34,7 @@ describe('useOpenAIOAuth.buildCredentials', () => {
})
it('should keep legacy behavior when client_id is missing', () => {
const oauth = useOpenAIOAuth({ platform: 'openai' })
const oauth = useOpenAIOAuth()
const creds = oauth.buildCredentials({
access_token: 'at',
refresh_token: 'rt',