Add tier-gated RAG and Drive document sources (#42)
Ship allows_rag entitlement (founders/backer/pro/business), enforce it on document APIs and RAG chat, harden ingest/delete/active lifecycle, and add Google/Microsoft Drive connect + sync for personal and company knowledge bases. Closes #43 #44 #45 #46 #47 #48 #49 #50 #51 #52 #53 Parent epic: #42 Related: #11
This commit is contained in:
@@ -12,13 +12,14 @@ class SubscriptionPlanAdmin(admin.ModelAdmin):
|
||||
"is_public",
|
||||
"is_selectable",
|
||||
"allows_image_generation",
|
||||
"allows_rag",
|
||||
"allows_all_future_features",
|
||||
"prompt_quota_per_window",
|
||||
"prompt_window_hours",
|
||||
"monthly_token_quota",
|
||||
"sort_order",
|
||||
)
|
||||
list_filter = ("is_public", "is_selectable", "allows_image_generation")
|
||||
list_filter = ("is_public", "is_selectable", "allows_image_generation", "allows_rag")
|
||||
search_fields = ("slug", "name", "stripe_price_id")
|
||||
readonly_fields = ("created", "last_modified")
|
||||
prepopulated_fields = {"slug": ("name",)}
|
||||
|
||||
Reference in New Issue
Block a user