Skip to content

Commit

Permalink
Shorten model URL output in CLI (#2035)
Browse files Browse the repository at this point in the history
  • Loading branch information
jvstme authored Nov 26, 2024
1 parent 0ba717a commit de0ff48
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 4 deletions.
2 changes: 1 addition & 1 deletion docs/docs/quickstart.md
Original file line number Diff line number Diff line change
Expand Up @@ -200,7 +200,7 @@ Your folder can be a regular local folder or a Git repo.
Service is published at:
http://localhost:3000/proxy/services/main/llama31-service/
Model meta-llama/Meta-Llama-3.1-8B-Instruct is published at:
http://localhost:3000/proxy/models/main/ (OpenAI-compatible)
http://localhost:3000/proxy/models/main/
```

</div>
Expand Down
2 changes: 1 addition & 1 deletion docs/docs/services.md
Original file line number Diff line number Diff line change
Expand Up @@ -78,7 +78,7 @@ Provisioning...
Service is published at:
http://localhost:3000/proxy/services/main/llama31/
Model meta-llama/Meta-Llama-3.1-8B-Instruct is published at:
http://localhost:3000/proxy/models/main/ (OpenAI-compatible)
http://localhost:3000/proxy/models/main/
```

</div>
Expand Down
3 changes: 1 addition & 2 deletions src/dstack/_internal/cli/services/configurators/run.py
Original file line number Diff line number Diff line change
Expand Up @@ -482,8 +482,7 @@ def _print_service_urls(run: Run) -> None:
console.print(f"Service is published at:\n [link={run.service_url}]{run.service_url}[/]")
if model := run.service_model:
console.print(
f"Model [code]{model.name}[/] is published at:"
f"\n [link={model.url}]{model.url}[/] [secondary](OpenAI-compatible)[/]"
f"Model [code]{model.name}[/] is published at:\n [link={model.url}]{model.url}[/]"
)
console.print()

Expand Down

0 comments on commit de0ff48

Please sign in to comment.