An open API service indexing awesome lists of open source software.

https://github.com/hideya/test-langchain-ts


https://github.com/hideya/test-langchain-ts

Last synced: 11 months ago
JSON representation

Awesome Lists containing this project

README

          

# 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:
```bash
npm install
```

2. 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:
```bash
npm start
```

## Commands

- `/list` - Show available models
- `/switch ` - 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](LICENSE) for details.