Docs for multiple -q option, closes #748

This commit is contained in:
Simon Willison 2025-02-13 16:01:02 -08:00
parent 31e900e9e1
commit 747d92ea4f
2 changed files with 10 additions and 3 deletions

View file

@ -361,8 +361,14 @@ llm embed-models
```
The output should look something like this:
```
3-small (aliases: ada)
sentence-transformers/all-MiniLM-L6-v2 (aliases: all-MiniLM-L6-v2)
OpenAIEmbeddingModel: text-embedding-ada-002 (aliases: ada, ada-002)
OpenAIEmbeddingModel: text-embedding-3-small (aliases: 3-small)
OpenAIEmbeddingModel: text-embedding-3-large (aliases: 3-large)
...
```
Add `-q` one or more times to search for models matching those terms:
```bash
llm embed-models -q 3-small
```
(embeddings-cli-embed-models-default)=

View file

@ -257,9 +257,10 @@ GeminiPro: gemini-1.5-flash-002
...
```
Add `-q term` to search for models matching a specific search term:
Add one or more `-q term` options to search for models matching all of those search terms:
```bash
llm models -q gpt-4o
llm models -q 4o -q mini
```
Add `--options` to also see documentation for the options supported by each model: