ChatGPT icon indicating copy to clipboard operation
ChatGPT copied to clipboard

Fix URL check preventing script load when using GPT-4

Open danitt opened this issue 1 year ago • 0 comments

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",

danitt avatar May 25 '23 07:05 danitt