3 months ago
0358a98The analytics/query 400 came from filtering on api_key_hash, which is not a valid field. The meta endpoint shows the API-key dimension is api_key_id, whose value is the key NAME. Switch to one grouped query (dimensions:[api_key_id]) and match prod/eval by name via OPENROUTER_PROD_KEY_NAME / OPENROUTER_EVAL_KEY_NAME. Without names, take the account aggregate as prod-key. Verified live: pull returns ok.
Parent3d811e5