Changes, bugfixes and updates to the matrix. Added 1.2v batteries
This commit is contained in:
@@ -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")
|
||||
|
||||
|
||||
Reference in New Issue
Block a user