Skip to content

Commit 07bcf0b

Browse files
committed
feat: support chatgpt.com
closes #232
1 parent 8825bee commit 07bcf0b

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

src/constants.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
const API_MAPPING: Record<string, string> = {
22
'https://chat.openai.com': 'https://chat.openai.com/backend-api',
3+
'https://chatgpt.com': 'https://chatgpt.com/backend-api',
34
}
45

56
// export const baseUrl = 'https://chat.openai.com'

vite.config.ts

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -45,6 +45,15 @@ export default defineConfig({
4545
'https://chat.openai.com/share/*',
4646
// support https://chat.openai.com/share/123456789/continue
4747
'https://chat.openai.com/share/*/continue',
48+
49+
'https://chatgpt.com/',
50+
'https://chatgpt.com/?model=*',
51+
'https://chatgpt.com/c/*',
52+
'https://chatgpt.com/g/*',
53+
'https://chatgpt.com/gpts',
54+
'https://chatgpt.com/gpts/*',
55+
'https://chatgpt.com/share/*',
56+
'https://chatgpt.com/share/*/continue',
4857
],
4958
'icon': 'https://chat.openai.com/favicon.ico',
5059
'run-at': 'document-end',

0 commit comments

Comments
 (0)