Show soci-agent HF models unconditionally (don't require HF_TOKEN)
Browse filessoci-agent-7b and soci-agent-q4 are public repos β always show them
regardless of whether HF_TOKEN is set (e.g. on Render).
Other HF models still gated behind HF_TOKEN.
Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
- src/soci/api/routes.py +3 -2
src/soci/api/routes.py
CHANGED
|
@@ -280,14 +280,15 @@ async def get_llm_providers():
|
|
| 280 |
providers.append({"id": "groq", "label": "Groq Llama 8B", "icon": "β‘", "model": ""})
|
| 281 |
if os.environ.get("GEMINI_API_KEY"):
|
| 282 |
providers.append({"id": "gemini", "label": "Gemini 2.0 Flash Lite", "icon": "β¦", "model": ""})
|
|
|
|
|
|
|
|
|
|
| 283 |
has_hf = bool(
|
| 284 |
os.environ.get("HF_TOKEN")
|
| 285 |
or os.environ.get("HUGGINGFACE_TOKEN")
|
| 286 |
or os.environ.get("HF_API_TOKEN")
|
| 287 |
)
|
| 288 |
if has_hf:
|
| 289 |
-
providers.append({"id": "hf", "model": "RayMelius/soci-agent-7b", "label": "Soci Agent 7B (Qwen)", "icon": "π"})
|
| 290 |
-
providers.append({"id": "hf", "model": "RayMelius/soci-agent-q4", "label": "Soci Agent 0.5B", "icon": "π"})
|
| 291 |
providers.append({"id": "hf", "model": "HuggingFaceH4/zephyr-7b-beta", "label": "HF Zephyr 7B", "icon": "π€"})
|
| 292 |
providers.append({"id": "hf", "model": "Qwen/Qwen2.5-7B-Instruct", "label": "HF Qwen 2.5 7B", "icon": "π€"})
|
| 293 |
providers.append({"id": "hf", "model": "meta-llama/Llama-3.2-3B-Instruct", "label": "HF Llama 3.2 3B", "icon": "π€"})
|
|
|
|
| 280 |
providers.append({"id": "groq", "label": "Groq Llama 8B", "icon": "β‘", "model": ""})
|
| 281 |
if os.environ.get("GEMINI_API_KEY"):
|
| 282 |
providers.append({"id": "gemini", "label": "Gemini 2.0 Flash Lite", "icon": "β¦", "model": ""})
|
| 283 |
+
# Soci fine-tuned models always shown (public HF repos)
|
| 284 |
+
providers.append({"id": "hf", "model": "RayMelius/soci-agent-7b", "label": "Soci Agent 7B (Qwen)", "icon": "π"})
|
| 285 |
+
providers.append({"id": "hf", "model": "RayMelius/soci-agent-q4", "label": "Soci Agent 0.5B", "icon": "π"})
|
| 286 |
has_hf = bool(
|
| 287 |
os.environ.get("HF_TOKEN")
|
| 288 |
or os.environ.get("HUGGINGFACE_TOKEN")
|
| 289 |
or os.environ.get("HF_API_TOKEN")
|
| 290 |
)
|
| 291 |
if has_hf:
|
|
|
|
|
|
|
| 292 |
providers.append({"id": "hf", "model": "HuggingFaceH4/zephyr-7b-beta", "label": "HF Zephyr 7B", "icon": "π€"})
|
| 293 |
providers.append({"id": "hf", "model": "Qwen/Qwen2.5-7B-Instruct", "label": "HF Qwen 2.5 7B", "icon": "π€"})
|
| 294 |
providers.append({"id": "hf", "model": "meta-llama/Llama-3.2-3B-Instruct", "label": "HF Llama 3.2 3B", "icon": "π€"})
|