Skip to content
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

Response is empty #302

Closed
gadelkareem opened this issue Sep 25, 2024 · 5 comments
Closed

Response is empty #302

gadelkareem opened this issue Sep 25, 2024 · 5 comments

Comments

@gadelkareem
Copy link

I am using ChatGPT teams, URL: https://chatgpt.com/c/66f427ae-7934-800e-b4cc-ccbed4722d64

All the get response functions are returning empty:

Screenshot 2024-09-25 at 5 11 54 PM
Screenshot 2024-09-25 at 5 15 45 PM

adamlui added a commit that referenced this issue Sep 25, 2024
…DOM()` (#302) ↞ [auto-sync from `KudoAI/chatgpt.js`]
adamlui added a commit to KudoAI/chatgpt.js-chrome-starter that referenced this issue Sep 25, 2024
@adamlui
Copy link
Member

adamlui commented Sep 25, 2024

Thanks for the helpful detailed screenshots @gadelkareem! I fixed it and all the methods you typed work again:

image

The latest jsDelivr URL is https://cdn.jsdelivr.net/npm/@kudoai/[email protected]/dist/chatgpt.min.js

@adamlui
Copy link
Member

adamlui commented Sep 25, 2024

Also do you think an options obj would be easier or harder to use?

e.g.

chatgpt.getChatData({ chat: 'latest', details: 'msg', sender: 'both', msg: 'latest' }) (can allow ordering options in any order)

vs. the current

chatgpt.getChatData('latest', 'msg', 'both', 'latest') (much shorter to type, but requires memorizing order of params)

@gadelkareem
Copy link
Author

Thanks @adamlui for prompt response. I am not sure if it is on my end but now the chatgpt.send({message}, 'click'); is not working:
Screenshot 2024-09-25 at 9 33 53 PM

Also do you think an options obj would be easier or harder to use?

e.g.

chatgpt.getChatData({ chat: 'latest', details: 'msg', sender: 'both', msg: 'latest' }) (can allow ordering options in any order)

vs. the current

chatgpt.getChatData('latest', 'msg', 'both', 'latest') (much shorter to type, but requires memorizing order of params)

Both are OK IMO, using params is easier to write.

@adamlui
Copy link
Member

adamlui commented Sep 26, 2024

That's strange, I can't replicate, also the method is not async so the await isn't needed, but regardless IDK why that error is occurring

@gadelkareem
Copy link
Author

You are right! Thank you for the fix!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants