llm

command module
v0.0.0-...-6f3ddb9 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 24, 2023 License: Apache-2.0 Imports: 9 Imported by: 0

README

llm

Small CLI application to interact with Gemini.

Install

$ go install github.com/danobi/llm@master

You'll also need an API key (see link above). Provide it through environment variable API_KEY or put it on a single line in ~/.config/llm/key. API keys are currently free.

Usage

$ llm "Give me a 3 word rhyme"
Cat in hat

$ echo "Give me a 3 word rhyme" | llm -
Criss cross sauce

$ llm
Reading from stdin...
^C to cancel, ^D to send
Give me a 3 word rhyme
Cat in hat

$ llm "What is this file?" - "Give me a 1 sentence answer" < /proc/mounts
This is a list of filesystems currently mounted on the system.

Did you innovate anywhere?

I'm glad you asked! Simply try:

$ INNOVATE=1 llm --help

I'd recommend you try multiple times and then take a guess what's happening. I'll leave it to you to read the implementation.

Doesn't this duplicate a lot of other projects?

Yeah, sure. I didn't even look though b/c this literally took me 30 minutes to write. Also Gemini is free and I don't want to spend money on ChatGPT anymore.

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL