No project description provided
Project description
LLM-cli
A lightweight Command Line Interface (CLI) for interacting with Large Language Models (LLMs) using LiteLLM.
💡 Why This Project?
Sometimes network constraints or data limitations make it difficult to access large language models via web interfaces. This CLI provides a lightweight, flexible solution for LLM interactions directly from the terminal.
🚀 Features
- Simple CLI Interface: Easily chat with different LLMs from your terminal
- Multiple Chat Modes:
- Direct single-message chat
- Interactive chat UI with markdown rendering
- Image support for vision-capable models
- Flexible Configuration: Customize model, temperature, and system prompts
- Easy Configuration Management: Update settings with a simple command
🔧 Prerequisites
- Api keys to the llms
💾 Installation
- Via Pip
pip install llm-cli
- From Repo
# Clone the repository
git clone https://github.com/tikendraw/llm-cli.git
cd llm-cli
# Install
pip install .
🖥️ Usage
Basic Chat
Send a single message to an LLM:
llm-cli chat "Hello, how are you?"
Interactive Chat UI
Start an interactive chat session:
llm-cli chatui
Image Support
Chat with an image:
llm-cli chatui2 --model openai/gpt-4o-somthing
Configuration
View current configuration:
llm-cli config
Update configuration:
llm-cli config model "anthropic/claude-3-haiku"
llm-cli config temperature 0.7
🛠️ Commands
chat: Send a single messagechatui: Interactive chat with markdown renderingchatui2: Interactive chat with image supportconfig: Manage CLI configuration
🤝 Contributing
Contributions are welcome! Please feel free to submit a Pull Request.
Project details
Release history Release notifications | RSS feed
Download files
Download the file for your platform. If you're not sure which to choose, learn more about installing packages.
Source Distribution
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file llm_to_cli-0.1.0.tar.gz.
File metadata
- Download URL: llm_to_cli-0.1.0.tar.gz
- Upload date:
- Size: 8.0 kB
- Tags: Source
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.8.0-49-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
abf9d0053b2865554e79654e34ea2d99d47c60b73e82df422319f652b504fe07
|
|
| MD5 |
6a6d2d10d3f49b1212747b63be65c237
|
|
| BLAKE2b-256 |
4fff1d610c80b80adbb6e960adfdc51385475e763b75d60a267e9177878a7cbb
|
File details
Details for the file llm_to_cli-0.1.0-py3-none-any.whl.
File metadata
- Download URL: llm_to_cli-0.1.0-py3-none-any.whl
- Upload date:
- Size: 8.9 kB
- Tags: Python 3
- Uploaded using Trusted Publishing? No
- Uploaded via: poetry/1.8.2 CPython/3.12.2 Linux/6.8.0-49-generic
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
a89427c14259b91b78167d12243661cba9f0aa92d112d3a8afa43a1460e78b1e
|
|
| MD5 |
479e9303fcebb6ee3d580f992dc2fdab
|
|
| BLAKE2b-256 |
19018c8125419e04671ded248f3cec73841462e39f49d434105779dc110d0ee4
|