Skip to content

Add in-app notification for xAI paid model users about free Grok Code Fast#279

Open
kiloconnect[bot] wants to merge 1 commit intomainfrom
session/agent_c7b19151-c620-4e43-9f52-8ae10996b6a9
Open

Add in-app notification for xAI paid model users about free Grok Code Fast#279
kiloconnect[bot] wants to merge 1 commit intomainfrom
session/agent_c7b19151-c620-4e43-9f52-8ae10996b6a9

Conversation

@kiloconnect
Copy link
Contributor

@kiloconnect kiloconnect bot commented Feb 17, 2026

Summary

Adds a targeted in-app notification for users who have used xAI paid models in the past 30 days, informing them about the new free optimized Grok Code Fast model.

Targeting criteria

Selects distinct users from microdollar_usage where:

  • requested_model LIKE 'x-ai/%'
  • cost > 0 (paid usage only)
  • Usage within the last 30 days

Notification

Implementation

Follows the existing conditional notification pattern in src/lib/notifications.ts (same approach as generateAutocompleteNotification). Queries microdollar_usage directly for the current user with LIMIT 1 for efficiency.


Built for ari by Kilo for Slack

@kiloconnect
Copy link
Contributor Author

kiloconnect bot commented Feb 17, 2026

Code Review Summary

Status: No Issues Found | Recommendation: Merge

Files Reviewed (1 files)
  • src/lib/notifications.ts

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants