Releases: waylaidwanderer/node-chatgpt-api
Releases · waylaidwanderer/node-chatgpt-api
v1.25.0 - gpt-3.5-turbo jailbreak
Features
- client(gpt-3.5-turbo): overhauled logic for building the messages payload, which seems more reliable, especially for keeping the AI in character. It also seems to improve coherency and context retention.
- Note: if you started to use
messagesPrefix
introduced in 1.24.0, well, I yeeted it due to the above. Just put your stuff inpromptPrefix
as usual.
- Note: if you started to use
Other
- build(deps): bump fastify from 4.13.0 to 4.14.0 by @dependabot in #151
- build(deps): bump boxen from 7.0.1 to 7.0.2 by @dependabot in #150
Full Changelog: v1.23.0...v1.25.0
v1.23.0
Features
Patches
- 1.22.5
- fix(client): make use of the name property for messages
Full Changelog: v1.22.0...v1.23.0
v1.22.0
Features
- official ChatGPT API support by @waylaidwanderer in #137
- to use it, set
modelOptions.model
togpt-3.5-turbo
, andChatGPTClient
will handle the rest - you can still set
userLabel
,chatGptLabel
andpromptPrefix
(system instructions) as usual
- to use it, set
Patches
- 1.21.3
- fix(client): automatically set maxPromptTokens based on maxContextTokens and maxResponseTokens
- 1.21.2
- fix(bing): update message options to match payload on website
- feat: implement ability to abort request in clients
- 1.21.1
- docs(readme): add link to web client
- docs(readme): minor tweaks Joel
Full Changelog: v1.21.0...v1.22.0
v1.21.0
Fixes
BREAKING CHANGES:
- api: JSON-encode tokens when streaming to retain characters such as newlines properly
Non-breaking:
- client/browser-client: Don't attempt to parse ping events
- client: Set headers timeout to 3 minutes
- browser-client: Ignore any messages not from assistant role
- browser-client: Handle non-existent conversation IDs when fetching cache
- browser-client: Handle null lastEvent on close, fixes #98, #99
- api: Use setTimeout instead of nextTick to avoid ERR_STREAM_WRITE_AFTER_END
- api: Use my sse fork to avoid sending unnecessary retryAfter event
- api: Don't send [DONE] twice
- bing: Handle invalid session error, fixes #90
Misc.
- cli: Explicitly set bin files to LF, fixes #51
- docs: Reformat example settings a little bit
- docs: Replace examples already in demos folder with link
- docs: Add clarification on how maxPromptTokens works
New Contributors
- @ryanwy made their first contribution in #100
- @gengjiawen made their first contribution in #117
Full Changelog: v1.20.0...v1.21.0
v1.20.0
Features
- ChatGPTClient: add the ability to limit token usage
Fixes
- ChatGPTClient: add raw response under details property
Full Changelog: v1.19.0...v1.20.0
v1.19.0
What's Changed
- feat(bing): custom configuration host by @yuwangi in #88
- refactor: use fetch-undici instead of node-fetch by @songkeys in #72
- feat(client): send final result when stream is true by @likev in #87
- feat: add experimental ChatGPT browser client by @waylaidwanderer in #95
- feat(bing): add proxy support
New Contributors
- @yuwangi made their first contribution in #88
- @songkeys made their first contribution in #72
- @likev made their first contribution in #87
Full Changelog: v1.17.2...v1.19.0
v1.17.2
1.17.2
- Fixed a bug where the Bing cookies value was not used in CLI/server. This should actually resolve #79 this time.
1.17.1
- Bing: Fixed a bug where the websocket connection was not cleaned up before timing out
1.17.0
- CLI: added support for resuming existing Bing conversations
Full Changelog: v1.16.5...v1.17.2
v1.16.5
Features
- Support setting entire cookie string for Bing chat mode, fixes #79 (necessary for users who have a
KievRPSSecAuth
cookie)
Bug Fixes
- Fixed error detection for Bing client messages
- Throw an error if no message is received in 2 minutes for Bing chat mode
Dependencies
- Bump ws from 8.12.0 to 8.12.1 (#75)
Full Changelog: v1.16.0...v1.16.5
v1.16.0
Features
- cli: CLI now uses Bing's adaptive card's text when rendering the final response (which includes sources)
Full Changelog: v1.15.3...v1.16.0
v1.15.3
Features
- demo: Replaced demo with a gif animation
- readme: Added reverse proxy information to the readme
Fixes
- client: Resolved the issue of parsing empty data
- client: Improve response behavior by using the end token instead of the separator token
- cli: Fixed ChatGPT conversations not being resumable
- demos: Corrected the package import in the demos
Full Changelog: v1.15.0...v1.15.3