Skip to content

Releases: waylaidwanderer/node-chatgpt-api

v1.25.0 - gpt-3.5-turbo jailbreak

04 Mar 00:23
Compare
Choose a tag to compare

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 in promptPrefix as usual.

Other

Full Changelog: v1.23.0...v1.25.0

v1.23.0

03 Mar 00:53
Compare
Choose a tag to compare

Features

  • BingAIClient: support choosing a conversation style by @likev in #141

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

01 Mar 22:09
Compare
Choose a tag to compare

Features

  • official ChatGPT API support by @waylaidwanderer in #137
    • to use it, set modelOptions.model to gpt-3.5-turbo, and ChatGPTClient will handle the rest
    • you can still set userLabel, chatGptLabel and promptPrefix (system instructions) as usual

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

27 Feb 07:38
Compare
Choose a tag to compare

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

Full Changelog: v1.20.0...v1.21.0

v1.20.0

20 Feb 04:28
Compare
Choose a tag to compare

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

18 Feb 21:01
Compare
Choose a tag to compare

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

Full Changelog: v1.17.2...v1.19.0

v1.17.2

16 Feb 00:22
Compare
Choose a tag to compare

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

15 Feb 08:20
Compare
Choose a tag to compare

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

14 Feb 02:13
Compare
Choose a tag to compare

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

14 Feb 02:08
Compare
Choose a tag to compare

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