https://github.com/hideya/test-langchain-ts
https://github.com/hideya/test-langchain-ts
Last synced: 11 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/hideya/test-langchain-ts
- Owner: hideya
- License: mit
- Created: 2024-12-20T06:02:43.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2025-01-07T19:11:02.000Z (over 1 year ago)
- Last Synced: 2025-03-30T02:33:29.792Z (about 1 year ago)
- Language: TypeScript
- Homepage:
- Size: 1.27 MB
- Stars: 0
- Watchers: 1
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
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.