Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

llm models command #33

Closed
simonw opened this issue Jun 15, 2023 · 3 comments
Closed

llm models command #33

simonw opened this issue Jun 15, 2023 · 3 comments
Labels
enhancement New feature or request
Milestone

Comments

@simonw
Copy link
Owner

simonw commented Jun 15, 2023

Lists available models.

@simonw simonw added the enhancement New feature or request label Jun 15, 2023
@simonw simonw added this to the 0.4 milestone Jun 15, 2023
@simonw
Copy link
Owner Author

simonw commented Jun 15, 2023

@simonw
Copy link
Owner Author

simonw commented Jun 15, 2023

Hints in the direction of a plugin system for adding extra models.

@simonw simonw modified the milestones: 0.4, 0.5 Jun 16, 2023
@simonw
Copy link
Owner Author

simonw commented Jul 1, 2023

Implemented this here:

llm/llm/cli.py

Lines 356 to 369 in a597a9e

@cli.group()
def models():
"Manage available models"
@models.command(name="list")
def models_list():
"List available models"
for model_with_aliases in get_models_with_aliases():
extra = ""
if model_with_aliases.aliases:
extra = " (aliases: {})".format(", ".join(model_with_aliases.aliases))
output = str(model_with_aliases.model) + extra
click.echo(output)

@simonw simonw closed this as completed Jul 1, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant