feat: add download features to llm models

This commit is contained in:
2026-04-20 22:50:16 +02:00
parent 351dd3b608
commit 6274b4a0b8
11 changed files with 910 additions and 237 deletions

View File

@ -81,5 +81,14 @@ func SetupRouter(h *handlers.Handler, jwtSecret string) *gin.Engine {
admin.PUT("/users/:id", h.UpdateAdminUser)
admin.DELETE("/users/:id", h.DeleteAdminUser)
// AI roles (per-task model assignment)
admin.GET("/ai-roles", h.GetAIRoles)
admin.PUT("/ai-roles/:role", h.UpdateAIRole)
// Ollama model management
admin.GET("/ollama/models", h.ListOllamaModels)
admin.POST("/ollama/pull", h.PullOllamaModel)
admin.DELETE("/ollama/models/:name", h.DeleteOllamaModel)
return r
}