Skip to content

Commit

Permalink
Promote alternative model providers in llm --help
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Nov 6, 2024
1 parent 3352eb9 commit 98d2c19
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 4 deletions.
9 changes: 7 additions & 2 deletions docs/help.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,11 +41,16 @@ cog.out(all_help(cli))
```
Usage: llm [OPTIONS] COMMAND [ARGS]...
Access large language models from the command-line
Access Large Language Models from the command-line
Documentation: https://llm.datasette.io/
To get started, obtain an OpenAI key and set it like this:
LLM can run models from many different providers. Consult the plugin directory
for a list of available models:
https://llm.datasette.io/en/stable/plugins/directory.html
To get started with OpenAI, obtain an API key from them and:
$ llm keys set openai
Enter key: ...
Expand Down
9 changes: 7 additions & 2 deletions llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -121,11 +121,16 @@ def _validate_metadata_json(ctx, param, value):
@click.version_option()
def cli():
"""
Access large language models from the command-line
Access Large Language Models from the command-line
Documentation: https://llm.datasette.io/
To get started, obtain an OpenAI key and set it like this:
LLM can run models from many different providers. Consult the
plugin directory for a list of available models:
https://llm.datasette.io/en/stable/plugins/directory.html
To get started with OpenAI, obtain an API key from them and:
\b
$ llm keys set openai
Expand Down

0 comments on commit 98d2c19

Please sign in to comment.