llm/docs/index.md

49 lines
1.4 KiB
Markdown
Raw Normal View History

# LLM
2023-06-17 17:03:05 +00:00
[![PyPI](https://img.shields.io/pypi/v/llm.svg)](https://pypi.org/project/llm/)
[![Changelog](https://img.shields.io/github/v/release/simonw/llm?include_prereleases&label=changelog)](https://llm.datasette.io/en/stable/changelog.html)
[![Tests](https://github.com/simonw/llm/workflows/Test/badge.svg)](https://github.com/simonw/llm/actions?query=workflow%3ATest)
2023-07-03 20:11:33 +00:00
[![License](https://img.shields.io/badge/license-Apache%202.0-blue.svg)](https://github.com/simonw/llm/blob/main/LICENSE)
2023-07-12 01:56:38 +00:00
[![Discord](https://img.shields.io/discord/823971286308356157?label=discord)](https://datasette.io/discord-llm)
2023-06-17 17:03:05 +00:00
A command-line utility for interacting with Large Language Models, such as OpenAI's GPT series.
2023-06-17 17:01:48 +00:00
## Quick start
You'll need an [OpenAI API key](https://platform.openai.com/account/api-keys) for this:
2023-06-17 17:01:48 +00:00
```bash
# Install LLM
pip install llm
2023-06-17 17:01:48 +00:00
# Or use: brew install simonw/llm/llm
# Paste your OpenAI API key into this:
llm keys set openai
2023-06-17 17:01:48 +00:00
# Run a prompt
llm "Ten fun names for a pet pelican"
# Run a system prompt against a file
cat myfile.py | llm -s "Explain this code"
```
You can also [install plugins](https://github.com/simonw/llm-plugins) to access models by other providers, including models that can be installed and run on your own device.
2023-06-17 17:01:48 +00:00
## Contents
```{toctree}
---
maxdepth: 3
---
setup
usage
python-api
2023-06-17 07:40:46 +00:00
templates
logging
plugins/index
help
contributing
2023-06-16 08:06:30 +00:00
changelog
```