node-chatgpt-api

A client implementation for ChatGPT and Bing AI. Available as a Node.js module, REST API server, and CLI app.

MIT License

Downloads
1.8K
Stars
4.2K
Committers
37

Bot releases are hidden (Show)

node-chatgpt-api - v1.37.0 - Bing Image Creator support, ChatGPTClient optimizations, and more Latest Release

Published by waylaidwanderer over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.36.0...v1.37.0

node-chatgpt-api - v1.36.0

Published by waylaidwanderer over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.35.0...v1.36.0

node-chatgpt-api - v1.35.0

Published by waylaidwanderer over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.33.0...v1.35.0

node-chatgpt-api - v1.33.0

Published by waylaidwanderer over 1 year ago

What's Changed

Fixes

  • Fixed issue with Bing AI not using user's language in jailbreak mode by @today- in #229
  • Fixed WebSocket connection error events not being caught in Bing by @ropoctl in #240
  • Checked if IP is blocked by Bing by @likev and added a workaround for request being blocked due to geolocation in #244 and #230, respectively
  • Handle eventMessage is null in Bing before setting properties in #247

Build

  • Bumped ora from 6.2.0 to 6.3.0 by @dependabot in #237

Docs

  • Added ChatGPTBox to Projects in README by @josStorer in #243

Features

  • Put the conversation in "document summary" context in Bing by @InterestingDarkness in #246
  • Allow shouldGenerateTitle to be overridden by request in API server

Chore

  • Updated bypass url in chatgpt-browser

New Contributors

  • @today- made their first contribution in #229
  • @ropoctl made their first contribution in #240
  • @josStorer made their first contribution in #243

Full Changelog: v1.32.0...v1.33.0

node-chatgpt-api - v1.32.0

Published by waylaidwanderer over 1 year ago

TL;DR

  • Bing: re-enabled support for system messages
  • Bing: added support for context message and fast “Balanced” mode
  • Bumped fastify, inquirer and ora dependencies
  • Other minor fixes

What's Changed

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.31.0...v1.32.0

node-chatgpt-api - v1.31.0

Published by waylaidwanderer over 1 year ago

What's Changed

Other

  • chore(bing): updated headers to match the latest Edge Dev request
  • feat(client): properly support gpt-4 model (skipped GitHub release for this minor version since I felt it wasn't too important)

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.29.0...v1.31.0

node-chatgpt-api - v1.29.0

Published by waylaidwanderer over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.28.0...v1.29.0

node-chatgpt-api - v1.28.0 - Per-Message Client Options

Published by waylaidwanderer over 1 year ago

Features

Fixes

  • added ESLint to project and fixed all linting errors

Other

  • added a Projects section to the README where you can add your projects using this library

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.27.0...v1.28.0

node-chatgpt-api - v1.27.0 - Sydney

Published by waylaidwanderer over 1 year ago

node-chatgpt-api - v1.26.0

Published by waylaidwanderer over 1 year ago

Features

  • Add proxy option and 'Generate title' request by @hyperzlib in https://github.com/waylaidwanderer/node-chatgpt-api/pull/146
  • Updated readme and example settings
  • Set default model to gpt-3.5-turbo
  • Optimized token counting algorithm
  • Fixed various issues with gpt-3.5-turbo jailbreak (prompt prefix, end token, tokenizer, and faux tokens)

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.25.0...v1.26.0

node-chatgpt-api - v1.25.0 - gpt-3.5-turbo jailbreak

Published by waylaidwanderer over 1 year ago

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: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.23.0...v1.25.0

node-chatgpt-api - v1.23.0

Published by waylaidwanderer over 1 year ago

Features

Patches

  • 1.22.5
    • fix(client): make use of the name property for messages

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.22.0...v1.23.0

node-chatgpt-api - v1.22.0

Published by waylaidwanderer over 1 year ago

Features

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: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.21.0...v1.22.0

node-chatgpt-api - v1.21.0

Published by waylaidwanderer over 1 year ago

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: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.20.0...v1.21.0

node-chatgpt-api - v1.20.0

Published by waylaidwanderer over 1 year ago

Features

  • ChatGPTClient: add the ability to limit token usage

Fixes

  • ChatGPTClient: add raw response under details property

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.19.0...v1.20.0

node-chatgpt-api - v1.19.0

Published by waylaidwanderer over 1 year ago

What's Changed

New Contributors

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.17.2...v1.19.0

node-chatgpt-api - v1.17.2

Published by waylaidwanderer over 1 year ago

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: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.16.5...v1.17.2

node-chatgpt-api - v1.16.5

Published by waylaidwanderer over 1 year ago

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: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.16.0...v1.16.5

node-chatgpt-api - v1.16.0

Published by waylaidwanderer over 1 year ago

Features

  • cli: CLI now uses Bing's adaptive card's text when rendering the final response (which includes sources)

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.15.3...v1.16.0

node-chatgpt-api - v1.15.3

Published by waylaidwanderer over 1 year ago

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: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.15.0...v1.15.3