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

ENH: update cmd help info #1106

Merged
merged 1 commit into from
Mar 8, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 4 additions & 4 deletions xinference/deploy/cmdline.py
Original file line number Diff line number Diff line change
Expand Up @@ -360,7 +360,7 @@ def worker(
)


@cli.command("register", help="Registers a new model with Xinference for deployment.")
@cli.command("register", help="Register a new model with Xinference for deployment.")
@click.option("--endpoint", "-e", type=str, help="Xinference endpoint.")
@click.option(
"--model-type",
Expand Down Expand Up @@ -397,7 +397,7 @@ def register_model(

@cli.command(
"unregister",
help="Unregisters a model from Xinference, removing it from deployment.",
help="Unregister a model from Xinference, removing it from deployment.",
)
@click.option("--endpoint", "-e", type=str, help="Xinference endpoint.")
@click.option(
Expand All @@ -423,7 +423,7 @@ def unregister_model(
)


@cli.command("registrations", help="Lists all registered models in Xinference.")
@cli.command("registrations", help="List all registered models in Xinference.")
@click.option(
"--endpoint",
"-e",
Expand Down Expand Up @@ -944,7 +944,7 @@ async def chat_internal():
)


@cli.command("vllm-models", help="Query and display models compatible with VLLM.")
@cli.command("vllm-models", help="Query and display models compatible with vLLM.")
@click.option("--endpoint", "-e", type=str, help="Xinference endpoint.")
def vllm_models(endpoint: Optional[str]):
endpoint = get_endpoint(endpoint)
Expand Down
Loading