KudoAI / chatgpt.js

🤖 A powerful, open source client-side JavaScript library for ChatGPT

Home Page:https://chatgpt.js.org

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

how to get answer from new message as soon its ready ?

madruga8 opened this issue · comments

hello i could not figure out how to call send message and get the response right away. theres a way for it ?

hey @madruga8 yes you can do it like this:

chatgpt.send('hello')
await chatgpt.isIdle()
const response = await chatgpt.getLastResponse()
console.log(response)

there will be a finished userguide soon that will mark which methods are async for your convenience

thank you very much... this library looks very promising ! if i could give a suggestion would be a function/option to hide the chats generated by this library so the user separate his own chats from those generated by the extension on extensions that generates too many different chats to work.

i made claude 2 100k analyse your code and asked the same now, and comes the idea how we could also have a library for poe.com since its performing so good !

image

just a note regarding poe.com... i already got a ban from them for using the chatgptbox repo that uses poes.com endpoints... so i think a safe solution os use only DOM in poe.com and not the endpoints that causes bans...

Can I see what you made with the chatgpt.js one?

Can I see what you made with the chatgpt.js one?

i have made anything yet... im just a heavy user of some extensions like the chatgpt box.

Hey @madruga8 did you happen to make anything yet? If not, can you tell me what other features besides hiding queries from chat history you want?