Josh Yan hace 10 meses
padre
commit
1a6197abb1
Se han modificado 1 ficheros con 0 adiciones y 5 borrados
  1. 0 5
      server/routes.go

+ 0 - 5
server/routes.go

@@ -1075,7 +1075,6 @@ func (s *Server) GenerateRoutes() http.Handler {
 	r.POST("/api/blobs/:digest", s.CreateBlobHandler)
 	r.HEAD("/api/blobs/:digest", s.HeadBlobHandler)
 	r.GET("/api/ps", s.ProcessHandler)
-	r.GET("/api/config", s.ConfigHandler)
 
 	// Compatibility endpoints
 	r.POST("/v1/chat/completions", openai.ChatMiddleware(), s.ChatHandler)
@@ -1429,7 +1428,3 @@ func handleScheduleError(c *gin.Context, name string, err error) {
 		c.JSON(http.StatusInternalServerError, gin.H{"error": err.Error()})
 	}
 }
-
-func (s *Server) ConfigHandler(c *gin.Context) {
-	c.JSON(http.StatusOK, api.ServerConfig{ModelDir: envconfig.ModelsDir})
-}