tok: #/## % badge with context tracking, client-side token counting, remove triage dep

This commit is contained in:
gramps
2026-07-13 08:07:26 -07:00
parent b6dadd95ec
commit f16bef4671
4 changed files with 18 additions and 9 deletions
@@ -14,9 +14,7 @@ from security import SESSIONS, PIN_ATTEMPTS, RATE_EVENTS
def _mock_triage_url(monkeypatch, url: str = config.LLAMA_SERVER_BASE):
async def fake_url(query: str) -> str:
return url
monkeypatch.setattr(routers.chat, "_get_inference_url", fake_url)
monkeypatch.setattr(config, "LLAMA_SERVER_BASE", url)
def make_client(tmp_path: Path) -> TestClient: