Skip to content

Commit

Permalink
llm models lists Mistral models even without API key, refs #10
Browse files Browse the repository at this point in the history
  • Loading branch information
simonw committed Oct 16, 2024
1 parent 79a95ac commit 284c8ad
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion llm_mistral.py
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ def get_model_ids():
elif llm.get_key("", "mistral", "LLM_MISTRAL_KEY"):
models = refresh_models()
else:
models = {"data": []}
models = {"data": [{"id": model_id} for model_id in DEFAULT_ALIASES.values()]}
return [model["id"] for model in models["data"] if "embed" not in model["id"]]


Expand Down

0 comments on commit 284c8ad

Please sign in to comment.