codexmeter 1.0.24 → 1.0.25
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/package.json +1 -1
- package/server/ingest.js +12 -0
package/package.json
CHANGED
package/server/ingest.js
CHANGED
|
@@ -410,7 +410,19 @@ export function createPartialAggregateSessions(sessions, toDayKey) {
|
|
|
410
410
|
.filter(isSafeForPartialAggregation)
|
|
411
411
|
.map((session) => {
|
|
412
412
|
const clone = { ...session };
|
|
413
|
+
const isUnparsedRollout = clone.rollout_path && !clone.materialized;
|
|
414
|
+
if (isUnparsedRollout) {
|
|
415
|
+
clone.model_name = null;
|
|
416
|
+
clone.cost = null;
|
|
417
|
+
clone.cost_source = 'unavailable';
|
|
418
|
+
clone.has_usage_by_day = true;
|
|
419
|
+
clone.usage_by_day = [];
|
|
420
|
+
}
|
|
413
421
|
finalizeSessionMetrics(clone, toDayKey);
|
|
422
|
+
if (isUnparsedRollout) {
|
|
423
|
+
clone.cost = null;
|
|
424
|
+
clone.cost_source = 'unavailable';
|
|
425
|
+
}
|
|
414
426
|
return clone;
|
|
415
427
|
});
|
|
416
428
|
}
|