(c *gin.Context)
| 71 | } |
| 72 | |
| 73 | func models(c *gin.Context) { |
| 74 | ms, err := ModelsInstalled() |
| 75 | if err != nil { |
| 76 | c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()}) |
| 77 | return |
| 78 | } |
| 79 | c.JSON(http.StatusOK, gin.H{"models": ms}) |
| 80 | } |
nothing calls this directly
no test coverage detected