MAJOR: changes to sendMessage and initSession APIs; added CAPTCHA automation 🔥
transitive-bullshit
released this
17 Dec 10:04
·
752 commits
to main
since this release
ChatGPTAPI
andChatGPTAPIBrowser
now both extend a common abstract base class,AChatGPTAPI
sendMessage
now returns theconversationId
,messageId
, andresponse
text instead of just the response text- removes
onConversationResponse
andgetConversation()
because they were confusing and unnecessary onProgress
now returns a fullChatResponse
containing the IDs in addition to the partial textresponse
- Both
ChatGPTAPI
andChatGPTAPIBrowser
now have identical lifecycle methods for managing authentication sessions:initSession()
refreshSession()
resetSession()
closeSession()
- Automates Recaptchas using Nopecha 🔥
NOTE: this will require a major version bump to v3.0.0
because it changes the existing APIs, so I want to make sure we get it right. Please let me know if you have any feedback on the new unified API design.
Here's a demo of the new CAPTCHA automation:
chatgpt-nopecha-demo-2.mp4
- chore: update ts docs ab1b097
- Merge pull request #155 from transitive-bullshit/feature/api-redesign 88efa64
- chore: update ts docs df1db26
- docs: update readme for new version 2937409
- feat: add nopecha automatic captcha bypass a5f1f20
- feat: add useful puppeteer launch args f1d769c
- 🐆 8a0043d
- feat: improve chat page detection for browser version 619ddd9
- feat: redesign main sendMessage, initSession, closeSession API 1af5db2