3 months ago
3d811e5OpenRouter: the pull hit /api/v1/analytics/get-user-activity (404). Switch to the documented POST /api/v1/analytics/query with a half-open day time_range; parse total_usage and tokens_total. Optional prod/eval split via key-hash filters. Railway: billing has no stable public GraphQL query (the estimatedUsage guess 400d). Replace it with an operator-provided RAILWAY_USAGE_USD figure, marked estimated, mirroring the flat PlanetScale model. Tests and .env.example updated.
Parent06ebb59