Skip to content

gh-ppolk/llm-lightning-presentation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 

Repository files navigation

LLM CLI Usage Guide

This is all excerpted from the documentation here

Installation

uv tool install llm

Setup with Keys

llm keys set openai

Copy the api key into the terminal when prompted.

Use Programmatically

llm 'what is the capital of france?'

Use Interactively

llm chat -m chatgpt

Check Downloaded Models

llm models

Check Available Plugins

llm plugins

Plugin Management

Install Plugin

llm install llm-ollama

This plugin provides access to all the models from https://ollama.com/

Uninstall Plugin

llm uninstall llm-ollama

Logs

Log Storage

  • Logs are stored in an SQLite database

Check Log Path

llm logs path

Log Status

llm logs status

Turn Logging Off

llm logs off
llm logs status

Turn Logging On

llm logs on

Show a Truncated JSON Log

llm logs -n 1 -t --json

Show a Human-Readable Log

llm logs -n 1 --short

Query Logs

llm logs -q "france"

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors