Skip to content

Commit d98379a

Browse files
authored
fix(llma): discrepancy between org usage report and llma usage report (#42318)
1 parent f7b75c9 commit d98379a

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

posthog/tasks/llm_analytics_usage_report.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1052,12 +1052,14 @@ def send_llm_analytics_usage_reports(
10521052

10531053
logger.info("Sending LLM Analytics usage reports")
10541054

1055+
at_date_str = at_date.isoformat() if at_date else None
1056+
10551057
for org_id, report in org_reports.items():
10561058
try:
10571059
capture_llm_analytics_report.delay(
10581060
organization_id=org_id,
10591061
report_dict=report,
1060-
at_date=period_end.isoformat(),
1062+
at_date=at_date_str,
10611063
)
10621064
total_orgs_sent += 1
10631065

0 commit comments

Comments
 (0)