Skip to content

Commit

Permalink
fix: auto update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
agent authored and agent committed Oct 17, 2024
1 parent e8224c5 commit ddc435c
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/openllm/repo.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def ensure_repo_updated():
'The repo cache is never updated, do you want to update it to fetch the latest model list?'
).ask()
if choice:
update()
cmd_update()
return
else:
output(
Expand All @@ -178,7 +178,7 @@ def ensure_repo_updated():
'The repo cache is outdated, do you want to update it to fetch the latest model list?'
).ask()
if choice:
update()
cmd_update()
else:
output(
'The repo cache is outdated, please run `openllm repo update` to fetch the latest model list',
Expand Down

0 comments on commit ddc435c

Please sign in to comment.