Skip to content

fedtti/chatbot-cli

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

32 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Harvard University Shield

Chatbot CLI

CS50x • Final Project by Federico Moretti

Description

A chatbot CLI to interact with GenAI providers from the terminal emulator. It consists in a Node app to run locally: it supports Azure OpenAI Service from the GitHub Marketplace and Wolfram|Alpha LLM API to date.

Instructions

Prerequisites

It has been tested with Node v20.x and newer, but it also includes dotenv to ensure backward compatibility: just be sure to use a version that supports ESM. I chose npm as the package manager.

Installation

Download the sources by either cloning this repository or download its compressed archive, then install the dependencies from the uncompressed sources folder.

$ cd chatbot-cli/
$ npm i

Please, remember to add your own private keys to an .env file. You can use .env.example to complete the proper configuration.

Usage

Start the interaction by executing the following command.

$ npx chatbot-cli

Features

  • Prompts (for GPT-4o only)
  • Saving conversations to a file

Contributing