mirror of
https://github.com/wassname/chatGPTBox.git
synced 2026-06-30 09:02:59 +08:00
feat: enabled API Modes option (#264)
This commit is contained in:
@@ -304,6 +304,10 @@ async function overwriteAccessToken() {
|
||||
async function prepareForForegroundRequests() {
|
||||
if (location.hostname !== 'chat.openai.com') return
|
||||
|
||||
const userConfig = await getUserConfig()
|
||||
|
||||
if (!chatgptWebModelKeys.some((model) => userConfig.activeApiModes.includes(model))) return
|
||||
|
||||
const div = document.createElement('div')
|
||||
document.body.append(div)
|
||||
render(<NotificationForChatGPTWeb container={div} />, div)
|
||||
|
||||
Reference in New Issue
Block a user