Merge pull request #1383 from fry69/list-models

Add --list-models alias for --models
This commit is contained in:
paul-gauthier 2024-09-05 10:12:44 -07:00 committed by GitHub
commit e3cd9a8f9a
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 11 additions and 11 deletions

View file

@ -121,7 +121,7 @@ def get_parser(default_config_files, git_root):
########## ##########
group = parser.add_argument_group("Model Settings") group = parser.add_argument_group("Model Settings")
group.add_argument( group.add_argument(
"--models", "--models", "--list-models",
metavar="MODEL", metavar="MODEL",
help="List known models which match the (partial) MODEL name", help="List known models which match the (partial) MODEL name",
) )

View file

@ -26,7 +26,7 @@ aider
aider --opus aider --opus
# List models available from Anthropic # List models available from Anthropic
aider --models anthropic/ aider --list-models anthropic/
``` ```
{: .tip } {: .tip }

View file

@ -24,7 +24,7 @@ setx AZURE_API_BASE https://myendpt.openai.azure.com
aider --model azure/<your_deployment_name> aider --model azure/<your_deployment_name>
# List models available from Azure # List models available from Azure
aider --models azure/ aider --list-models azure/
``` ```
Note that aider will also use environment variables Note that aider will also use environment variables

View file

@ -54,7 +54,7 @@ aider --model bedrock/anthropic.claude-3-5-sonnet-20240620-v1:0
To see some models available via Bedrock, run: To see some models available via Bedrock, run:
``` ```
aider --models bedrock/ aider --list-models bedrock/
``` ```
Make sure you have access to these models in your AWS account before attempting to use them with Aider. Make sure you have access to these models in your AWS account before attempting to use them with Aider.

View file

@ -21,5 +21,5 @@ setx COHERE_API_KEY <key> # Windows, restart shell after setx
aider --model command-r-plus aider --model command-r-plus
# List models available from Cohere # List models available from Cohere
aider --models cohere_chat/ aider --list-models cohere_chat/
``` ```

View file

@ -20,6 +20,6 @@ setx GEMINI_API_KEY <key> # Windows, restart shell after setx
aider --model gemini/gemini-1.5-pro-latest aider --model gemini/gemini-1.5-pro-latest
# List models available from Gemini # List models available from Gemini
aider --models gemini/ aider --list-models gemini/
``` ```

View file

@ -21,7 +21,7 @@ setx GROQ_API_KEY <key> # Windows, restart shell after setx
aider --model groq/llama3-70b-8192 aider --model groq/llama3-70b-8192
# List models available from Groq # List models available from Groq
aider --models groq/ aider --list-models groq/
``` ```

View file

@ -29,7 +29,7 @@ aider --4-turbo
aider --35-turbo aider --35-turbo
# List models available from OpenAI # List models available from OpenAI
aider --models openai/ aider --list-models openai/
``` ```
You can use `aider --model <model-name>` to use any other OpenAI model. You can use `aider --model <model-name>` to use any other OpenAI model.

View file

@ -18,7 +18,7 @@ setx OPENROUTER_API_KEY <key> # Windows, restart shell after setx
aider --model openrouter/<provider>/<model> aider --model openrouter/<provider>/<model>
# List models available from OpenRouter # List models available from OpenRouter
aider --models openrouter/ aider --list-models openrouter/
``` ```
In particular, many aider users access Sonnet via OpenRouter: In particular, many aider users access Sonnet via OpenRouter:

View file

@ -9,14 +9,14 @@ Aider uses the [litellm](https://docs.litellm.ai/docs/providers) package
to connect to hundreds of other models. to connect to hundreds of other models.
You can use `aider --model <model-name>` to use any supported model. You can use `aider --model <model-name>` to use any supported model.
To explore the list of supported models you can run `aider --models <model-name>` To explore the list of supported models you can run `aider --list-models <model-name>`
with a partial model name. with a partial model name.
If the supplied name is not an exact match for a known model, aider will If the supplied name is not an exact match for a known model, aider will
return a list of possible matching models. return a list of possible matching models.
For example: For example:
``` ```
$ aider --models turbo $ aider --list-models turbo
Aider v0.29.3-dev Aider v0.29.3-dev
Models which match "turbo": Models which match "turbo":