From 284c8ad4d66b09595ea59b9a383f105bc7a54d3c Mon Sep 17 00:00:00 2001 From: Simon Willison Date: Wed, 16 Oct 2024 11:36:08 -0700 Subject: [PATCH] llm models lists Mistral models even without API key, refs #10 --- llm_mistral.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/llm_mistral.py b/llm_mistral.py index 98a21ae..58bf181 100644 --- a/llm_mistral.py +++ b/llm_mistral.py @@ -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"]]