nicechat
TypeScript icon, indicating that this package has built-in type declarations

0.2.0 • Public • Published

nicechat

An extensible multi-provider command-line chat.

Currently supports OpenAI, Anthropic and Replicate.

Demo GIF

How to use it?

Create a configuration file at ~/.nicechat.json.

{
  "openai_key": "...",
  "anthropic_key": "...",
  "replicate_key": "...",
  "profiles": {
    "default": {
      "vendor": "openai",
      "model": "gpt-4-1106-preview",
      "system": "You are a helpful assistant. You answer concisely and to the point."
    },
    "claude": {
      "vendor": "anthropic",
      "model": "claude-3-opus-20240229",
      "system": "You are a helpful assistant. You answer concisely and to the point."
    },
    "llama3-8b": {
      "vendor": "replicate",
      "model": "meta/meta-llama-3-8b-instruct",
      "system": "You are a pirate."
    }
}

Start the chat:

$ nicechat chat claude

or to run the default profile:

$ nicechat

Built-in plugins (OpenAI only)

Nicechat comes with several useful plugins that are basically just functions that run on your machine.

WebsiteFetcher

Show me GIF

WebsiteFetcher

WebsiteFetcher fetches contents of some website (only textual content). It can be used with GPT's ability to summarize content.

UrlOpener

Opens any URL in your default browser.

CurrentTime

Returns users's current time and date.

Building your own plugins

You can write your own plugins.

Browse plugins for inspiration.

Readme

Keywords

Package Sidebar

Install

npm i nicechat

Weekly Downloads

10

Version

0.2.0

License

ISC

Unpacked Size

51.9 kB

Total Files

27

Last publish

Collaborators

  • yanis