Skip to content

Commit

Permalink
fix: support repo/model:version
Browse files Browse the repository at this point in the history
  • Loading branch information
bojiang committed Aug 12, 2024
1 parent cc7bd0a commit 9975858
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/openllm/model.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,6 +96,9 @@ def list_bento(
) -> typing.List[BentoInfo]:
ensure_repo_updated()

if repo_name is None and tag and "/" in tag:
repo_name, tag = tag.split("/", 1)

if repo_name is not None:
config = load_config()
if repo_name not in config.repos:
Expand Down

0 comments on commit 9975858

Please sign in to comment.