feat: support new.oaifree.com

closes #236
This commit is contained in:
Pionxzh
2024-05-18 11:33:25 +08:00
parent 5e237c6e9c
commit 6bf6ae0b92
2 changed files with 10 additions and 0 deletions

View File

@@ -1,6 +1,7 @@
const API_MAPPING: Record<string, string> = {
'https://chat.openai.com': 'https://chat.openai.com/backend-api',
'https://chatgpt.com': 'https://chatgpt.com/backend-api',
'https://new.oaifree.com': 'https://new.oaifree.com/backend-api',
}
// export const baseUrl = 'https://chat.openai.com'

View File

@@ -54,6 +54,15 @@ export default defineConfig({
'https://chatgpt.com/gpts/*',
'https://chatgpt.com/share/*',
'https://chatgpt.com/share/*/continue',
'https://new.oaifree.com/',
'https://new.oaifree.com/?model=*',
'https://new.oaifree.com/c/*',
'https://new.oaifree.com/g/*',
'https://new.oaifree.com/gpts',
'https://new.oaifree.com/gpts/*',
'https://new.oaifree.com/share/*',
'https://new.oaifree.com/share/*/continue',
],
'icon': 'https://chat.openai.com/favicon.ico',
'run-at': 'document-end',