feat(ai): add personal summary models and retire Q&A
Add an admin-managed provider model catalog with per-user summary selection, migration backfill, and generation snapshots. Retire report creation and messaging while preserving owner-scoped history. Refs #15 #16 Co-Authored-By: Claude Opus 4.8 <noreply@anthropic.com>
This commit is contained in:
@ -36,6 +36,7 @@ func SetupRouter(h *handlers.Handler, jwtSecret string) *gin.Engine {
|
||||
authed.GET("/indices/search", h.SearchIndices)
|
||||
authed.GET("/me", h.GetMe)
|
||||
authed.GET("/me/preferences", h.GetMyPreferences)
|
||||
authed.GET("/me/summary-models", h.ListMySummaryModels)
|
||||
authed.PUT("/me/preferences", h.UpdateMyPreferences)
|
||||
authed.GET("/me/assets", h.GetMyAssets)
|
||||
authed.POST("/me/assets", h.AddMyAsset)
|
||||
@ -59,6 +60,10 @@ func SetupRouter(h *handlers.Handler, jwtSecret string) *gin.Engine {
|
||||
admin.GET("/credentials", h.GetCredentials)
|
||||
admin.PUT("/credentials", h.UpsertCredentials)
|
||||
|
||||
admin.GET("/ai-models", h.ListSummaryModels)
|
||||
admin.POST("/ai-models", h.CreateSummaryModel)
|
||||
admin.PUT("/ai-models/:id", h.UpdateSummaryModel)
|
||||
admin.DELETE("/ai-models/:id", h.DeleteSummaryModel)
|
||||
admin.GET("/ai-providers", h.ListAIProviders)
|
||||
admin.POST("/ai-providers", h.CreateAIProvider)
|
||||
admin.PUT("/ai-providers/:id", h.UpdateAIProvider)
|
||||
|
||||
Reference in New Issue
Block a user