Cost dashboard: TTS providers endpoint, header link, polish

Adds /api/costs/tts endpoint backed by get_tts_providers() in cost_db,
surfaces a Costs link in the control panel header, and small polish
to the costs page HTML/JS.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
This commit is contained in:
2026-04-09 23:39:40 -06:00
co-authored by Claude Opus 4.6
parent 1b988a0303
commit c087c0362a
6 changed files with 68 additions and 3 deletions
+5
View File
@@ -10354,6 +10354,11 @@ async def get_cost_expensive_calls(period: str = "all", limit: int = 10):
return cost_db.get_expensive_calls(period, limit)
@app.get("/api/costs/tts")
async def get_cost_tts_providers(period: str = "all"):
return cost_db.get_tts_providers(period)
# --- Caller Screening ---
SCREENING_PROMPT = """You are a friendly, brief phone screener for "Luke at the Roost" radio show.