CS50x • Final Project by Federico Moretti
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.
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.
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.
Start the interaction by executing the following command.
$ npx chatbot-cli
- Prompts (for GPT-4o only)
- Saving conversations to a file