/test-langchain-ts

Primary LanguageTypeScriptMIT LicenseMIT

CLI Chat Application

A command-line interface chat application that supports multiple LLM providers (OpenAI, Anthropic and Groq) with configurable system prompts and chat history.

Features

  • Support for multiple LLMs, including OpenAI, Anthropic, and Groq
  • Model switching on the fly
  • Chat history management
  • Conversation context management

Setup

  1. Install dependencies:
npm install
  1. Configure the application:
  • Copy llm-config-example.json to llm-config.json
  • Update the API keys and other settings in llm-config.json

Usage

Run the application:

npm start

Commands

  • /list - Show available models
  • /switch <model-name> - Switch between models
  • /history - View chat history
  • /clear - Clear conversation context
  • quit or q - Exit application

License

This project is licensed under the MIT License. See the LICENSE file for details.