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.15.0

Published by waylaidwanderer over 1 year ago

This release adds support for Bing client in the CLI and fixes some bugs related to Bing ChatHub.

Features

  • Add Bing client support in the CLI. See the updated settings example file.

Bug Fixes

  • Handle errors from ChatHub gracefully. If ChatHub returns an error, the CLI will display this error.
  • Check if Bing client is authorized before sending messages. If Bing client is not authorized, the CLI will display this error.

PS: Bing helped me write this! :D I talked to it in the CLI app and asked it to write me release notes based on the git log messages I gave to it.

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.14.0...v1.15.0

node-chatgpt-api - v1.14.0 - Reverse Proxy Support

Published by waylaidwanderer over 1 year ago

Features

  • add support for using a reverse proxy/private API server, which allows using ChatGPT's raw models directly again (see Using a Reverse Proxy)

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.13.0...v1.14.0

node-chatgpt-api - v1.13.0

Published by waylaidwanderer over 1 year ago

Features

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.12.0...v1.13.0

node-chatgpt-api - v1.12.0

Published by waylaidwanderer over 1 year ago

Features

  • add support for Bing client in the API server

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.11.0...v1.12.0

node-chatgpt-api - v1.11.0 - Bing's GPT-4 ChatGPT Client 🚀

Published by waylaidwanderer over 1 year ago

node-chatgpt-api - v1.10.1

Published by waylaidwanderer over 1 year ago

Fixes

  • handle SSE errors properly to avoid retry loop leading to 429s

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.10.0...v1.10.1

node-chatgpt-api - v1.10.0

Published by waylaidwanderer over 1 year ago

CLI streaming preview

Features

  • support streamed responses (#25) (client, API, CLI)
    • Readme updated with examples
  • API: allow CORS all origins, closes #24

Fixes

  • API: handle empty message properly
  • CLI: try-catch boxen so malformed input doesn't crash the app

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.9.0...v1.10.0

node-chatgpt-api - v1.9.0

Published by waylaidwanderer over 1 year ago

Features

  • CLI: add a commands menu

Commands menu preview

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.8.0...v1.9.0

node-chatgpt-api - v1.8.0

Published by waylaidwanderer over 1 year ago

Features

  • Adds Docker support for the API server (thanks to @queercat for helping me get started)
    • you can run it with docker-compose up. For available ENV vars, check the settings example file, or you can just set options in settings.js as usual.

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.7.0...v1.8.0

node-chatgpt-api - v1.7.0

Published by waylaidwanderer over 1 year ago

Features

  • Make the AI obey prompt instructions better by always inserting promptPrefix before the last user message.
    • This is especially important for custom instructions. After a bunch of testing, it doesn't seem to cause the AI any confusion, even if you ask it things like "what's the last thing I wrote?".

Fixes

  • Reduce the temperature to 0.8, producing more coherent results with longer outputs while allowing for decent creativity.

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.6.1...v1.7.0

node-chatgpt-api - v1.6.1

Published by waylaidwanderer over 1 year ago

Fixes

  • Set the new text-chat-davinci-002 model name, closes #19 (thanks @canfam / pig#8932 on Discord)
  • Added createdAt timestamp to conversations

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.6.0...v1.6.1

node-chatgpt-api - v1.6.0

Published by waylaidwanderer over 1 year ago

Version 1.6.0

Features

  • Improved support for non-text-chat models in ChatGPTClient (replaces im_end and im_sep tokens with the endoftext token).

Documentation Updates

  • Added information regarding alternative models in the readme.

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.5.0...v1.6.0

node-chatgpt-api - v1.5.0

Published by waylaidwanderer over 1 year ago

Features

  • Included the keyv-file adapter for CLI and API users.

Fixes

  • Fixed writing "chatGptLabel" instead of "chatGPTLabel" for consistency with the "chatGptClient" object.
  • (CLI) Write to clipboard earlier and don't wait for it.
  • Updated the readme features section in the documentation.
  • Updated the cacheOptions example to show how to set a custom store.

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.4.0...v1.5.0

node-chatgpt-api - v1.4.0

Published by waylaidwanderer over 1 year ago

Adds the ability to set a custom name for the user and ChatGPT.
See the readme for the new options.

Full Changelog: https://github.com/waylaidwanderer/node-chatgpt-api/compare/v1.3.1...v1.4.0

node-chatgpt-api - v1.3.1 (Initial GitHub Release)

Published by waylaidwanderer over 1 year ago

I never bothered with creating a GitHub release before, so I'm doing it now.

To use this package in your own project, see: https://www.npmjs.com/package/@waylaidwanderer/chatgpt-api