Skip to content

Commit

Permalink
Update text model check for refresh command
Browse files Browse the repository at this point in the history
  • Loading branch information
ar-jan committed Nov 26, 2024
1 parent 3b47dd7 commit d22bd72
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions llm_venice.py
Original file line number Diff line number Diff line change
Expand Up @@ -41,12 +41,7 @@ def refresh():
)
response.raise_for_status()
models = response.json()["data"]
text_models = [
model["id"]
for model in models
if model.get("type", {})
== "text"
]
text_models = [model["id"] for model in models if model.get("type") == "text"]
if not text_models:
raise click.ClickException("No text generation models found")
path = llm.user_dir() / "llm-venice.json"
Expand Down

0 comments on commit d22bd72

Please sign in to comment.