Squash Odysseus development history

This commit is contained in:
pewdiepie-archdaemon
2026-09-11 06:04:19 +00:00
parent e5c99a5eee
commit 6ee6502010
2050 changed files with 538359 additions and 57745 deletions
@@ -0,0 +1,20 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def test_chat_context_uses_cached_models_before_live_model_probe():
source = (ROOT / "routes" / "chat_helpers.py").read_text()
assert "def _normalize_model_id_from_cache" in source
assert "cached_models" in source
assert "norm = _normalize_model_id_from_cache(sess) or normalize_model_id" in source
def test_cached_model_match_keeps_basename_normalization():
source = (ROOT / "routes" / "chat_helpers.py").read_text()
assert "def _match_cached_model_id" in source
assert "os.path.basename(requested.rstrip(\"/\"))" in source
assert "os.path.basename(model_id.rstrip(\"/\")) == req_base" in source