Open gadelkareem opened 7 months ago
hey @gadelkareem was it a false alarm?
@gadelkareem also I don't have or know what a Teams subscription is to investigate :(
First error was my code but indeed they changed something. The URL look like this https://chat.openai.com/g/mygptname/c/xxxxx-xxxx-xxx
No worries, I will update here if I get anywhere.
@adamlui The chatgpt.getResponseFromAPI('last') method is timing out. Using chatgpt.getResponseFromDOM('last') worked as expected. I believe the issue is that most functions attempt to fetch data from the API before falling back to the DOM.
hey @gadelkareem I don't know how to get to GPTs to see the URL structure you pasted, but you can probably easily fix it by editing the regex @ https://github.com/KudoAI/chatgpt.js/blob/v2.6.9/chatgpt.js#L745C1-L745C64
const re_chatID = /\w{8}-\w{4}-\w{4}-\w{4}-\w{12}/;
...by using |
after \w{12}
and inserting the pattern that matches the ID structure you pasted
@gadelkareem if it's exactly what you pasted, can you update that line to
const re_chatID = /\w{8}-\w{4}-\w{4}-\w{4}-\w{12}|\w{5}-\w{4}-\w{3}/;
...and see if it works?
Looks like the script is not working with the new ChatGPT Teams subscriptions. Getting
Uncaught (in promise) 🤖 chatgpt.js >> No chat with id = xxxxx-xxxx-xxx found.