Skip to content

Commit

Permalink
Add command-name settings for --help
Browse files Browse the repository at this point in the history
  • Loading branch information
web-sst committed Nov 13, 2024
1 parent a44ba49 commit cc9ed2a
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions llm/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -385,7 +385,7 @@ def read_prompt():
response.log_to_db(db)


@cli.command()
@cli.command(name="chat")
@click.option("-s", "--system", help="System prompt to use")
@click.option("model_id", "-m", "--model", help="Model to use")
@click.option(
Expand Down Expand Up @@ -1156,7 +1156,7 @@ def templates_path():
click.echo(template_dir())


@cli.command()
@cli.command(name="install")
@click.argument("packages", nargs=-1, required=False)
@click.option(
"-U", "--upgrade", is_flag=True, help="Upgrade packages to latest version"
Expand Down Expand Up @@ -1192,7 +1192,7 @@ def install(packages, upgrade, editable, force_reinstall, no_cache_dir):
run_module("pip", run_name="__main__")


@cli.command()
@cli.command(name="uninstall")
@click.argument("packages", nargs=-1, required=True)
@click.option("-y", "--yes", is_flag=True, help="Don't ask for confirmation")
def uninstall(packages, yes):
Expand All @@ -1201,7 +1201,7 @@ def uninstall(packages, yes):
run_module("pip", run_name="__main__")


@cli.command()
@cli.command(name="embed")
@click.argument("collection", required=False)
@click.argument("id", required=False)
@click.option(
Expand Down Expand Up @@ -1316,7 +1316,7 @@ def get_db():
click.echo(encode(embedding).hex())


@cli.command()
@cli.command(name="embed-multi")
@click.argument("collection")
@click.argument(
"input_path",
Expand Down Expand Up @@ -1506,7 +1506,7 @@ def tuples() -> Iterable[Tuple[str, Union[bytes, str]]]:
collection_obj.embed_multi(tuples(), **embed_kwargs)


@cli.command()
@cli.command(name="similar")
@click.argument("collection")
@click.argument("id", required=False)
@click.option(
Expand Down

0 comments on commit cc9ed2a

Please sign in to comment.