feat(ai): test saved summary model generation (#43)
This commit is contained in:
@ -11,6 +11,9 @@ func SetupRouter(h *handlers.Handler, jwtSecret string) *gin.Engine {
|
||||
r.Use(gin.Recovery())
|
||||
r.Use(gin.LoggerWithConfig(gin.LoggerConfig{
|
||||
SkipPaths: []string{"/api/summaries/status"},
|
||||
// Never log rejected test query parameters or arbitrary model IDs. Test
|
||||
// outcomes are bounded responses; no generation data belongs in access logs.
|
||||
Skip: func(c *gin.Context) bool { return c.FullPath() == "/api/admin/ai-models/:id/test" },
|
||||
}))
|
||||
|
||||
r.Use(func(c *gin.Context) {
|
||||
@ -65,6 +68,7 @@ func SetupRouter(h *handlers.Handler, jwtSecret string) *gin.Engine {
|
||||
|
||||
admin.GET("/ai-models", h.ListSummaryModels)
|
||||
admin.POST("/ai-models", h.CreateSummaryModel)
|
||||
admin.POST("/ai-models/:id/test", h.TestSummaryModel)
|
||||
admin.PUT("/ai-models/:id", h.UpdateSummaryModel)
|
||||
admin.DELETE("/ai-models/:id", h.DeleteSummaryModel)
|
||||
admin.GET("/ai-providers", h.ListAIProviders)
|
||||
|
||||
Reference in New Issue
Block a user