ChatGPT
ChatGPT copied to clipboard
Fix URL check preventing script load when using GPT-4
There are multiple valid ChatGPT URLs, including
- https://chat.openai.com
- https://chat.openai.com/?model=gpt-4
- https://chat.openai.com/?model=gpt-4-browsing
This fixes a bug where only the first URL in the above list would be considered valid, preventing proper initialisation with the other URLs.
The bug can be reproduced by setting this flag in chat.conf.json
:
"main_origin": "https://chat.openai.com/?model=gpt-4",