#easyGPT: An API wrapper node module and Express Server ๐Ÿค– v1.6.1

3 messages ยท Page 1 of 1 (latest)

upbeat smelt
#

I accidentally deleted the other post's information ๐Ÿ‘ˆ(๏พŸใƒฎ๏พŸ๐Ÿ‘ˆ)

GitHub Repo, remember to give it a star: https://github.com/FrancescoCoding/easyGPT
npm package: https://www.npmjs.com/package/easygpt
Documentation: https://easygpt.dev/guide/getting-started.html

Simple Node module that wraps the ChatGPT API. It allows you to chain various functionalities thanks to the builder pattern.
This module can be installed and used in any Node.js project to easily access the ChatGPT API. The repo also contains an Express server and a Postman collection to get you started quickly!

Installation for the module is as simple as:
npm i easygpt!
You can find many examples in the npm documentation or the repo.

The project is Open Source under MIT license, anybody is welcome to contribute! ๐Ÿ˜Š For any feedback or issues please create an issue in the repository or send me or any other collaborator a DM.

upbeat smelt
#

v1.6.1 out: https://github.com/FrancescoCoding/easyGPT/releases/tag/v1.6.1_๐Ÿค–

CHANGELOG

ADDED:

  • getMessages()

    • Gets all the messages in the chat except for the system rules
  • clearRules()

    • Clears all the system rules
  • clearChatButRules()

    • Removes all the messages in the chat except for the system rules
  • clearMessagesIfExceedsMaxContext(int maxContext)

    • Removes the chat if the max context (interactions with the AI) is exceeded (but system rules) - Uses clearChatButRules() internally
    • Useful to give the bot short-term memory for it to be more efficient with the number of tokens utilised and time to output a response

.

GitHub

The current release (v1.6.1) includes some brand-new useful chatbot-specific methods! ๐Ÿš€

getMessages()

Gets all the messages in the chat except for the system rules

clearRules()

Clears all the ...

#

easyGPT: An API wrapper node module and Express Server ๐Ÿค– v1.6.1