my_voice_assistant_v3_jamulix/app/providers/llm
dschlueter d87f0ce424 feat(costs): Pro-Nutzer-Kostenerfassung Stufe 1 (OpenRouter-Ist-Kosten)
CostMeter via ContextVars (app/core/costs.py, multitool-ready). Alle
OpenRouter-Calls (LLM, Sonar, Koreferenz, Fallback) senden usage:{include:true}
und buchen die Ist-Kosten je Kategorie (llm/web_search) — inkl. finalem
Streaming-usage-Chunk. cost_usage-Tabelle (user/day/category) + Store-Methoden;
ws.py/chat.py start_meter pro Turn + persist_costs. Statistik: Spalten
"Kosten (Monat)" + "Ø/Anfrage" + Gesamt. Live: 1 Such-Turn ~ $0,0052
(web_search dominiert, LLM ~ $0,00007). Tests: 318.

Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
2026-06-30 11:08:45 +02:00
..
__init__.py Initial commit: Voice Assistant Gateway mit Konfig-/Routing-Fundament 2026-06-17 01:48:56 +02:00
base.py feat(llm): Web-Suche per Tool-Calling (Weg 2) — Sonar + ToolCallingLLM 2026-06-29 21:37:08 +02:00
local_openai_compatible.py feat: schedule_hours-Backstop, zentrale Datum/Uhrzeit, Filler-Timing 2026-06-30 00:43:08 +02:00
openrouter.py feat(costs): Pro-Nutzer-Kostenerfassung Stufe 1 (OpenRouter-Ist-Kosten) 2026-06-30 11:08:45 +02:00
tool_calling.py feat(costs): Pro-Nutzer-Kostenerfassung Stufe 1 (OpenRouter-Ist-Kosten) 2026-06-30 11:08:45 +02:00