RayMelius Claude Sonnet 4.6 commited on
Commit
7bd0633
Β·
1 Parent(s): 4c88c91

Set soci-agent-7b as default across all providers and UI

Browse files

- OllamaClient.__init__ now defaults to MODEL_OLLAMA_SOCI (soci-agent-7b)
- routes.py provider list: HF entry updated from soci-agent-q4 β†’ soci-agent-7b
- routes.py provider list: Ollama Soci entry updated from soci-agent β†’ soci-agent-7b

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>

Files changed (2) hide show
  1. src/soci/api/routes.py +2 -2
  2. src/soci/engine/llm.py +1 -1
src/soci/api/routes.py CHANGED
@@ -286,12 +286,12 @@ async def get_llm_providers():
286
  or os.environ.get("HF_API_TOKEN")
287
  )
288
  if has_hf:
289
- providers.append({"id": "hf", "model": "RayMelius/soci-agent-q4", "label": "Soci Agent (fine-tuned)", "icon": "πŸ™"})
290
  providers.append({"id": "hf", "model": "HuggingFaceH4/zephyr-7b-beta", "label": "HF Zephyr 7B", "icon": "πŸ€—"})
291
  providers.append({"id": "hf", "model": "Qwen/Qwen2.5-7B-Instruct", "label": "HF Qwen 2.5 7B", "icon": "πŸ€—"})
292
  providers.append({"id": "hf", "model": "meta-llama/Llama-3.2-3B-Instruct", "label": "HF Llama 3.2 3B", "icon": "πŸ€—"})
293
  providers.append({"id": "hf", "model": "mistralai/Mistral-7B-Instruct-v0.3", "label": "HF Mistral 7B", "icon": "πŸ€—"})
294
- providers.append({"id": "ollama", "label": "Soci Agent (Ollama)", "icon": "πŸ™", "model": "soci-agent"})
295
  providers.append({"id": "ollama", "label": "Ollama (local)", "icon": "πŸ¦™", "model": ""})
296
  return {"current": current, "current_model": current_model, "providers": providers}
297
 
 
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 (fine-tuned)", "icon": "πŸ™"})
290
  providers.append({"id": "hf", "model": "HuggingFaceH4/zephyr-7b-beta", "label": "HF Zephyr 7B", "icon": "πŸ€—"})
291
  providers.append({"id": "hf", "model": "Qwen/Qwen2.5-7B-Instruct", "label": "HF Qwen 2.5 7B", "icon": "πŸ€—"})
292
  providers.append({"id": "hf", "model": "meta-llama/Llama-3.2-3B-Instruct", "label": "HF Llama 3.2 3B", "icon": "πŸ€—"})
293
  providers.append({"id": "hf", "model": "mistralai/Mistral-7B-Instruct-v0.3", "label": "HF Mistral 7B", "icon": "πŸ€—"})
294
+ providers.append({"id": "ollama", "label": "Soci Agent (Ollama)", "icon": "πŸ™", "model": "soci-agent-7b"})
295
  providers.append({"id": "ollama", "label": "Ollama (local)", "icon": "πŸ¦™", "model": ""})
296
  return {"current": current, "current_model": current_model, "providers": providers}
297
 
src/soci/engine/llm.py CHANGED
@@ -254,7 +254,7 @@ class OllamaClient:
254
  def __init__(
255
  self,
256
  base_url: str = "http://localhost:11434",
257
- default_model: str = MODEL_LLAMA,
258
  max_retries: int = 2,
259
  ) -> None:
260
  self.base_url = base_url.rstrip("/")
 
254
  def __init__(
255
  self,
256
  base_url: str = "http://localhost:11434",
257
+ default_model: str = MODEL_OLLAMA_SOCI,
258
  max_retries: int = 2,
259
  ) -> None:
260
  self.base_url = base_url.rstrip("/")