KudoAI/chatgpt.js

Response is empty

Closed this issue · 5 comments

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

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/chatgpt.js@3.3.2/dist/chatgpt.min.js

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)

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.

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

You are right! Thank you for the fix!