kaikiat / llm-rs

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

License:MIT License


Languages

Language:Rust 95.1%Language:Dockerfile 3.1%Language:Makefile 1.8%