Skip to content

kaikiat/llm-rs

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

14 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

llm-rs 🚀

License: MIT Source Issues Changelog

Why limit yourself to using ChatGPT solely through a browser? With llm-rs, you can leverage the power of ChatGPT right from your command line! llm-rs is a cutting-edge tool, meticulously crafted using the Rust programming language.

Special thanks to @sobelio for making this possible

Setup

llm-rs only supports darwin amd64

curl -Lo llm https://github.com/kaikiat/llm-rs/releases/download/1.0.0/llm-rs && \
chmod +x llm && \
sudo mv llm /usr/local/bin/

Examples

Run llm --help to see available commands

Setting up llm configuration

$ llm config set

Please enter OpenAI API key [OPENAI_API_KEY]: XXXXXX

View llm configuration

$ llm config view

[OPENAI_API_KEY]: XXXXXX

Ask a question

$ llm "Tell me more about Rust ?"

Summarise an article, can be json or text file

$ llm --file /path/to/article.txt