v3.0.0
版本发布时间: 2022-12-17 18:04:38
transitive-bullshit/agentic最新发布版本:7.0.0(2024-08-04 19:55:37)
-
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:
https://user-images.githubusercontent.com/552829/208235991-de4890f2-e7ba-4b42-bf55-4fcd792d4b19.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
https://github.com/transitive-bullshit/chatgpt-api/compare/v2.5.2...v3.0.0