-
Notifications
You must be signed in to change notification settings - Fork 133
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
ChatGPT Teams broke the script #173
Comments
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 |
@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? |
chatgpt.getChatDetails() works now without modifications! thanks! |
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.
The text was updated successfully, but these errors were encountered: