A simple terminal-based chat application powered by the nginr-preprocessor. This project allows you to interact with AI models directly from your terminal.
- Chat with AI models in your terminal
- Command-based interface
- Easy to extend and customize
- Python 3.10 or later
nginrinstalled in your environment (see requirements.txt)
- Clone this repository:
git clone https://github.com/nginrsw/terminal-chat.git cd terminal-chat - (Optional) Create and activate a virtual environment:
python3 -m venv ENV source ENV/bin/activateyou can use any virtual environment tools you have / favorite
Ignore this command to install all packages from requirements.txt globally (without a virtual environment).
- Install dependencies:
pip install -r requirements.txt
To start the chat application, run:
nginr src/main.xrTo run the tests:
nginr tests/test_main.xrThis project uses a YAML config file (nginr_config.yaml) to extend and set the model or other parameters. By default, it uses the Deepseek model via OpenRouter:
model: deepseek/deepseek-r1-0528:free
provider: openrouter
temperature: 1.0
top_p: 1.0
max_tokens: 1024You can change these values in nginr_config.yaml to use a different model or adjust parameters as needed.
src/: Source code for the chat applicationtests/: Test scriptsdocs/: Documentation (API, architecture, developer notes)requirements.txt: Python dependencies
Contributions are welcome!
This project is licensed under the MIT License.