Changes, bugfixes and updates to the matrix. Added 1.2v batteries

This commit is contained in:
2026-04-13 12:45:50 +02:00
parent beef23d48e
commit 7b140d4079
10 changed files with 179 additions and 62 deletions

View File

@@ -97,16 +97,12 @@ def _load() -> Settings:
max_runs = int(_optional("MAX_AUTONOMOUS_RUNS_PER_HOUR", "10"))
timezone = _optional("TIMEZONE", "Europe/Oslo")
def _normalize_model(m: str) -> str:
"""Prepend default_provider if model has no provider prefix."""
parts = m.split(":", 1)
if len(parts) == 2 and parts[0] in _known_providers:
return m
return f"{default_provider}:{m}"
available_models: list[str] = [] # unused; kept for backward compat
available_models: list[str] = []
default_chat_model_raw = _optional("DEFAULT_CHAT_MODEL", "")
default_chat_model = _normalize_model(default_chat_model_raw) if default_chat_model_raw else ""
if default_chat_model_raw and ":" not in default_chat_model_raw:
default_chat_model = f"{default_provider}:{default_chat_model_raw}"
else:
default_chat_model = default_chat_model_raw
aide_db_url = _require("AIDE_DB_URL")