From 6bf6ae0b928a91c9af30be21c3aea16fe19a6816 Mon Sep 17 00:00:00 2001 From: Pionxzh Date: Sat, 18 May 2024 11:33:25 +0800 Subject: [PATCH] feat: support new.oaifree.com closes #236 --- src/constants.ts | 1 + vite.config.ts | 9 +++++++++ 2 files changed, 10 insertions(+) diff --git a/src/constants.ts b/src/constants.ts index 70d9389..3590eec 100644 --- a/src/constants.ts +++ b/src/constants.ts @@ -1,6 +1,7 @@ const API_MAPPING: Record = { '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' diff --git a/vite.config.ts b/vite.config.ts index 983cffc..38a98a9 100644 --- a/vite.config.ts +++ b/vite.config.ts @@ -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',