Created cost_tracker.py with async httpx client, ContextVar-based user propagation, and LlamaIndex token extraction helper. Wrapped all AI call sites — studio generators (7 types), notebook synthesis, podcast outline + script, ElevenLabs TTS, and podcast background task. Routes set user context via set_user_ctx(current_user.email) before AI dispatch so every record() call carries user identity without changing generator signatures. Source app: Sandbox-NotebookLM Tracker URL: https://optical-dev.oliver.solutions/cost-tracker/v1 Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com> |
||
|---|---|---|
| .. | ||
| src | ||
| .dockerignore | ||
| .env | ||
| .env.example | ||
| .gitignore | ||
| api.log | ||
| conversation_6561c31d-65b6-4585-b2ab-5a1983595456.mp3 | ||
| Dockerfile | ||
| migrate_add_sso.sql | ||
| pyproject.toml | ||
| uv.lock | ||